You are not logged in.

#1 2016-12-08 17:56:48

madsravn
Member
Registered: 2013-05-12
Posts: 22

Problem with Dual Boot to Windows 8

I have been having problems getting my Windows 8 to boot for some time now.

I have the following setup:

[root@Adria mads]# fdisk -l
Disk /dev/sdb: 111,8 GiB, 120034123776 bytes, 234441648 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: 321EF96B-BC43-4FE6-A6D2-B35929DC7580

Device         Start       End   Sectors  Size Type
/dev/sdb1         34    262177    262144  128M Microsoft reserved
/dev/sdb2    1081344 190545919 189464576 90,4G Microsoft basic data
/dev/sdb3  190545920 234440703  43894784   21G Linux swap

Partition 1 does not start on physical sector boundary.


Disk /dev/sda: 232,9 GiB, 250059350016 bytes, 488397168 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: gpt
Disk identifier: EFD815CE-A8E1-4F65-8949-6453DAADBD8F

Device       Start       End   Sectors   Size Type
/dev/sda1     2048    616447    614400   300M Windows recovery environment
/dev/sda2   616448    819199    202752    99M EFI System
/dev/sda3   819200   1081343    262144   128M Microsoft reserved
/dev/sda4  1081344 488397134 487315791 232,4G Linux filesystem

/dev/sda4 is my root. /dev/sdb2 is the Windows partition and /boot is on /dev/sda2. It's uefi.

I cannot for the life of me get Windows to boot. bootctl tells me this:

[root@Adria mads]# bootctl
System:
     Firmware: UEFI 2.31 (American Megatrends 4.654)
  Secure Boot: disabled
   Setup Mode: setup

Loader:
      Product: gummiboot 48
    Partition: /dev/disk/by-partuuid/e792a8cc-2185-424a-8d19-05d06f0f03e8
         File: └─/EFI/gummiboot/gummibootx64.efi

Boot Loader Binaries:
          ESP: /dev/disk/by-partuuid/e792a8cc-2185-424a-8d19-05d06f0f03e8
         File: └─/EFI/systemd/systemd-bootx64.efi (systemd-boot 231)
         File: └─/EFI/BOOT/BOOTX64.EFI (systemd-boot 231)

Boot Loader Entries in EFI Variables:
        Title: Linux Boot Manager
           ID: 0x0005
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/e792a8cc-2185-424a-8d19-05d06f0f03e8
         File: └─/EFI/gummiboot/gummibootx64.efi

        Title: rEFInd Boot Manager
           ID: 0x0004
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/e792a8cc-2185-424a-8d19-05d06f0f03e8
         File: └─/EFI/refind/refind_x64.efi

        Title: Windows Boot Manager
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/e792a8cc-2185-424a-8d19-05d06f0f03e8
         File: └─/EFI/Microsoft/Boot/bootmgfw.efi

        Title: Linux Boot Manager
           ID: 0x0006
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/e792a8cc-2185-424a-8d19-05d06f0f03e8
         File: └─/EFI/systemd/systemd-bootx64.efi

Could anyone direct me what to do? I have tried using grub and refind, but nothing is working. It also seems like I cannot boot Windows from my BIOS using the "Windows boot loader". Would that indicate that it is my windows that is something wrong with instead of it being something I can fix from Linux? When I mount /dev/sdb2 it looks decent - like a normal Windows installation.

Do you require additional information to tell me what I am doing wrong or to suggest a fix?

I hope you can help.

Offline

#2 2016-12-08 23:08:50

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Problem with Dual Boot to Windows 8

madsravn wrote:
        Title: Windows Boot Manager
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/e792a8cc-2185-424a-8d19-05d06f0f03e8
         File: └─/EFI/Microsoft/Boot/bootmgfw.efi

The Windows bootloader is present on the ESP, you can use this to generate an NVRAM entry for it:

# efibootmgr -c -d /dev/sda -p 2 -L "Windows" -l /EFI/Microsoft/Boot/bootmgfw.efi

However, I think that perhaps the bootloader is corrupted or damaged, have you tried a Windows recovery disk?

Also, please use code tags rather than quote tags for command output and configuration files.

Offline

Board footer

Powered by FluxBB