lostinspace2011
May 23rd, 2012, 02:37 PM
I just did a fresh installation of Windows7 and Ubuntu 12.4 on a new GPT drive. First I installed Windows which created 3 partitions as shown below.
Then I installed Ubuntu 12.4 (64bit) and created a further 3 partitions:
Disk /dev/sdc: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): A4063C92-5D8B-4689-B3C4-D7C2F24AEC1A
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 206847 100.0 MiB EF00 EFI system partition
2 206848 468991 128.0 MiB 0C01 Microsoft reserved part
3 468992 409602047 195.1 GiB 0700 Basic data partition
4 409602048 410126335 256.0 MiB 8300 Linux filesystem
5 410126336 418514943 4.0 GiB 8200 Linux swap
6 418514944 976773134 266.2 GiB 0700 Linux filesystemThe update-grub scripts seems to be calling the os-prober command, however this does not detect the Windows installation. I tried adding the configuration to grub2 manually, however this didn't work either.
I added this to /etc/grub.d/20_windows7
#! /bin/sh -e
cat << EOF
menuentry "Microsoft Windows 7 Professional 2/2" {
set root=(hd2,2)
chainloader +1
}
menuentry "Microsoft Windows 7 Professional 2/3" {
set root=(hd2,3)
chainloader +1
}
EOFAny pointers on what I can do this fix this ? Are there any command I can run to get grub2 to auto-detect the Windows installation ?
Then I installed Ubuntu 12.4 (64bit) and created a further 3 partitions:
Disk /dev/sdc: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): A4063C92-5D8B-4689-B3C4-D7C2F24AEC1A
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 206847 100.0 MiB EF00 EFI system partition
2 206848 468991 128.0 MiB 0C01 Microsoft reserved part
3 468992 409602047 195.1 GiB 0700 Basic data partition
4 409602048 410126335 256.0 MiB 8300 Linux filesystem
5 410126336 418514943 4.0 GiB 8200 Linux swap
6 418514944 976773134 266.2 GiB 0700 Linux filesystemThe update-grub scripts seems to be calling the os-prober command, however this does not detect the Windows installation. I tried adding the configuration to grub2 manually, however this didn't work either.
I added this to /etc/grub.d/20_windows7
#! /bin/sh -e
cat << EOF
menuentry "Microsoft Windows 7 Professional 2/2" {
set root=(hd2,2)
chainloader +1
}
menuentry "Microsoft Windows 7 Professional 2/3" {
set root=(hd2,3)
chainloader +1
}
EOFAny pointers on what I can do this fix this ? Are there any command I can run to get grub2 to auto-detect the Windows installation ?