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:28
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Question about a GRUB boot disk View 1,388 Replies 3
Original Poster Posted 2005-06-23 00:00 ·  中国 浙江 杭州 教育网
初级用户
Credits 108
Posts 3
Joined 2005-06-22 00:00
21-year member
UID 39975
Gender Male
Status Offline
Floor 2 Posted 2005-06-23 00:00 ·  中国 上海 杨浦区 电信
高级用户
★★★
Credits 916
Posts 377
Joined 2004-03-08 00:00
22-year member
UID 19523
Gender Male
Status Offline
http://bbs.cn-dos.net/dispbbs.asp?boardID=11&ID=14845&page=1
The first one has no practical meaning at all. If you do it that way, when grub starts, who is stage2 supposed to look for?
You might as well boot the system through the grub shell.
I haven't made a corresponding boot disk, so I can't help with that. Have a look at that discussion thread, maybe you can find some useful hints.
Floor 3 Posted 2005-06-23 00:00 ·  中国 河南 南阳 联通
银牌会员
★★★★
不甘寂寞的人
Credits 2,491
Posts 1,115
Joined 2003-09-24 00:00
22-year member
UID 10292
Gender Male
Status Offline
1. The operation method is wrong. You should first put /boot/grub onto some partition of the hard disk, for example (hd0,0), and then use

root (hd0,0)
setup (hd0)

to install it to the MBR. Note that the above (hd0) refers to the MBR; do not mistakenly write it as (hd0,0)

Also note that the above (hd0,0) partition cannot be in NTFS format. If it is in NTFS format, then after executing root and setup, the result is hard to predict. It is possible to destroy all the contents of (hd0,0).

In view of this, it is recommended to install GRLDR directly into the MBR; this is introduced at http://grub.linuxeden.com/ . Actually, the safest way is to hook GRLDR into boot.ini or hook grub.exe into config.sys. This way there is no need to write to the MBR, so nothing will be damaged.

> 2. Can grub boot a mini Linux on a floppy disk image? Exactly how should menu.lst be written?

Yes, but there are some restrictions. Please search for the relevant grub for dos documentation and study it carefully. Assuming your LINUX floppy disk image is a combined image of a kernel + initrd, then you can use GRUB4DOS to boot it completely:

Please take a look at this article:

http://www.linuxeden.com/doc/article.php/21285

The following is an excerpt:
-----------------
A very useful link address: it is necessary to find a 1.44M rescue disk image. Great! The ramf-120.img.bin floppy disk image below is suitable for any Linux system (not just one particular distribution). The relevant web pages are here:

http://www.linux.org/docs/ldp/howto/Bootdisk-HOWTO/premade.html
http://www.tux.org/pub/people/kent-robotti/looplinux/rip/index.html

The following links are this 1.44M file itself. You can write it directly to a blank floppy disk with the dd command, or you can also use grub.exe to directly boot the LINUX rescue system on this floppy disk image file from the hard disk:

http://www.tux.org/pub/people/kent-robotti/looplinux/rip/ramf-120.img.bin
http://www.ibiblio.org/pub/Linux/system/recovery/ramf-120.img.bin

-----------------

With this ramf-120.img.bin file, under grub for dos 0.4.0 you can boot it like this:

map --mem (...)/ramf-120.img.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot

> 3. If 2 is feasible, can I use grub on one CD to boot WinPE and a Linux live CD?

There should be no difficulty. But let me correct one point: this has nothing to do with whether 2 is feasible. In 2, disk emulation is used, while in 3 no disk emulation is needed at all.
因为我们亲手创建,这个世界更加美丽。
Floor 4 Posted 2005-06-25 00:00 ·  中国 浙江 杭州 教育网
初级用户
Credits 108
Posts 3
Joined 2005-06-22 00:00
21-year member
UID 39975
Gender Male
Status Offline
I benefited a lot, thanks, expert Budian
Forum Jump: