将 GRUB 安装到软盘有两种方法:
1.用 grub 的 setup 命令:
grub> root (fd0)
grub> setup (fd0)
这种安装方法需要事先在软盘上存在 /boot/grub/目录,以及该目录下的那些 stage 文件。
2.用 grldr
将 GRLDR 的第四扇区经过修改之后放置到软盘的第一扇区,然后将 GRLDR拷贝到软盘根目录。
具体步骤可以这样:
a.格式化一张FAT格式的软盘,或者用任何一张现有的已经格式化了的FAT格式的软盘。
b. 将软盘第一扇区读入内存区域1,将 GRLDR第四扇区读入内存区域2。
c. 将 内存区域1 的 0x02 至 0x3d 这 60 个字节复制到 内存区域2 的0x02 至 0x3d。
d. 将更改后的 内存区域2 写入软盘第一扇区。
e. 把 GRLDR文件复制到软盘根目录。【这一步任何时候做都行,不在乎先后】。
以上假定软盘是 FAT12 或者 FAT16 的格式。如果软盘是 FAT32格式,则需要将上述 b,c 两个步骤改写为:
b. 将软盘第一扇区读入内存区域1,将 GRLDR第三扇区读入内存区域2。
c. 将 内存区域1 的 0x02 至 0x59 这 88 个字节复制到 内存区域2 的0x02 至 0x59。
将 GRUB 安装到硬盘主引导磁道(MBR 以及紧接 MBR之后的几个扇区)的方法:
a. 将硬盘第一扇区(MBR)读入内存区域1,将 GRLDR 开头 16个扇区读入内存区域2。
b. 将 内存区域1 的 0x01be 至 0x01ff 这 66 个字节复制到 内存区域2 的0x01be 至 0x01ff。(这个区域是硬盘分区表)。
c. 将更改后的 内存区域2(其长度是 16 个扇区)写入硬盘开头的 16个扇区上(也就是 MBR 以及紧接着它后面的 15 个扇区上)。
重要更正:上述 b. 应当更改为:
b. 将 内存区域1 的 0x01b8 至 0x01ff 这 72 个字节复制到 内存区域2的 0x01b8 至 0x01ff。(这个区域是Windows 的 disk signature以及硬盘分区表)。
参见 BUG 报告 http://sourceforge.net/tracker/index.php?func=detail&aid=1062928&group_id=104188&atid=637224
再次更正:0.4.0 的 GRLDR 开头的扇区数要超过 5个扇区,但今后永远也不会超过 16 扇区。所以上述写入 MBR的扇区数目已经更改成了 16
补充说明:0.4.0 的 GRLDR,当安装到 MBR 之后,在紧接 MBR之后的扇区(也就是第一块硬盘的第二扇区),可以放上先前被证明可以良好运作的MBR 的拷贝。当 MBR 上的 GRLDR 启动代码找不到分区中的 GRLDR文件时,会尝试启动此处备份的 MBR。
(声明:以上步骤写入MBR,危险!!操作一定要谨慎,千万避免出现阴差阳错,一定保证不要失误!)
注:GRLDR只可以按照如上所说安装到软盘引导区或者硬盘的“主引导区”,不可以安装到硬盘上某个“分区”的引导区。
Grub 命令索引
bean123做出的,按字母表列出顺序列出 Grub 中的主要命令(也包括gandalf 等所作出的许多新的扩展),其中带有用法和基本的描述。http://grub4dos.sourceforge.net/grubcmd_ch.htm(in Chinese)
Table of GRUB Command Index with brief and detailed usagedescriptions(by bean123)
http://grub4dos.sourceforge.net/grubcmd_en.htm(in English, note that many extensions are included)
英文主页: http://newdos.yginfo.net/grubdos.htm
winGRUB 主页: http://grub4dos.sourceforge.net/
http://sourceforge.net/projects/grub4dos/
简体中文化版 的主页: http://sysoft.zdwx.com/grub/
United DOS Forum 英文论坛: http://denbbs.2ya.com/ or
http://en.bbs.cn-dos.net/
请尽量在上述英文论坛用英文报告 BUG.(遗憾, 该英文论坛似乎不能访问了,请用下面的中文论坛)
联合 DOS 论坛中文论坛(启动盘室): http://bbs.cn-dos.net/
GNU GRUB Homepage: http://www.gnu.org/software/grub/
GNU GRUB (BUG GRUB Info Page): http://lists.gnu.org/mailman/listinfo/bug-grub
GNU GRUB (archive of the mailing-list): http://lists.gnu.org/pipermail/bug-grub/
Loadlin home page: http://elserv.ffm.fgan.de/~lermen/
LILO home page: http://lilo.go.dyndns.org/
Kexec home page: http://www.xmission.com/~ebiederm/files/kexec/
Syslinux home page: http://syslinux.zytor.com/
Smart Boot Manager homepage: http://btmgr.sourceforge.net/
sbm.bin download:
1. FTP site: ftp://ftp.mcc.ac.uk/beta/local/teaching_cluster/disks/sbm.bin(only 18KB, recommended)
2. CVS log page: http://cvs.debian.org/debian-cd/data/woody/sbm.bin.gz(click "download" in the cvs log page to get the file, it is agzipped image of a 1.44M floppy)
Here is one way about how to boot sbm.bin from "GRUB forDOS":
map --mem (?,?)/.../sbm.bin (fd0)
chainloader (?,?)/.../sbm.bin
boot
if the --mem option is not present, then it requires that the filesbm.bin is contiguous.
Success booting CD from a GRUB prompt: http://lists.gnu.org/archive/html/bug-grub/2004-05/msg00099.html
Problems with USB boot
Some buggy BIOSes(e.g., DELL machines) hardcoded C/H/S geometryvalues(e.g., C=1000, H=4, S=32) of the USB key storage devices.This may cause problems at boot time. You canre-partition/re-format the USB disk and use these hardcodedgeometry values to avoid boot failure.
也可以在下面的留言板上写几句话.
Useful pages: 孤立页面, 待建页面, 搜索, 文件上传, 类别索引.
DOCs in Chinese

用 GRUB 来引导软盘映象――节约软盘介质了:

GRUB for DOS 磁盘仿真命令简介:
