I successfully Restored Grub Boot-loader But It Doesn't Work.
Goh Lip
g.lip at gmx.com
Tue Nov 2 06:42:19 UTC 2010
On Tuesday 02,November,2010 02:23 PM, Robert Holtzman wrote:
> On Tue, Nov 02, 2010 at 01:14:32PM +0800, Goh Lip wrote:
>
> ........snip.......
>
>>
>> Now, to answer your question, at a terminal type
>> sudo grub-install dev/sda
>
> Just to show my congenital stupidity, if you multiboot wouldn't you use
> "grub-install dev/sdaX" to specify what partition to install to?
Bob, for both grub2 and grub-legacy, grub would 'take over' the mbr -
the first sector of the disk - and that would *not* happen if we use
"sudo grub-install /dev/sdaX" instead of "sudo grub-install /dev/sda".
I think you meant where the grub.cfg or menu.lst would be and yes, they
are at the partition /dev/sdaX itself. But without going into details as
what grub "puts" into mbr, such as core.img etc., suffice to know that
grub% overrides the mbr.
Also, it is not absolutely necessary to set the OS grub into the mbr: I
myself do not set any of my OS grub to mbr and so I always install grub
to sdaX or do "sudo grub-install /dev/sdaX" instead. That is because I
have a separate "boot-loader" (in grub2) that sets itself to mbr.
However for an overwhelming majority, there will always be an OS grub
that sets to mbr.
Regards - Goh Lip
More information about the ubuntu-users
mailing list