I have a dual boot Win7 - SUSE 12.2 installation. I have the W7 on a SSD (sda), that I installed first. I also have a 1 TB HD (sdb) that I formatted for 500 GB NTFS partion, 8 GB SWAP, and the rest EXT 4 for SUSE. During the installation, it wanted to delete entire windows partition because it was inconsistent. So loaded GParted and formatted the whole disk using a GPT (SUSE installation said it wanted this). Then went back to installation and SUSE ended up creating a FAT partition for boot also.
All fine so far, get GRUB2 boot menu with Win7 and SUSE as options, boot into SUSE, works great.
Then I try to go to GRUB2 and boot into Windows 7, and it gives me:
invalid EFI file path
I can still get into Windows 7 by going manually to boot menu and booting from either the SSD or the HD directly. But I’m wanting to be able to take advantage of my GRUB2.
So from the research I did. I think I need to either edit, or add a menu entry for the Windows 7 partition. I found that I can add stuff to:
/etc/grub.d/40_custom
but I do not know what to put there, or what the name of the image is, etc. Also, how could I find the correct ‘efi file path’ and change the current invalid path to the correct one?
Any help is appreciated.
The output of fdisk -l is:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00089e98
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 234438655 117115904 7 HPFS/NTFS/exFAT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
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 / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 1953525167 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdc: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xacdd9b22
Device Boot Start End Blocks Id System
/dev/sdc1 63 1250258624 625129281 7 HPFS/NTFS/exFAT
The output of gdisk -l sda is:
GPT fdisk (gdisk) version 0.8.2
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************
Disk /dev/sda: 234441648 sectors, 111.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 217675FD-B1C0-4946-8535-D874647F6843
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 234441614
Partitions will be aligned on 2048-sector boundaries
Total free space is 4973 sectors (2.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 206847 100.0 MiB 0700 Microsoft basic data
2 206848 234438655 111.7 GiB 0700 Microsoft basic data
the output of gdisk -l /dev/sdb is:
GPT fdisk (gdisk) version 0.8.2
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): CAD9DBB9-5F7A-4BAD-BDA8-FFF4861DEE9B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 16779263 8.0 GiB 8200
2 16779264 1065355263 500.0 GiB 0700
3 1065355264 1953116159 423.3 GiB 0700
4 1953116160 1953523711 199.0 MiB EF00 primary
and the output of gdisk -l /dev/sdc is:
GPT fdisk (gdisk) version 0.8.2
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************
Disk /dev/sdc: 1250263728 sectors, 596.2 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9977600E-A59B-4397-A31B-C1F7182D6404
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1250263694
Partitions will be aligned on 8-sector boundaries
Total free space is 5099 sectors (2.5 MiB)
Number Start (sector) End (sector) Size Code Name
1 63 1250258624 596.2 GiB 0700 Microsoft basic data