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-24 18:17
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Question: How should I get started learning to use grub for dos View 3,462 Replies 15
Floor 16 Posted 2004-04-30 00:00 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
When first getting in touch with GRUB, there is no need to worry about files like stage1 and stage2. The files in the /boot/grub/ directory are used to install GRUB into the MBR.

Among the files in the /boot/grub/ directory, only menu.lst is worth paying attention to; the others can be set aside for the time being.

When grub.exe starts, it automatically looks for the file (hd0,0)/boot/grub/menu.lst. If it finds that file, it enters the menu interface; if it does not find it, it enters the grub command prompt interface.

(hd0,0) indicates a disk partition. In (hd0,0), hd0 indicates BIOS hard disk number 0x80, that is, hexadecimal 80,

and the 0 after the comma in (hd0,0) indicates partition number 0 on that disk.

GRUB.exe and the menu.lst file can be placed anywhere, and the two of them do not have to be in the same directory. However, by default, grub.exe always looks for (hd0,0)/boot/grub/menu.lst as the menu.

You need to learn GRUB's disk partition notation a bit.
因为我们亲手创建,这个世界更加美丽。
Forum Jump: