You are not logged in.

#1 2017-05-30 17:20:47

zvj14327
Banned

Booting from efi with EFISTUB doesn't work

Hello guys,

I'm very new to Arch and wanted to install the system on my laptop (it supports uefi, i checked this). I followed the german installation guide until bootloader and read that you can load the kernel without a bootloader right in the system with the help of EFISTUB. Mounted /dev/sda1 (EFI Partition) on /boot and typed in this command: efibootmgr -c -d /dev/sda -p 1 -l \vmlinuz-linux -L "Arch Linux" -u "initrd=/initramfs-linux.img root=/dev/sda1 rm". It doesn't work. I tried this 3 times but there's always nothing. Am I doing something false, or I didn't understand something?

Thank you for your help!

#2 2017-05-30 17:50:51

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Booting from efi with EFISTUB doesn't work

You should check if your modification/entry is still there after a reboot. Some firmwares do not do as told and either erase or modify custom entries (some firmwares live in a MS only world).

That said you probably want root=/dev/sda2 or something like that. What's that rm at the end?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2017-05-30 18:19:44

alexanders916
Member
Registered: 2017-05-30
Posts: 42

Re: Booting from efi with EFISTUB doesn't work

@R00KIE, First I want to apologize that I used a disposable email to register here, (not this account, but zvj14327). That wasn't right.
Then to my question: Yes i made a typo -> I mean root=/dev/sda2
And I don't really know what the rw means (yes, another typo), I got this information from the archlinux wiki:
# efibootmgr -d /dev/sdX -p Y -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/sdBZ rw initrd=/initramfs-linux.img"

Edit: rw means read-write (default is ro = read only)

Last edited by alexanders916 (2017-05-30 22:52:34)

Offline

#4 2017-05-30 20:15:31

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

Re: Booting from efi with EFISTUB doesn't work

zvj14327 wrote:

Mounted /dev/sda1 (EFI Partition) on /boot

Was the EFI system partition mounted to /boot during the installation of the system?

The kernel image & initramfs need to be on the ESP for EFI_STUB booting to work.

Offline

#5 2017-05-30 20:19:47

alexanders916
Member
Registered: 2017-05-30
Posts: 42

Re: Booting from efi with EFISTUB doesn't work

Head_on_a_Stick wrote:
zvj14327 wrote:

Mounted /dev/sda1 (EFI Partition) on /boot

Was the EFI system partition mounted to /boot during the installation of the system?

Yes and and also when I added the efi log

Offline

#6 2017-05-30 20:25:11

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

Re: Booting from efi with EFISTUB doesn't work

Please post the full output of:

efibootmgr -v

https://wiki.archlinux.org/index.php/Li … in_clients

Have you checked the ESP to see if the kernel image & initramfs are present?

Offline

#7 2017-05-30 20:34:26

alexanders916
Member
Registered: 2017-05-30
Posts: 42

Re: Booting from efi with EFISTUB doesn't work

Head_on_a_Stick wrote:

Please post the full output of:

efibootmgr -v

https://wiki.archlinux.org/index.php/Li … in_clients

Have you checked the ESP to see if the kernel image & initramfs are present?

https://ptpb.pw/k3tt

Offline

#8 2017-05-30 20:44:21

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

Re: Booting from efi with EFISTUB doesn't work

Head_on_a_Stick wrote:

Have you checked the ESP to see if the kernel image & initramfs are present?

If the kernel is definitely there then your firmware ("BIOS") may be faulty and you may have to try a different booting method.

See http://www.rodsbooks.com/efi-bootloader … ive-naming for a possible solution.

Offline

#9 2017-05-30 20:46:19

alexanders916
Member
Registered: 2017-05-30
Posts: 42

Re: Booting from efi with EFISTUB doesn't work

I checked the /mnt/boot again... there's nothing. So I guess i have to copy the kernel? I mounted the partition when I installed arch with pacstrap /mnt.. hmm

Last edited by alexanders916 (2017-05-30 20:47:18)

Offline

#10 2017-05-30 20:51:33

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

Re: Booting from efi with EFISTUB doesn't work

alexanders916 wrote:

So I guess i have to copy the kernel?

It's probably best to (arch-)chroot into your system from the live environment with all of the partitions correctly mounted and then re-install the linux package.

Be sure to check your fstab as well — systemd will automount the ESP to /boot anyway if you have a GPT disk so it may be simplest to remove any references to it from that file.

Offline

#11 2017-05-30 22:37:46

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Booting from efi with EFISTUB doesn't work

alexanders916 wrote:

@R00KIE, First I want to apologize that I used a disposable email to register here, (not this account, but zvj14327). That wasn't right.

No that wasn't right; our Code of Conduct does not allow duplicate accounts. I have banned zvj14327; please familiarise yourself with our Code of Conduct: https://wiki.archlinux.org/index.php/Code_of_conduct

Offline

#12 2017-05-30 22:55:21

alexanders916
Member
Registered: 2017-05-30
Posts: 42

Re: Booting from efi with EFISTUB doesn't work

fukawi2 wrote:
alexanders916 wrote:

@R00KIE, First I want to apologize that I used a disposable email to register here, (not this account, but zvj14327). That wasn't right.

No that wasn't right; our Code of Conduct does not allow duplicate accounts. I have banned zvj14327; please familiarise yourself with our Code of Conduct: https://wiki.archlinux.org/index.php/Code_of_conduct

Alright, I'm not going to do it again

Offline

#13 2017-05-30 23:04:36

alexanders916
Member
Registered: 2017-05-30
Posts: 42

Re: Booting from efi with EFISTUB doesn't work

Head_on_a_Stick wrote:

It's probably best to (arch-)chroot into your system from the live environment with all of the partitions correctly mounted and then re-install the linux package.

First I mounted root in /mnt, second ESP in /mnt/boot and then pacstrap linux -> it worked! Thank you

P.S.: I tried it with # arch-chroot /mnt but it didn't allow me to use pacstrap there.

Last edited by alexanders916 (2017-05-30 23:06:09)

Offline

#14 2017-05-31 07:49:46

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

Re: Booting from efi with EFISTUB doesn't work

alexanders916 wrote:

I tried it with # arch-chroot /mnt but it didn't allow me to use pacstrap there.

I was expecting you to use this command from the chroot:

# pacman -Syu linux

But I suppose your method does the job as well.

Please mark the thread [SOLVED] if you consider it so.

Offline

Board footer

Powered by FluxBB