When installing ubuntu 9.10 karmic koala will grub2 work together with grub legacy
g.lip at gmx.com
Fri Nov 6 05:13:46 UTC 2009
Niels, I do not use encryption on partitions, but after googling, I am
under the impression that we may have problems accessing these
partitions from other OS. To access, this website shows how..
> Then I tried to reinstall 9.10 on my laptop with following setup:
> sda1 and sda2 9.10 encrypted
> sda5 and sda6 8.10 encrypted
> sda7 and sda8 9.10 encrypted
> sdb1 and sdb2 8.04 encrypted
> I reinstalled 9.10 encrypted on sda1 and sda2
> It ended up with grub2 seing sda1 only
See my note above, you are on sda1/2, so your grub2 can see only sda1
> Then I edited from all the menu.lst and put those into 40_custom and ran "sudo
> I managed grub2 to see sda1, sda7 and sdb1 (I could not get it to show sda5,
> which I managed it to do during my first installation)
40_custom will show whatever you put there, (booting up is another
matter). Maybe you should recheck your entry for sda5.
> I also have to press shift button to get the grub2 bootloader showing, so I
> need to edit /etc/default/grub to fix that, but newbies will have problems with
> doing that, I predict.
Should that be in /etc/grub.d instead of /etc/default/grub? What
modifications did you put in /etc/default/grub?
> So my overall impression, after twice having new installed 9.10 (which has
> grub2 as default bootloader) on two different computers, is that the grub2 OS-
> prober system does not work properly during all circumstances.
Again, see first note.
> I also tried the grub-mkrescue command to create a rescue disk, but when I
> boot the rescue cd, it only gives a "sh:grub>" prompt, i had expected it to
> give the whole boot loader menu, in the same way that SGD (Super Grub Disk)
> with grub legacy does.
Yes, grub-mkrescue comes with empty grub.cfg. You get to only "sh:grub>"
prompt. There is supposed to have a command with "-o" (overlay) that
makes iso with your grub.cfg. I failed doing this. But ubuntu sometimes
doesn't get all grub2 revisions to its grub2. Ubuntu's grub is now
beta4. (other grub2 complex commands in earlier beta's failed too, but I
am not sure if this "-o" will work in beta4). But as long as you can
type in some simple commands at grub prompt, I don't think it's much of
a problem booting up any OS. It also doesn't make it computer-specific
as well. You can also make one on usb. There I've put in my grub.cfg
with lots of other customized entries.
> When i boot with SGD I get sda5, sda7 and sdb1.
That is interesting for 2 reasons.
One, SGD is based on grub-legacy (they say that future SGD will be based
on grub2). To be able to read your sda5, sda7 and sdb1 means that these
partitions have menu.lst on them.
Two, that means SGD can access your encrypted partitions. I thought
grub-legacy can never access encrypted partitions.
Niels, I have a partition, distinct and separate from my OS /boots, to
do my booting to all my OS in any partition, so I don't really modify
any OS grub.cfg or menu.lst at all, even with kernel updates. This
partition was set using grub-legacy and I had it converted to grub2. I
also converted my 8.04-hardy (kde 3.5.10) to grub2 as well.
More information about the ubuntu-users