Windows vista grub menu entry lost after 11.04 upgd

Asked by John Kirby

I have just upgraded from 10.10 to 11.04. I specified the option to keep the original grub when asked during the upgrade process. However, when the system restarted the Windows option was gone. Bit of a problem because my email etc is all still in Windows and I'd quite like to get back in there! I am running Vista on /dev/sda2.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
John Kirby
Solved:
Last query:
Last reply:
Revision history for this message
wojox (wojox) said :
#1

Did you run:

sudo update-grub

Also post:

sudo fdisk -l

Please.

Revision history for this message
John Kirby (john-kirbynet) said :
#2

Thanks for the response wojox. The results of the update and the list are below. It doesn't look as though the update worked judging by the entries printedbelow, but I'll now reboot and let you know....

john@john-EQUIUM-P200D:~$ sudo update-grub
[sudo] password for john:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found linux image: /boot/vmlinuz-2.6.35-28-generic
Found initrd image: /boot/initrd.img-2.6.35-28-generic
Found memtest86+ image: /boot/memtest86+.bin
done
john@john-EQUIUM-P200D:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5542e38c

   Device Boot Start End Blocks Id System
/dev/sda1 1 192 1536000 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 192 5056 39074816 7 HPFS/NTFS
/dev/sda3 5056 6969 15360000 7 HPFS/NTFS
/dev/sda4 6969 9730 22177793 5 Extended
/dev/sda5 9682 9730 386048 82 Linux swap / Solaris
/dev/sda6 6969 9682 21790720 83 Linux

Partition table entries are not in disk order

Revision history for this message
John Kirby (john-kirbynet) said :
#3

I rebooted and the menu appeared as in the above update listing. Vista (on sda2) is still missing.

Revision history for this message
John Kirby (john-kirbynet) said :
#4

Wojox, thanks for your help, I have managed to fix the problem after reading around.

The solution was to install os-prober using the synaptic package manager and then run it (sudo os-prober). This identified Vista. I then ran sudo update-grub2 again - and it worked!

Revision history for this message
John Kirby (john-kirbynet) said :
#5

Please see last message for the solution.