Wiki source for grubinstall


Show raw source

## You may want to write a new MBR to the /dev/hdc
## Create an MBR on the new disk

$ grub
Probing devices to guess BIOS drives. This may take a long time.

grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0xfd

grub> setup (hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... failed (this is not
fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd1,0)"... failed (this is not
fatal)
Running "install /boot/grub/stage1 (hd1) /boot/grub/stage2 p
/boot/grub/menu.l
st "... succeeded
Done.

# then do the same for hd0
grub> root (hd0,0)
grub> setup (hd0)

# You may need to edit this file if you install a new kernel-image to
# tell it where your /dev/md0 is
platinum:/# cat /boot/grub/device.map
(hd0) /dev/hda
(hd1) /dev/md0
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki