pardon?
November 15th, 2009, 07:01 PM
hi,
My hard disk is organised as:
/dev/sda1 1 16379 131556348 7 HPFS/NTFS
/dev/sda2 * 16380 18246 14996677+ 83 Linux
/dev/sda3 18247 30401 97635037+ 5 Etendue
/dev/sda5 18247 18495 2000061 82 Linux swap / Solaris
/dev/sda6 18496 30401 95634913+ 83 Linux
sda1 is my Vista partition, sda3 is my Ubuntu 9.10 / partition and sda6 my /home partition.
Note that I've moved the boot flag from sda1 to sda2. I've installed 9.10 using the installer from the LiveCD and all works well but I wonder: if I have to re-install Grub2 for a reason how can I do it?
My question is: how can I, using the cli, install Grub2 in the sda2 partition instead of the MBR. Which command can I use.
Using:
$ sudo grub-install --root-directory=/... /dev/sda
will install grub2 in the MBR if I'm not mistaken. And when I do:
$ sudo grub-install --root-directory=/... /dev/sda2
It reports an error.
My hard disk is organised as:
/dev/sda1 1 16379 131556348 7 HPFS/NTFS
/dev/sda2 * 16380 18246 14996677+ 83 Linux
/dev/sda3 18247 30401 97635037+ 5 Etendue
/dev/sda5 18247 18495 2000061 82 Linux swap / Solaris
/dev/sda6 18496 30401 95634913+ 83 Linux
sda1 is my Vista partition, sda3 is my Ubuntu 9.10 / partition and sda6 my /home partition.
Note that I've moved the boot flag from sda1 to sda2. I've installed 9.10 using the installer from the LiveCD and all works well but I wonder: if I have to re-install Grub2 for a reason how can I do it?
My question is: how can I, using the cli, install Grub2 in the sda2 partition instead of the MBR. Which command can I use.
Using:
$ sudo grub-install --root-directory=/... /dev/sda
will install grub2 in the MBR if I'm not mistaken. And when I do:
$ sudo grub-install --root-directory=/... /dev/sda2
It reports an error.