Lost Ubuntu partitions from grub.cfg. How to most easily recover?
When new Ubuntu was released with the Unity desktop, it was so awful
that I decided to join you in the Debian experience. So far, so good.
I installed Squeeze from the DVD, then decided I needed some newer
apps and learned about "testing" and "unstable" and most things are
going well.
When I did the Debian install, it noticed I had a Windows partition
and an Ubuntu partition with two kernels. Grub was set and I could
launch any of those OS. However, after the Debian update to the
testing edition of the kernel, the grub.cfg no longer had my Ubuntu
partitions. It still has the Windows partition. Don't make fun of my
Windows. I only keep it for TurboTax :).
I don't really want to boot the Ubuntu partition, but I'd like to know
how to get it back.
My Ubuntu was installed in the old-style way, with a boot partition
(/dev/sda3), a root partition (/dev/sda7), and separate partitions for
/opt, /usr/local/ and /var. I've tried to manually put in an entry in
grub.cfg, but I'm not as good at grub2 as I wish.
Here's grub.cfg for the Debian partition, which starts nicely
I can mount the Ubuntu partitions in Debian and see what grub.cfg was
in there. I *believe* that if I just copy the following into the
Debian grub.cfg, then I would be able to start Ubuntu.
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class
gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos3)'
search --no-floppy --fs-uuid --set=root
2eb8cda6-366c-4ef7-b7da-8ff292ca7e61
linux /vmlinuz-2.6.38-8-generic
root=UUID=18c56003-c1d4-4fa1-8753-a20bf3034b7e ro quiet splash
vt.handoff=7
initrd /initrd.img-2.6.38-8-generic
}
Right?
I'm not in danger of Breaking any parts that do work now, am i?
And how can this become permanent. however, the next time Debian
kernel updates, it will disappear again. How to make it permanent?
grub.cfg says:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
But in /etc/default/grub, there's nothing about the other OS in grub.cfg.
Ideas?
--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
Reply to: