Grub installer for Ubuntu 7.10 adds other OS entry only for Ubuntu 7.04, and not Windows, in a triple-boot configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity |
New
|
Undecided
|
Unassigned | ||
grub-installer (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub-installer
I just installed Ubuntu 7.10 on a separate partition (/dev/sda8) on a machine that already runs Ubuntu 7.04 on /dev/sda6 and Windows XP Media Center Edition on /dev/sda1. However, the grub menu only shows Ubuntu 7.04 under the "Other OS" category, not Windows. Also, during the grub installation phase, when the installer prompts the user to install GRUB to the MBR, it only listed Ubuntu 7.04, not Windows, under the "Other Operating Systems have been found" section. The relevant section of /boot/grub/menu.lst follows:
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sde6.
title Ubuntu, kernel 2.6.20-16-generic (on /dev/sde6)
root (hd0,5)
kernel /boot/vmlinuz-
initrd /boot/initrd.
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sde6.
title Ubuntu, kernel 2.6.20-16-generic (recovery mode) (on /dev/sde6)
root (hd0,5)
kernel /boot/vmlinuz-
initrd /boot/initrd.
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sde6.
title Ubuntu, memtest86+ (on /dev/sde6)
root (hd0,5)
kernel /boot/memtest86
savedefault
boot
However, when I run os-prober as a standalone command, following installation, it detects all 3 operating systems correctly, therefore I assume it was an issue with the grub-installer, not os-prober.
geza@ubuntu:~$ sudo os-prober
/dev/sda1:Windows XP Media Center Edition:
/dev/sda6:Ubuntu 7.04 (7.04):Ubuntu:linux
/dev/sda8:Ubuntu gutsy (development branch) (7.10):
Also, another issue is that, while the mount and os-prober commands identify my first hard drive (the drive to which I installed Ubuntu, and the only drive I have), as /dev/sda, as shown below and above:
geza@ubuntu:~$ mount
/dev/sda8 on / type ext3 (rw,errors=
proc on /proc type proc (rw,noexec,
/sys on /sys type sysfs (rw,noexec,
varrun on /var/run type tmpfs (rw,noexec,
varlock on /var/lock type tmpfs (rw,noexec,
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/
/dev/sda5 on /home type ext3 (rw)
securityfs on /sys/kernel/
However, in the /etc/fstab (below) and grub menu.lst (shown at top), the hard drive is listed as /dev/sde rather than /dev/sda. It was also listed as /dev/sde during the partitioning portion of the installer, during the "the following partitions will be formatted: /dev/sde8" phase:
geza@ubuntu:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sde8
UUID=db9189d2-
# /dev/sde5
UUID=bb944b99-
# /dev/sde7
UUID=2263a204-
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
Also, if you need my partitioning layout, it is as follows (/dev/sda5 is /home, /dev/sda6 is Ubuntu 7.04, /dev/sda8 is Ubuntu 7.10):
geza@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcab10bee
Device Boot Start End Blocks Id System
/dev/sda1 * 1 8958 71955103+ 7 HPFS/NTFS
/dev/sda2 8959 30401 172240897+ 5 Extended
/dev/sda5 11575 30401 151227877+ 83 Linux
/dev/sda6 8959 10101 9181084+ 83 Linux
/dev/sda7 11444 11574 1052226 82 Linux swap / Solaris
/dev/sda8 10102 11443 10779583+ 83 Linux
Partition table entries are not in disk order
My /boot/grub/menu.lst in Ubuntu 7.10, which lists only Ubuntu 7.04 not Windows under "Other OS", is attached