You are not logged in.

#1 2013-08-13 11:07:20

Peikko
Member
Registered: 2011-11-18
Posts: 29

GRUB won't start after installation. Boots direktly to Windows 7

Hello,

I am having a hard time installing Arch next to Windows 7 on an UEFI Notebook.
The partitions of the HDD (GPT) looks like this:
sda1 Boot partition, fat32, 400 MiB. Mounted as GRUB Wiki says at /boot/efi
sda2 swap
sda3 Arch
sda4 Windows 7

First I install Windows 7 which workes without problems.
After that is done I start installing Arch. All goes well without any errors till the end.
For installing GRUB I use

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck

and

grub-mkconfig -o /boot/grub/grub.cfg

Both finish without errors.

First problem is os-prober never mangaged to find Windows 7 by itself. Not once in 6 installation retries.

Second problem. After I finished installtation and rebooting, GRUB doesn't show. It direktly starts to boot Windows.

I'm following the Beginners Installation Guide step by step (except the GRUB part). What am I doing wrong?

Are the Mountpoints wrong?

I don't know which config files you need to help.

Last edited by Peikko (2013-08-13 11:08:55)

Offline

#2 2013-08-13 11:25:25

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: GRUB won't start after installation. Boots direktly to Windows 7

Might be that your GRUB efi executable is not set to be the one booted.
See if you can enter an UEFI shell and launch GRUB from there.
Also post output of

efibootmgr

Offline

#3 2013-08-13 11:35:40

Peikko
Member
Registered: 2011-11-18
Posts: 29

Re: GRUB won't start after installation. Boots direktly to Windows 7

This is the Output: http://bpaste.net/show/122531/
I booted with the arch live cd and mounted the partitions again. The first time efibootmgr gave me an error and I had

modprobe efivars

.

Offline

#4 2013-08-13 11:39:19

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: GRUB won't start after installation. Boots direktly to Windows 7

Looking at that output: ATA HDD0 is set to be booted first, you might want to set the default boot to 001A, which is your arch_grub

Offline

#5 2013-08-13 11:46:05

Peikko
Member
Registered: 2011-11-18
Posts: 29

Re: GRUB won't start after installation. Boots direktly to Windows 7

I changed it with

efibootmgr -o 1A

and checked it again but it still boots right into Windows.

Offline

#6 2013-08-13 13:51:18

Peikko
Member
Registered: 2011-11-18
Posts: 29

Re: GRUB won't start after installation. Boots direktly to Windows 7

I have found this and made what is said there. GRUB bootet after that.
http://www.jsravn.com/2013/06/26/thinkp … -arch.html

Not the only problem is, that os-prober still dosn't find the Windows 7 partition.

Help please.

Offline

#7 2013-08-14 23:28:26

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: GRUB won't start after installation. Boots direktly to Windows 7

Did the efibootmgr command actually change your boot order successfully?

What is the output of efibootmgr -v?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2013-08-15 14:26:54

Peikko
Member
Registered: 2011-11-18
Posts: 29

Re: GRUB won't start after installation. Boots direktly to Windows 7

It did change but only for this session. After a reboot, the order was reset again.
But this is not the problem anymore.
I have found the solution for this problem here: http://www.jsravn.com/2013/06/26/thinkp … -arch.html
The only problem that still exists is that os-prober is not able to detect the existing Windows 7 partition and add it to the GRUB menu.

Offline

#9 2013-08-15 21:07:11

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: GRUB won't start after installation. Boots direktly to Windows 7

Sometimes os-prober likes things mounted. Have you tried mounting the relevant partitions first?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB