arilyn
February 6th, 2010, 10:16 AM
I recently installed Ubuntu 9.10 onto my second hard drive, and now I can't boot into Vista (installed on hard drive #1). Grub2 just doesn't seem to be recognizing that there is a Windows Vista installation on the first hard drive.
I followed this guide (http://erickoo.wordpress.com/2009/06/14/how-to-add-vista-partition-to-grub-2-ubuntu-9-10-karmic-koala/) (with Fabien's changes) because it seemed like they were having the exact same problem. But after rebooting, Vista is still not showing in the GRUB menu. In fact, the GRUB menu doesn't even show up unless I press Shift because it thinks that Ubuntu is the only OS installed on my computer.
My results with boot_info_script:
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks for
(UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb
sda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /Windows/System32/winload.exe
sdb1: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb2: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x474a18c1
Partition Boot Start End Size Id System
/dev/sda1 * 2,048 1,250,258,943 1,250,256,896 7 HPFS/NTFS
Drive: sdb ___________________ __________________________________________________ ___
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x11d63aec
Partition Boot Start End Size Id System
/dev/sdb1 63 952,991,864 952,991,802 83 Linux
/dev/sdb2 952,991,865 976,768,064 23,776,200 5 Extended
/dev/sdb5 952,991,928 976,768,064 23,776,137 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/sda1 C64661004660F29B ntfs
/dev/sdb1 e94a058d-1d19-4a98-924b-1a5fce405bdd ext4
/dev/sdb5 af30f475-dad5-45fa-a92b-1f728bd74482 swap
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sdb1 / ext4 (rw,errors=remount-ro)
=========================== sdb1/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-19-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd ro quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd ro single
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/11_Windows ###
menuentry "Microsoft Windows" {
insmod ntfs
insmod chain
insmod drivemap
set root=(hd0,1)
drivemap -s (hd0) (hd1)
chainloader +1
}
### END /etc/grub.d/11_Windows ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
=============================== sdb1/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sdb1 during installation
UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=af30f475-dad5-45fa-a92b-1f728bd74482 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
=======Devices which don't seem to have a corresponding hard drive==============
sdc
Another weird thing:
When I was installing Ubuntu to HD2 (the 500gb one), I got a peculiar message saying that Windows was installed on it. There wasn't anything on HD2 though, because Windows Vista was most definitely installed on HD1.
However, if I chose to overwrite HD1 with Ubuntu, the message wouldn't come up. It seemed like the installer was confused as to which hard drive actually held my Windows Vista install.
I wonder if that's related to this current GRUB issue.
Thank you for any help, it's highly appreciated.
I followed this guide (http://erickoo.wordpress.com/2009/06/14/how-to-add-vista-partition-to-grub-2-ubuntu-9-10-karmic-koala/) (with Fabien's changes) because it seemed like they were having the exact same problem. But after rebooting, Vista is still not showing in the GRUB menu. In fact, the GRUB menu doesn't even show up unless I press Shift because it thinks that Ubuntu is the only OS installed on my computer.
My results with boot_info_script:
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks for
(UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd)/boot/grub.
=> Windows is installed in the MBR of /dev/sdb
sda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /Windows/System32/winload.exe
sdb1: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb2: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x474a18c1
Partition Boot Start End Size Id System
/dev/sda1 * 2,048 1,250,258,943 1,250,256,896 7 HPFS/NTFS
Drive: sdb ___________________ __________________________________________________ ___
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x11d63aec
Partition Boot Start End Size Id System
/dev/sdb1 63 952,991,864 952,991,802 83 Linux
/dev/sdb2 952,991,865 976,768,064 23,776,200 5 Extended
/dev/sdb5 952,991,928 976,768,064 23,776,137 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/sda1 C64661004660F29B ntfs
/dev/sdb1 e94a058d-1d19-4a98-924b-1a5fce405bdd ext4
/dev/sdb5 af30f475-dad5-45fa-a92b-1f728bd74482 swap
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sdb1 / ext4 (rw,errors=remount-ro)
=========================== sdb1/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-19-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd ro quiet splash
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
linux /boot/vmlinuz-2.6.31-19-generic root=UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd ro single
initrd /boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,1)
search --no-floppy --fs-uuid --set e94a058d-1d19-4a98-924b-1a5fce405bdd
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/11_Windows ###
menuentry "Microsoft Windows" {
insmod ntfs
insmod chain
insmod drivemap
set root=(hd0,1)
drivemap -s (hd0) (hd1)
chainloader +1
}
### END /etc/grub.d/11_Windows ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
=============================== sdb1/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sdb1 during installation
UUID=e94a058d-1d19-4a98-924b-1a5fce405bdd / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=af30f475-dad5-45fa-a92b-1f728bd74482 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
=======Devices which don't seem to have a corresponding hard drive==============
sdc
Another weird thing:
When I was installing Ubuntu to HD2 (the 500gb one), I got a peculiar message saying that Windows was installed on it. There wasn't anything on HD2 though, because Windows Vista was most definitely installed on HD1.
However, if I chose to overwrite HD1 with Ubuntu, the message wouldn't come up. It seemed like the installer was confused as to which hard drive actually held my Windows Vista install.
I wonder if that's related to this current GRUB issue.
Thank you for any help, it's highly appreciated.