You are not logged in.

#1 2014-11-03 01:02:41

Kocha
Member
Registered: 2014-11-03
Posts: 15
Website

[Solved] Grub2, can't seem to get this Windows 8.1 entry running (EFI)

Hello everyone,

I've recently installed Arch. It runs properly. I also have another Linux distro installed and this one runs great, too. Grub2 automatically detects both of them, when I use grub-mkconfig. I have os-prober installed. Unfortunately no luck with Win 8.1 thusfar. No automatic detection and I tried for hours to get it to run manually. I've found this great tutorial here: http://unix.stackexchange.com/questions … gpt-system And I did everything as mentioned. I also tried other solutions that where alot smaller. In the end, the Windows entry always results in "Press any key to reboot."

My 40_custom entry looks like this:

menuentry "Windows 8.1" {
        insmod part_gpt
        insmod search_fs_uuid
        insmod ntfs
        insmod chain
        search --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 C648CD4D48CD3CC5
        chainload (hd0,gpt5)/Windows/Boot/EFI/bootmgfw.efi
}

The paths should all be correct. But I'm completely new to Grub, so I basically have no idea of what I'm doing here.

Does anybody know, what I'm doing wrong?

Last edited by Kocha (2014-11-04 01:03:39)

Offline

#2 2014-11-03 01:13:29

Kocha
Member
Registered: 2014-11-03
Posts: 15
Website

Re: [Solved] Grub2, can't seem to get this Windows 8.1 entry running (EFI)

Ok, I found the first error by myself. It's "chainloader" not "chainload." How could I miss something this obvious?

Unfortunately, this results in a horrible crash. "Windows could not be loaded. Press ESC to enter UEFI Settings." But nothing happens with ESC.

If I go to the BIOS and set up the Grub from the other Linux install or just the Windows Bootloader, they both boot Windows correctly, though.

Offline

#3 2014-11-03 17:33:17

nskool
Member
Registered: 2014-10-09
Posts: 23

Re: [Solved] Grub2, can't seem to get this Windows 8.1 entry running (EFI)

Have you installed grub correctly in efi mode? And are you sure your linux partition is booting from efi?

I don't know much about this but umm...have you been able to mount ntfs partitions in arch? I once had this problem and installing ntfs-3g and ntfsprogs seemed to fix it.

I'm not sure if installing these packages are necessary...or even relevant as far as detecting Windows is concerned, but I'm a kinda newbie wink

Don't forget to run grub-mkconfig after installing these packages.

However, looks like in your case, you were able to get Windows to boot. But it crashed probably because of boot mode issue-UEFI/Legacy. So, what's the current status? Did you fix it somehow?

Last edited by nskool (2014-11-03 17:35:14)


I'm ready to learn anything good that you're ready to teach me:)

Offline

#4 2014-11-04 01:03:19

Kocha
Member
Registered: 2014-11-03
Posts: 15
Website

Re: [Solved] Grub2, can't seem to get this Windows 8.1 entry running (EFI)

Yes, Grub is correctly installed. I also have the packages installed, that you mentioned.

I've got it to work now. The problem is, the "real" Windows bootmgfw.efi was on sda2, that's a 100mb partition which won't mount in Arch. Can't open it up here. Funny enough, the EFI partition is sda4. I have a recovery partition on sda6 and Windows on sda5, sda7 is swap, sda8 another Linux distro and sda9 is Arch. The rest, I have no idea, what's on those partition. They're just somehow there.

Oh well, this is a laptop with all types of OEM stuff installed.

I just took a look at the grub.cfg from the other Linux distro. Copied everything from there. Now, it's running.

I hope, one day I'll understand Grub2 and EFI.

Thanks for your time!

Offline

#5 2014-11-04 04:16:52

nskool
Member
Registered: 2014-10-09
Posts: 23

Re: [Solved] Grub2, can't seem to get this Windows 8.1 entry running (EFI)

Glad you got it to work. And i too want to know more about efi/grub2/gpt...
Could you pls post the output of blkid(run as root) or lsblk? Thanks

