Can't get dual boot with Fedora and Windows 7 on multiple disks to work

asked 2014-12-26 12:59:02 -0500

csxcsx gravatar image

updated 2014-12-26 22:42:54 -0500

mether gravatar image

Hi,

I have a a Fedora 21 installation on a SSD and a Windows 7 installation on a second hard drive. The SSD has GPT and the hard drive has MBR (I believe?).

Here is my parted -l output:

Model: ATA Crucial_CT512MX1 (scsi)
Disk /dev/sda: 512GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name                  Flags
 1      1049kB  211MB  210MB  fat16        EFI System Partition  boot, esp
 2      211MB   735MB  524MB  ext4
 3      735MB   512GB  511GB                                     lvm


Model: ATA ST3160815AS (scsi)
Disk /dev/sdb: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system  Flags
 1      32.3kB  41.9GB  41.9GB  primary   ntfs         boot
 2      41.9GB  160GB   118GB   extended               lba
 5      41.9GB  160GB   118GB   logical   ntfs

Here is my fdisk -l output:

Disk /dev/sda: 477 GiB, 512110190592 bytes, 1000215216 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
Disklabel type: gpt
Disk identifier: 9D223DE1-68DB-4F60-9A27-98B94DA3EB43

Device       Start        End   Sectors   Size Type
/dev/sda1     2048     411647    409600   200M EFI System
/dev/sda2   411648    1435647   1024000   500M Linux filesystem
/dev/sda3  1435648 1000214527 998778880 476.3G Linux LVM

Disk /dev/sdb: 149.1 GiB, 160041885696 bytes, 312581808 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
Disklabel type: dos
Disk identifier: 0x49cd49cc

Device     Boot    Start       End   Sectors  Size Id Type
/dev/sdb1  *          63  81920159  81920097 39.1G  7 HPFS/NTFS/exFAT
/dev/sdb2       81920160 312560639 230640480  110G  f W95 Ext'd (LBA)
/dev/sdb5       81920223 312560639 230640417  110G  7 HPFS/NTFS/exFAT

Disk /dev/mapper/fedora-root: 50 GiB, 53687091200 bytes, 104857600 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 /dev/mapper/fedora-swap: 7.8 GiB, 8388608000 bytes, 16384000 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 /dev/mapper/fedora-home: 418.4 GiB, 449230929920 bytes, 877404160 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

I tried adding this entry to /etc/grub.d/40_custon:

menuentry 'Microsoft Windows 7' {
set root='hd1,msdos1'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
}

Then, I ran:

grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

When I try to boot into windows, I get this error:

error: invalid sector size [some number]
error: you need to load the kernel first

Can some help me fix the windows boot?

Thanks!

edit retag flag offensive close merge delete