Installed ubuntu but grub doesn't show my old windows install as an option
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Installed ubuntu but grub doesn't show my old windows install as an option
I have 3 SATA drives with 2 in raid0 which contains the windows7 installation I'm interested in, and the 3rd holding two versions of ubuntu (I think, I've lost track). There is also an IDE drive with windows xp.
Messing with BIOS settings I can select either the IDE drive or the raid0 to boot from. When I boot from the IDE I see the old ubuntu and windows xp in grub. When I boot from the raid0 I see two versions of ubuntu and windows xp but no windows7!
Here is the results of a boot info script someone suggested running...
Code:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #6 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdc
=> Grub 2 is installed in the MBR of /dev/sdd and looks for
(UUID=c7938c11-59ff-49c2-b44a-ea8b2b84352d)/boot/grub.
sda1: _________________________________________________________________________
File system: isw_raid_member
Boot sector type: Windows Vista/7
Boot sector info:
Mounting failed:
mount: unknown filesystem type 'isw_raid_member'
sdc1: _________________________________________________________________________
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
sdc2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdc5: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdc6: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdc7: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdd1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 63 976,768,064 976,768,002 7 HPFS/NTFS
/dev/sda1 ends after the last sector of /dev/sda
Drive: sdc ___________________ _____________________________________________________
Disk /dev/sdc: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdc1 63 241,308,236 241,308,174 83 Linux
/dev/sdc2 241,309,694 488,392,064 247,082,371 5 Extended
/dev/sdc5 479,347,533 488,392,064 9,044,532 82 Linux swap / Solaris
/dev/sdc6 241,309,696 469,587,967 228,278,272 83 Linux
/dev/sdc7 469,590,016 479,346,687 9,756,672 82 Linux swap / Solaris
Drive: sdd ___________________ _____________________________________________________
Disk /dev/sdd: 120.1 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders, total 234493056 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdd1 * 63 234,468,674 234,468,612 7 HPFS/NTFS
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 isw_raid_member
/dev/sda isw_raid_member
/dev/sdb isw_raid_member
/dev/sdc1 c7938c11-59ff-49c2-b44a-ea8b2b84352d ext4
/dev/sdc2: PTTYPE="dos"
/dev/sdc5 12311281-de75-4bb5-8046-5a5fa16c5f3c swap
/dev/sdc6 24418dac-d572-44bb-915e-b4ef5901e2c2 ext4
/dev/sdc7 2d499afd-58ec-4db2-a844-cc41447ac951 swap
/dev/sdc: PTTYPE="dos"
/dev/sdd1 A4484E0A484DDBA4 ntfs
/dev/sdd: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sdc6 / ext4 (rw,errors=remount-ro)
=========================== sdc1/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 c7938c11-59ff-49c2-b44a-ea8b2b84352d
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-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 c7938c11-59ff-49c2-b44a-ea8b2b84352d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=c7938c11-59ff-49c2-b44a-ea8b2b84352d 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 c7938c11-59ff-49c2-b44a-ea8b2b84352d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=c7938c11-59ff-49c2-b44a-ea8b2b84352d ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### 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 ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set a4484e0a484ddba4
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###
=============================== sdc1/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=c7938c11-59ff-49c2-b44a-ea8b2b84352d / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=12311281-de75-4bb5-8046-5a5fa16c5f3c 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
=================== sdc1: Location of files loaded by Grub: ===================
13.7GB: boot/grub/core.img
13.7GB: boot/grub/grub.cfg
.4GB: boot/initrd.img-2.6.31-14-generic
.5GB: boot/vmlinuz-2.6.31-14-generic
.4GB: initrd.img
.5GB: vmlinuz
=========================== sdc6/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 $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 24418dac-d572-44bb-915e-b4ef5901e2c2
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
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 24418dac-d572-44bb-915e-b4ef5901e2c2
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 24418dac-d572-44bb-915e-b4ef5901e2c2
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=24418dac-d572-44bb-915e-b4ef5901e2c2 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 24418dac-d572-44bb-915e-b4ef5901e2c2
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=24418dac-d572-44bb-915e-b4ef5901e2c2 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 24418dac-d572-44bb-915e-b4ef5901e2c2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd2,6)'
search --no-floppy --fs-uuid --set 24418dac-d572-44bb-915e-b4ef5901e2c2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sdc1)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set c7938c11-59ff-49c2-b44a-ea8b2b84352d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=c7938c11-59ff-49c2-b44a-ea8b2b84352d ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set c7938c11-59ff-49c2-b44a-ea8b2b84352d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=c7938c11-59ff-49c2-b44a-ea8b2b84352d ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Microsoft Windows XP Professional (on /dev/sdd1)" {
insmod ntfs
set root='(hd3,1)'
search --no-floppy --fs-uuid --set a4484e0a484ddba4
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###
=============================== sdc6/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 nodev,noexec,nosuid 0 0
# / was on /dev/sdc6 during installation
UUID=24418dac-d572-44bb-915e-b4ef5901e2c2 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc7 during installation
UUID=2d499afd-58ec-4db2-a844-cc41447ac951 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
=================== sdc6: Location of files loaded by Grub: ===================
136.5GB: boot/grub/core.img
216.1GB: boot/grub/grub.cfg
136.5GB: boot/initrd.img-2.6.32-21-generic
136.5GB: boot/vmlinuz-2.6.32-21-generic
136.5GB: initrd.img
136.5GB: vmlinuz
================================ sdd1/boot.ini: ================================
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
Other notes: From the new ubuntu install I'm not able to see the raid0 drive. Booting from the install CD, I'm able to see and mount the raid0 drive and browse its contents.
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918
Rep:
Grub 2 is a disaster still, because it is so new... I'v spend daze wrestling with it, before I said enuff is enuff.. until they progress more. The docs are scant, and other information scattered over the net is either wrong, too complicated, or otherwise misleading.
The quick fix would be to trash it, put the old reliable grub (legacy)ver 0.97-61 back on.
The only thing to consider extra, because you have ext4 (I think on all your partitions).. is to put your /boot (ie. grub files, kernels, initrds, etc.) on a small separate ext3 partition, or grub (legacy) won't be able to read them.
Neither Grub Legacy nor Grub2 actually boot windows but simply point to the windows bootloader which then takes over. Your script output shows Grub2 in the mbr of sda and sdd and xp boot files in sdc.
xp by default is not capable of booting win 7. win 7 can boot xp. If you review your script output, you will see entries for xp in the grub.cfg file but none for win 7 which is the opposite of the way it should be with the windows bootloader capabilities.
I'm not familiar with Grub2 as it is still beta.
You will probably need to figure out some way to get win7 to boot xp and I expect you can search support.microsoft.com for an answer. Don't use either myself. I'm not sure what impact raid setup will have?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.