on grub terminal
(in bold are the commands, italics is output to commands)
find /boot/grub/stage1
hd(0,1)
hd(0,3)
to find out which partitions in my computer have GRUB installed in them
root (hd0,1)
Filesystem type is ext3fs, partition type 0x83
telling that this root partition contains grub and is to be installed it will give file system type
f I know I have Ubuntu in partition 2 and Debian in partition 4 and I want Ubuntu's GRUB installed to MBR, I set (hd0,1) as GRUB's root device here. If I chose (hd0,3) that would install Debain's GRUB
here i am installing Ubuntu's grub according to the assumption.
setup (hd0)
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 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 d (hd0) (hd0)1+15 p (hd0,1)/boot/grub/stage
2 /boot/grub/menu.lst"... succeeded
Done.
setup (hd0)' is the command to install Grub's stage1 to MBR in the first hard disk.
We have to do some more tricks to install grub to non MBR partition
No comments:
Post a Comment