Grub disk: something automatic?
Goh Lip
g.lip at gmx.com
Mon Jan 25 20:34:12 UTC 2010
On 01/26/2010 03:43 AM, Dotan Cohen wrote:
> 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.
>
I'll send separately to your email an iso file about 1 Mb a grub2 live
cd. To boot, do one (out of 3) of the following
*1*
configfile (hd0,x)/boot/grub/grub.cfg
*2*
linux (hdy,x)/vmlinuz root=/dev/sdax {sdbx ?}
initrd (hdy,x)/initrd.img
boot
*3*
set root=(hdy,x)
chainloader +1
boot
note: 'x' and 'y' in (hdy,x) and sdax {sdbx ?} is a real number of your
partition
do a search to confirm:
search -f /vmlinuz
search -f /boot/grub/grub.cfg
search -f /boot/grub/menu.lst {?}
>> 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.
>>
>
> 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?
>
To set grub2 of your Karmic partition, boot your Karmic livecd,
at terminal...
sudo grub-setup -d /media/{kubuntu9.10partition}/boot/grub /dev/sda
substitute /media/{kubuntu9.10partition} with actual partition :)
If you get error message,(mapping fails), do this..
sudo grub-setup -d /media/{kubuntu9.10partition}/boot/grub -m
/media/{kubuntu9.10partition}/boot/grub/device.map /dev/sda
However, I think it's best to use the grub2.iso and boot up and do a
grub-install /dev/sda
Dotan, if I remember correctly from one of your earlier messages, you've
set up your master/slave drive which is reversed. ie., sda is slave and
sdb is master. Maybe you want to look at that if you are still unable to
get this working.
regards - goh lip
More information about the ubuntu-users
mailing list