ubuntu 11.04 /Win7 dual boot Grub 2 cannot see Win7 (GPT)
Hi
Installed Win7 first, then Ubuntu with manual partitioning, with both OS on dev/sda (SSD) and Linux /home on dev/sdb (HDD)
now PC boots straight into Ubuntu with no Grub menu. Ran update-grub but no win7 entry showing. Partition table:
dev/sda1 - bios_grub
dev/sda2 - mftres
dev/sda3 - ntfs
dev/sda4 - /boot
dev/sda5 - linux-swap
dev/sda6 - /
dev/sdb2 - extended
dev/sdb5 - /home
Results from boot_info_script:
=======
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 34
of the same hard drive for core.img. core.img is at this location and
looks for (,gpt4)/grub on this drive.
=> Windows is installed in the MBR of /dev/sdb.
sda1: _______
File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:
sda2: _______
File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
sda3: _______
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/
sda4: _______
File system: ext4
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda4
Operating System:
Boot files: /grub/grub.cfg /grub/core.img
sda5: _______
File system: swap
Boot sector type: -
Boot sector info:
sda6: _______
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb2: _______
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: _______
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
=======
Drive: sda _______
Disk /dev/sda: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 125,045,423 125,045,423 ee GPT
GUID Partition Table detected.
Partition Start Sector End Sector # of Sectors System
/dev/sda1 34 206,847 206,814 BIOS Boot partition
/dev/sda2 206,848 468,991 262,144 Microsoft Reserved Partition (Windows)
/dev/sda3 468,992 92,274,687 91,805,696 Data partition (Windows/Linux)
/dev/sda4 92,274,688 92,778,594 503,907 EFI System partition
/dev/sda5 92,778,595 96,684,845 3,906,251 Swap partition (Linux)
/dev/sda6 96,684,846 125,044,221 28,359,376 Data partition (Windows/Linux)
Drive: sdb _______
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb2 2,048 1,953,523,711 1,953,521,664 5 Extended
/dev/sdb5 4,096 1,953,523,711 1,953,519,616 83 Linux
"blkid" output: _______
Device UUID TYPE LABEL
/dev/sda3 920CBE360CBE1567 ntfs
/dev/sda4 a8311d3e-
/dev/sda5 b27f9c57-
/dev/sda6 4367cf73-
/dev/sdb5 47544c33-
=======
Device Mount_Point Type Options
/dev/sda4 /boot ext4 (rw,commit=0)
/dev/sda6 / ext4 (rw,errors=
/dev/sdb5 /home ext4 (rw,commit=0)
=======
-------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_
set 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_
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
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root 4367cf73-
if loadfont /usr/share/
set gfxmode=800x600
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
set locale_
set lang=en_GB
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
if background_color 44,0,30; then
clear
fi
### END /etc/grub.
### BEGIN /etc/grub.
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}
if hwmatch ${prefix}
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-10-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
linux /vmlinuz-
initrd /initrd.
}
menuentry 'Ubuntu, with Linux 2.6.38-10-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
echo 'Loading Linux 2.6.38-10-generic ...'
linux /vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /initrd.
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
linux /vmlinuz-
initrd /initrd.
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
echo 'Loading Linux 2.6.38-8-generic ...'
linux /vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /initrd.
}
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
linux16 /memtest86+.bin console=
}
### END /etc/grub.
### BEGIN /etc/grub.
if [ "x${timeout}" != "x-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.
### BEGIN /etc/grub.
# 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.
### BEGIN /etc/grub.
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.
-------
=================== sda4: Location of files loaded by Grub: =======
GiB - GB File Fragment(s)
44.019274712 = 47.265336320 grub/core.img 1
44.022967339 = 47.269301248 grub/grub.cfg 1
44.084535599 = 47.335409664 initrd.
44.068873405 = 47.318592512 initrd.
44.029607773 = 47.276431360 vmlinuz-
44.017886162 = 47.263845376 vmlinuz-
=======
-------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_
set 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_
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
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root 4367cf73-
if loadfont /usr/share/
set gfxmode=800x600
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
set locale_
set lang=en_GB
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
if background_color 44,0,30; then
clear
fi
### END /etc/grub.
### BEGIN /etc/grub.
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}
if hwmatch ${prefix}
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-10-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
linux /vmlinuz-
initrd /initrd.
}
menuentry 'Ubuntu, with Linux 2.6.38-10-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
echo 'Loading Linux 2.6.38-10-generic ...'
linux /vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /initrd.
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
linux /vmlinuz-
initrd /initrd.
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
echo 'Loading Linux 2.6.38-8-generic ...'
linux /vmlinuz-
echo 'Loading initial ramdisk ...'
initrd /initrd.
}
}
### END /etc/grub.
### BEGIN /etc/grub.
### END /etc/grub.
### BEGIN /etc/grub.
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(
search --no-floppy --fs-uuid --set=root a8311d3e-
linux16 /memtest86+.bin console=
}
### END /etc/grub.
### BEGIN /etc/grub.
if [ "x${timeout}" != "x-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.
### BEGIN /etc/grub.
# 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.
### BEGIN /etc/grub.
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.
-------
=======
-------
# /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/sda5 during installation
UUID=4367cf73-
# /boot was on /dev/sda1 during installation
UUID=a8311d3e-
# /home was on /dev/sdb5 during installation
UUID=47544c33-
# swap was on /dev/sda4 during installation
UUID=b27f9c57-
-------
=================== sda6: Location of files loaded by Grub: =======
GiB - GB File Fragment(s)
46.122201920 = 49.523337216 boot/grub/core.img 1
46.125894547 = 49.527302144 boot/grub/grub.cfg 1
46.187462807 = 49.593410560 boot/initrd.
46.171800613 = 49.576593408 boot/initrd.
46.132534981 = 49.534432256 boot/vmlinuz-
46.120813370 = 49.521846272 boot/vmlinuz-
46.187462807 = 49.593410560 initrd.img 3
46.171800613 = 49.576593408 initrd.img.old 2
46.132534981 = 49.534432256 vmlinuz 1
46.120813370 = 49.521846272 vmlinuz.old 1
=======
unlzma: Decoder error
unlzma: Decoder error
My MB (Asus p8p67 pro) has UEFI bios and is showing HDD (dev/sdb) as "Windows Boot Manager"
I don't know how this got on HDD as both OS are installed on SSD drive, but maybe this is the problem?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu grub2 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jez
- Solved:
- Last query:
- Last reply: