『楼 主』:
grub在U盘下加载menu.lst有问题
使用 LLM 解释/回答一下
今天搞了一天的gurb````主要是想用U盘做个启动盘```偶的U盘是1G的```于是就用FlashBoot把U盘做zip格式的```用的是内置的freedos(从自带的98.img里提取也试过,偶的主板不能启动)```U盘被识别成软盘```
然后准备好一切文件`````grub和相应的文件都在U盘的dostools目录下````编辑好menu.lst```等我重起后从U盘启动```运行start.bat``(内容是grub --config-file=(fd0,0)/menu.lst) ```却加载不了配置文件```闪过若干行帮助信息后回到命令行````郁闷啊``手动用configfile命令也不行``请各位大侠帮我找找原因啊```本人初学grub```很多东西都不懂啊```grub的版本是0.97```用grub4dos 0.43 里的grub.exe替换后还是不行````
==================================
这是我的menu.lst
# 设置图形背景文件
splashimage (fd0,0)/dostools/xp2008.xpm.gz
# 设置中文支持的字体文件
fontfile (fd0,0)/dostools/fonts
# 设置高亮延时时间
timeout 20
# 设置延时后自动启动
default 7
title 1: 启动迷你WinPE系统
chainloader (fd0,0)/dostools/winpe/peldr
title 2: 启动矮人DOS工具箱5.3
kernel (fd0,0)/dostools/memdisk.gz c=160 h=2 s=36 floppy
initrd (fd0,0)/dostools/airendos/airendos.zip
title 3: 启动Power Quest Magic
kernel (fd0,0)/dostools/memdisk.gz c=120 h=2 s=36 floppy
initrd (fd0,0)/dostools/pqmagic.ima
title 4: 启动GHOST 8.3
kernel (fd0,0)/dostools/memdisk.gz
initrd (fd0,0)/dostools/ghost.ima
title 5: 启动DiskGen硬盘修复
kernel (fd0,0)/dostools/memdisk.gz
initrd (fd0,0)/dostools/diskgen.ima
title 6: 启用NTFS分区支持
kernel (fd0,0)/dostools/memdisk.gz c=160 h=2 s=36 floppy
initrd (fd0,0)/dostools/ntfs.ima
title 7: 加载ISO镜像文件
chainloader (fd0,0)/dostools/isoemu/ieldr
title 8: 重新启动计算机
reboot
title 9:关闭计算机
halt
Today I spent the whole day on gurb... Mainly wanted to make a bootable USB drive. My USB drive is 1G. So I used FlashBoot to make it in zip format. Used the built-in freedos (tried extracting from the built-in 98.img, but my motherboard can't boot). The USB drive is recognized as a floppy disk.
Then got everything ready... grub and corresponding files are in the dostools directory on the USB drive... Edited menu.lst... When I restarted and booted from the USB drive, ran start.bat (content is grub --config-file=(fd0,0)/menu.lst) but couldn't load the configuration file... Flashed several lines of help information and then returned to the command line...郁闷啊``Manually used the configfile command and it didn't work either``Please各位big guys help me find the reason ah```I'm just starting to learn grub```I don't understand many things ah```The version of grub is 0.97```Replaced with grub.exe from grub4dos 0.43 still didn't work```
==================================
This is my menu.lst
# Set the graphic background file
splashimage (fd0,0)/dostools/xp2008.xpm.gz
# Set the font file for Chinese support
fontfile (fd0,0)/dostools/fonts
# Set the highlight delay time
timeout 20
# Set to automatically boot after delay
default 7
title 1: Boot Mini WinPE System
chainloader (fd0,0)/dostools/winpe/peldr
title 2: Boot矮人DOS Toolbox 5.3
kernel (fd0,0)/dostools/memdisk.gz c=160 h=2 s=36 floppy
initrd (fd0,0)/dostools/airendos/airendos.zip
title 3: Boot Power Quest Magic
kernel (fd0,0)/dostools/memdisk.gz c=120 h=2 s=36 floppy
initrd (fd0,0)/dostools/pqmagic.ima
title 4: Boot GHOST 8.3
kernel (fd0,0)/dostools/memdisk.gz
initrd (fd0,0)/dostools/ghost.ima
title 5: Boot DiskGen Hard Disk Repair
kernel (fd0,0)/dostools/memdisk.gz
initrd (fd0,0)/dostools/diskgen.ima
title 6: Enable NTFS Partition Support
kernel (fd0,0)/dostools/memdisk.gz c=160 h=2 s=36 floppy
initrd (fd0,0)/dostools/ntfs.ima
title 7: Load ISO Image File
chainloader (fd0,0)/dostools/isoemu/ieldr
title 8: Restart Computer
reboot
title 9: Shut Down Computer
halt
|