Grub disk: something automatic?

Goh Lip g.lip at
Mon Jan 25 19:36:06 UTC 2010

On 01/26/2010 02:42 AM, Dotan Cohen wrote:
> Is there some LiveCD that will install Grub to the MBR of the
> harddrive of my choice, and automatically configure the relevant
> menu.lst for the different kernels that each OS has?

Dotan, if we are talking only of grub-legacy not grub2, then at grub 
prompt do a 'root' and 'setup' like
root (hd0,x)
setup (hd1)

But watch out for mapping if harddrive is not the master drive
Also you would need to update-grub first for that (hd,x). You cannot do 
that at grub-prompt.

Reminder, grub legacy will not detect ext4 and grub2 config files. So if 
you have an OS on grub2 or ext4, it's best to go with grub2 and set that 
to mbr.

> I have found SuperGrub but in addition to being unmaintained, it does
> not automatically configure menu.lst. It seems that SuperGrub will
> only restore a previous grub, it will not help install a new Grub
> setup. Furthermore, SuperGrub does not support Grub2.

SuperGrub is being maintained and I think they've come up with a version 
that uses grub2. It is grub-legacy that is not being maintained. But I 
do not use SuperGrub, so I am not sure if it is more useful now. I find 
the blank grub-legacy cd and now the blank grub2 cd more than adequate.

Strongly recommend you make a grub2 cd by 'grub-mkrescue'. It will boot 
up any OS in your computer, whether or not you've a functioning menu.lst 
or grub.cfg or a corrupted windows mbr.

regards - goh lip

More information about the ubuntu-users mailing list