[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Lost Ubuntu partitions from grub.cfg. How to most easily recover?

On Sun, May 1, 2011 at 3:22 PM, Andrei Popescu <andreimpopescu@gmail.com> wrote:
> On Du, 01 mai 11, 14:05:16, Paul Johnson wrote:
> If you have os-prober installed (it's recommended by grub-common, it
> should be installed unless you declined or disabled recommends) a simple
> 'update-grub' should do the trick and would also work for future kernel
> updates.
> If this doesn't work I'm sure the os-prober developer would like to know
> it, so please file a bug.

OK, I'm new with the Debian community and don't want to make os-prober
author upset when I still don't know my ass from a hole in the ground.
 So I'm checking to see if this is "bugish" behavior to you.

 I've got os-prober

$ dpkg -l | grep prober
ii  os-prober                                            1.42
                    utility to detect other OSes on a set of drives

However, it does not find the Ubuntu partitions

$ sudo update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-2.6.38-2-amd64
Found initrd image: /boot/initrd.img-2.6.38-2-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found Microsoft Windows XP Professional on /dev/sda1

Meanwhile, I've learned I can manually insert the Ubuntu stanza in
grub.cfg and it does bring up Ubuntu system.

 menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu
--class gnu-linux --class gnu --class os {
         set gfxpayload=$linux_gfx_mode
         insmod part_msdos
         insmod ext2
         set root='(/dev/sda,msdos3)'
         search --no-floppy --fs-uuid --set=root
         linux   /vmlinuz-2.6.38-8-generic
root=UUID=18c56003-c1d4-4fa1-8753-a20bf3034b7e ro   quiet splash
         initrd  /initrd.img-2.6.38-8-generic

> Regards,
> Andrei

Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

Reply to: