|
发表于 2003-3-18 13:45:30
|
显示全部楼层
http://www.gentoo.org/doc/en/gentoo-x86-install.xml
Code listing 25.1: Creating a GRUB Bootdisk
# mke2fs /dev/fd0
# mount /dev/fd0 /mnt/floppy
# mkdir -p /mnt/floppy/boot/grub
# cp /usr/share/grub/i386-pc/stage1 /mnt/floppy/boot/grub/
# cp /usr/share/grub/i386-pc/stage2 /mnt/floppy/boot/grub/
# umount /mnt/floppy
# grub
grub> root (fd0)
grub> setup (fd0)
grub> quit
Now reboot and load the floppy. At the floppy's grub> prompt, you can now execute the necessary root and setup commands.
LILO Bootdisks?
If you are using LILO, it is also a good idea to make a bootdisk:
Code listing 25.2: Making a LILO Bootdisk
# dd if=/boot/your_kernel of=/dev/fd0
This will only work if your kernel is smaller than 1.4MB |
|