I would like to know if there are two efi partitions or something like that...cuz it's not recommended...or I dunno...i would just like to know what your disk is like. Seems interesting. Thanks smile


I'm ready to learn anything good that you're ready to teach me:)

Offline

#6 2014-11-05 02:26:50

Kocha
Member
Registered: 2014-11-03
Posts: 15
Website

Re: [Solved] Grub2, can't seem to get this Windows 8.1 entry running (EFI)

Just now, an update to os-prober came out and that fixes the initial problem I had. Now it finds Win 8.1, even when I delete everything I've added to 40_custom. Awesome big_smile

Blkid puts out this:

/dev/sda1: UUID="1090CE4790CE32D0" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="bb1a26a9-a4cf-40b1-a58e-db245dc7aa86"
/dev/sda2: UUID="24CE-A719" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="78600a6b-12cd-4b61-9d25-78fbf1fe7266"
/dev/sda5: LABEL="Boot" UUID="C648CD4D48CD3CC5" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="7a6d0a75-4c08-4710-bc06-ab7b5ab9723c"
/dev/sda6: LABEL="Recover" UUID="5AD6A105D6A0E30D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="73849121-e529-4997-8d47-6fef32f9fb41"
/dev/sda8: UUID="daa62cbf-901b-4e8b-aa06-04bb1b4ee33d" TYPE="ext4" PARTUUID="5319747b-54ed-41f4-b101-715ce2774c40"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="72a77878-2210-480d-bdaf-1d4efdf5ca60"
/dev/sda4: LABEL="PRC_RP" UUID="9082-7010" TYPE="vfat" PARTLABEL="Basic data partition" PARTUUID="2e769725-a973-4bcd-a976-322f6f636394"
/dev/sda7: UUID="9852c051-b059-4f0c-8c4e-6a249fc982ef" TYPE="swap" PARTUUID="1a613082-5eda-4cfe-ac04-85f80d4c9280"
/dev/sda9: LABEL="arch" UUID="ebad8e62-1c3b-458b-995f-10aed3b3b0f0" TYPE="ext4" PARTUUID="2a8bb4ec-5992-4819-851f-eb8e9159cc43"
/dev/sdb1: LABEL="Verbatim" UUID="7812826F12823264" TYPE="ntfs" PARTUUID="ccae6dc1-01"

Looks like, I should have used sda2 as the EFI partition in the first place. The other Linux distro automatically used sda4 as the EFI partition and I thought, that one did it right. Looks like, this isn't the case. But it's running, so I shouldn't be thinking too hard about it, right?

That's the lsblk output:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   499M  0 part 
├─sda2   8:2    0   100M  0 part 
├─sda3   8:3    0   128M  0 part 
├─sda4   8:4    0     1G  0 part /boot
├─sda5   8:5    0 635.4G  0 part 
├─sda6   8:6    0    60G  0 part 
├─sda7   8:7    0  31.3G  0 part [SWAP]
├─sda8   8:8    0 115.2G  0 part 
└─sda9   8:9    0  87.9G  0 part /
sdb      8:16   0 931.5G  0 disk 
└─sdb1   8:17   0 931.5G  0 part /run/media/kocha/Verbatim
sr0     11:0    1  1024M  0 rom  

Offline

#7 2014-11-05 18:13:53

nskool
Member
Registered: 2014-10-09
Posts: 23

Re: [Solved] Grub2, can't seem to get this Windows 8.1 entry running (EFI)

Thanks for the outputs... Indeed sda2 is your efi partition...Although your sda4 is a vfat partition mounted as /boot... Did you format it as vfat?which is this other Linux distro? Anyways.. Thanks..lots to learn about efi;)


I'm ready to learn anything good that you're ready to teach me:)

Offline

#8 2014-11-06 00:19:19

Kocha
Member
Registered: 2014-11-03
Posts: 15
Website

Re: [Solved] Grub2, can't seem to get this Windows 8.1 entry running (EFI)

The other one is Manjaro, it comes with a small, neat XFCE desktop. I only formatted sda7, sda8 and sda9, everything else was already on the computer. I had no idea, what is what, though. I basically still don't have.

Offline

Board footer

Powered by FluxBB