China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 01:29
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » There is a problem with grub loading menu.lst under the USB flash drive View 2,113 Replies 4
Original Poster Posted 2007-04-20 07:12 ·  中国 四川 成都 电信
新手上路
Credits 17
Posts 8
Joined 2007-04-20 04:01
19-year member
UID 85796
Gender Male
Status Offline
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
Floor 2 Posted 2007-04-20 11:28 ·  中国 广东 广州 番禺区 电信
初级用户
Credits 186
Posts 32
Joined 2004-06-16 00:00
22-year member
UID 26837
Gender Male
Status Offline
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)....
Floor 3 Posted 2007-04-21 00:56 ·  中国 四川 成都 电信
新手上路
Credits 17
Posts 8
Joined 2007-04-20 04:01
19-year member
UID 85796
Gender Male
Status Offline
Thanks``I'll try```
Floor 4 Posted 2007-04-21 02:32 ·  中国 四川 成都 电信
新手上路
Credits 17
Posts 8
Joined 2007-04-20 04:01
19-year member
UID 85796
Gender Male
Status Offline
Sure enough, it was a path issue... After changing it to (fd0), the problem was solved... Thanks...
Floor 5 Posted 2007-05-05 22:39 ·  中国 福建 龙岩 移动
初级用户
Credits 155
Posts 14
Joined 2004-05-22 00:00
22-year member
UID 24982
Gender Male
Status Offline
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.
Forum Jump: