Grub disk: something automatic?
Karl F. Larsen
klarsen1 at gmail.com
Mon Jan 25 21:01:48 UTC 2010
Dotan Cohen wrote:
>> 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.
>>
>
> The problem is that I often cannot boot, so I cannot perform
> update-grub. Also, most of my machines (other than the laptop) have
> multiple hard drives.
>
>
>> 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.
To do this you need a liveCD from Ubuntu 9.10 Karmic. It has
Grub-2 on it.
>>
>
> Yes, that is what I would like to do (in a general sense, no problem
> to fix at the moment). What LiveCD will do this?
>
All live-CD from 8.2 to now have all the grub calls built in
on the cd. So here is what you do, open a terminal window on
the cd ant type:
$ sudo grub
and this sets up the grub window. You will see this:
grub
and here is what happens. First type like this:
grub root(hd0,1)
grub
At the second grub type
grub setup (hd0)
This will print out a lot of grub things if you did it all
correct. If you made an error you will get an error message.
Now at the grub prompt type exit and your out of grub and in
a plain terminal again. It is time to try the copied system so
just reboot and if all is well you will reboot into the copied
system.
>
>> 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.
>>
>
> It seems that the SuperGrub devs are working on an alternative LiveCD
> now, called Rescatux. However, it is vaporware at the moment.
>
>
>> 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.
>>
>
> This is not one specific machine, rather a general question to keep me
> out of trouble next time. I like to break^w play with things while I
> learn!
>
>
73 Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
Key ID = 3951B48D
More information about the ubuntu-users
mailing list