中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 03:19
47,811 topics / 349,897 posts / today 0 new / 48,256 members
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » There is a problem with grub loading menu.lst under the USB flash drive
Printable Version  2,241 / 4
Floor1 lzlsl Posted 2007-04-20 07:12
新手上路 Posts 8 Credits 17
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
Floor2 newdos11 Posted 2007-04-20 11:28
初级用户 Posts 32 Credits 186
grub4dos 0.43 supports USB-ZIP boot for USB drives, but other versions don't. You should change all (fd0,0) in your configuration file to (fd0)....
Floor3 lzlsl Posted 2007-04-21 00:56
新手上路 Posts 8 Credits 17
Thanks``I'll try```
Floor4 lzlsl Posted 2007-04-21 02:32
新手上路 Posts 8 Credits 17
Sure enough, it was a path issue... After changing it to (fd0), the problem was solved... Thanks...
Floor5 hzghgz Posted 2007-05-05 22:39
初级用户 Posts 14 Credits 155
Use a relative path if possible, without using an absolute path.

find --set-root /(feature file)

Can automatically set the partition where the feature file is located as the root partition.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023