satellite360
November 2nd, 2009, 11:54 AM
Hi all
Just installed Windows 7 and Ubuntu 9.10 on 2 separate HDDs. Windows 7 boots fine when I detach the Ubuntu HDD but fails to boot from grub2.
Updating grub2 gives the following error:
$ sudo update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
grub-probe: error: Cannot find a GRUB drive for /dev/sdb1. Check your device.map.
done
The device map shows only this:
$ cat /boot/grub/device.map
(hd0) /dev/sda
fdisk output:
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9b36db89
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2562 20579233+ 83 Linux
/dev/sda2 38787 38913 1020127+ 82 Linux swap / Solaris
/dev/sda3 2563 38786 290969280 83 Linux
Partition table entries are not in disk order
$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2f2d153b
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2 13 10396 83398656 7 HPFS/NTFS
/dev/sdb3 10396 38914 229067776 7 HPFS/NTFS
Any idea what I need to do to get grub2 to boot Windows 7 (/dev/sdb2)?
Just installed Windows 7 and Ubuntu 9.10 on 2 separate HDDs. Windows 7 boots fine when I detach the Ubuntu HDD but fails to boot from grub2.
Updating grub2 gives the following error:
$ sudo update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sdb1
grub-probe: error: Cannot find a GRUB drive for /dev/sdb1. Check your device.map.
done
The device map shows only this:
$ cat /boot/grub/device.map
(hd0) /dev/sda
fdisk output:
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9b36db89
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2562 20579233+ 83 Linux
/dev/sda2 38787 38913 1020127+ 82 Linux swap / Solaris
/dev/sda3 2563 38786 290969280 83 Linux
Partition table entries are not in disk order
$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2f2d153b
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2 13 10396 83398656 7 HPFS/NTFS
/dev/sdb3 10396 38914 229067776 7 HPFS/NTFS
Any idea what I need to do to get grub2 to boot Windows 7 (/dev/sdb2)?