When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy
Goh Lip
g.lip at gmx.com
Wed Nov 4 15:54:56 UTC 2009
bqz69 wrote:
> I did following from sda8 910
>>>> at sh:grub> prompt, type "ls" (without quote marks)
> This gave (hd0), (hd0,1) (hd0,2) (hd0,3) (hd0,5) (hd0,6) (hd0,7) (hd0,8)
>
>>>> type "search -f /boot/grub/grub.cfg" and it will show partitions with
>>>> grub.cfg.
> This gave hd0,8 (and not hd0,5/6)
This is not good. It means there is no grub.cfg. for your sda5 (boot)
>>>> type " search -f /boot/grub/menu.lst" and it will show partitions with
>>>> menu.lst
> This gave both hd0,7 and hd0.2 (which are debian and 8.04)
>
>> set root=(hd0,5)
>> linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda5 ro quiet splash
>> initrd /boot/initrd.img-2.6.31-14-generic
> I tried this, and it did not work.
Worse, your boot files vmlinuz and initrd are not there either.
>> If this cannot boot, then boot to sda8, 9.10 and at terminal,
>> sudo grub-install --root-directory=/dev/sda5 /dev/sda
> I did this in sda8 in a terminal, and here is the output:
>
> user1 at fs-910-sda8:~$ sudo grub-install --root-directory=/dev/sda5 /dev/sda
> [sudo] password for user1:
> mkdir: cannot create directory `/dev/sda5/boot': Not a directory
> user1 at fs-910-sda8:~$
>
Here, I was hoping we can force to make boot files from your sda8 to
sda5,(and set sda5 boot to sda) but apparently it failed.
>> check from sda8 if grub.cfg at sda5 has entries, if not copy entries
>> from grub.cfg of sda8 to grub.cfg of sda5. and add the following as
>> first entry
> I can see sda5 and mount it from sda8
This is if we succeed, we ensure grub.cfg is there, especially for the
sda5 entry.
Okay, Niels, maybe ... it's the encrypted partitions that you set up
preventing access to sda5. I don't know. But ...we can still try to copy
the boot files from sda8 to sda5 the old fashioned way, taking care to
set the correct UUID number of sda5 or just /dev/sda5 or
root=LABEL=xxxxx, I wonder though if you can do this when the partition
is encrypted causing the same failure as before. Do you want to try this
out? Let us know how it turns out.
Perhaps my buddy, Tom H, can put in some input? He had given me some
pointers lately, he may throw some light on this.
Take care, good luck.
Regards,
Goh Lip
More information about the ubuntu-users
mailing list