You are not logged in.

#1 2017-09-30 13:00:06

g0r0
Banned
Registered: 2015-10-05
Posts: 34

[SOLVED] Unable to boot from rEFInd

Hello guys i installed new arch system as the main os. Now when i try to boot with refind
I drop into the efi shell.
So i guess i needed to tell refind to load the microcode first in options tough i dont really know how to do it.
Thanks for any help.

Last edited by g0r0 (2017-09-30 23:49:16)

Offline

#2 2017-09-30 13:49:16

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Unable to boot from rEFInd

Sounds more like you never added an actual entry for arch to the refind config.
https://wiki.archlinux.org/index.php/RE … figuration.

But do post the efibootmgr -v output and so on.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2017-09-30 14:23:31

g0r0
Banned
Registered: 2015-10-05
Posts: 34

Re: [SOLVED] Unable to boot from rEFInd

Mr.Elendig wrote:

Sounds more like you never added an actual entry for arch to the refind config.
https://wiki.archlinux.org/index.php/RE … figuration.

But do post the efibootmgr -v output and so on.

Ok i edited in /boot/efi/EFI/refind/refind.conf
The options under arch linux entry :
Options  "rw root=/boot initrd=/intel-ucode.img"
yet still i see this error :

Starting vmlinuz-linux
Using load options 'rw root=/boot initrd=/intel-ucode.img initrd=\boot\initramfs-linux.img'
Invalid loader file!
Error: not found while loading vmlinuz-linux

* hit any key to continue *

Offline

#4 2017-09-30 14:26:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Unable to boot from rEFInd

So it's saying invalid loader file, but you aren't giving us the loader entry. Think this through.

Offline

#5 2017-09-30 17:08:58

g0r0
Banned
Registered: 2015-10-05
Posts: 34

Re: [SOLVED] Unable to boot from rEFInd

Scimmia wrote:

So it's saying invalid loader file, but you aren't giving us the loader entry. Think this through.

Thank you for the help so far
This is my layout :
Icon   /EFI/refind/icons/os_arch.png
Volume   "fs_boot" #this is /boot
Loader    /boot/vmlinuz-linux
Initrd     /boot/initramfs-linux.img
Options    "root=PARTUUID=... rw
add_efi_memmap initrd=/intel-ucode.img"

The same error as before.
This is my first expirience in UEFI any guidance will be much appreciated

Offline

#6 2017-09-30 17:29:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Unable to boot from rEFInd

So your issue is related to the warnings on the wiki page Mr.Elendig linked to.

Offline

#7 2017-09-30 17:41:37

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] Unable to boot from rEFInd

g0r0 wrote:

Using load options 'rw root=/boot initrd=/intel-ucode.img initrd=\boot\initramfs-linux.img'

You have some backwards slashes in the second initrd=.... I think.


Matt

"It is very difficult to educate the educated."

Offline

#8 2017-09-30 17:59:52

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Unable to boot from rEFInd

If /boot is the ESP why are you using

Volume   "fs_boot" #this is /boot
Loader    /boot/vmlinuz-linux

meaning the full path refind will look for would be /boot/boot/vmlinuz-linux

Offline

#9 2017-09-30 18:40:50

g0r0
Banned
Registered: 2015-10-05
Posts: 34

Re: [SOLVED] Unable to boot from rEFInd

loqs wrote:

If /boot is the ESP why are you using

Volume   "fs_boot" #this is /boot
Loader    /boot/vmlinuz-linux

meaning the full path refind will look for would be /boot/boot/vmlinuz-linux

/boot is not ESP my ESP is /boot/efi.
Nevertheless i able to locate the loader by removing the /boot/ prefix from initrd and loader now new error occured :

: : running early hook [udev]
Starting version 234
: : running hook [udev]
: : Triggering uevents . . .
: : performing fsck on ' /dev/sda2'
: : fs_boot : clean, 18/128016 files, 63857/512000 blocks
: : mounting ' /dev/sda2' on real root
: : running cleanup hook [udev]
ERROR: root device mounted succesfully, but /sbin/init does not exist.
Bailing out, you are on your own. Good luck.
Sh: cant access tty; job control turned off
[rootfs ]#

Offline

#10 2017-09-30 18:50:05

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Unable to boot from rEFInd

Options    "root=PARTUUID=... rw 
mounting ' /dev/sda2' on real root 

Why would a root referenced by PARTUUID mount as /dev/sda2?  Did you change the root option in refind.conf or edit the systems output replacing the PARTUUID with /dev/sda2?
What is the options line from the relevant refind.conf stanza and the output of

# blkid

Offline

#11 2017-09-30 19:00:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Unable to boot from rEFInd

Please edit your first post and choose a title that describes your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2017-09-30 19:07:02

g0r0
Banned
Registered: 2015-10-05
Posts: 34

Re: [SOLVED] Unable to boot from rEFInd

This is blkid.. and yes i might have change the root directory in refind.conf to the PARTUUID of the boot partition ( fs_boot )
https://imgur.com/a/hQxbL

Last edited by g0r0 (2017-09-30 19:11:45)

Offline

#13 2017-09-30 19:40:29

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Unable to boot from rEFInd

g0r0 wrote:

This is blkid.. and yes i might have change the root directory in refind.conf to the PARTUUID of the boot partition ( fs_boot )

Please do not post pictures of text.  You also did not include the refind.conf stanza requested.  The root option needs to specify the root filesystem not the boot filesystem.

Offline

#14 2017-09-30 19:52:28

g0r0
Banned
Registered: 2015-10-05
Posts: 34

Re: [SOLVED] Unable to boot from rEFInd

loqs wrote:
g0r0 wrote:

This is blkid.. and yes i might have change the root directory in refind.conf to the PARTUUID of the boot partition ( fs_boot )

Please do not post pictures of text.  You also did not include the refind.conf stanza requested.  The root option needs to specify the root filesystem not the boot filesystem.

Thank you for your help so far heres
My entry :

Icon   /EFI/refind/icons/os_arch.png
volume   "fs_boot"
loader   vmlinuz-linux
Initrd   initramfs-linux.img
options   "root=PARTUUID=#root_fs# rw add_efi_memmap initrd=/intel-ucode.img"

EDIT : now i was successfully booted to my system Thank you very much all of you and special thanks to loqs.

Last edited by g0r0 (2017-09-30 19:56:03)

Offline

#15 2017-09-30 23:24:29

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Unable to boot from rEFInd

Please make sure you remember to mark your thread as solved by editing the first post and prepending [SOLVED] to it.

Offline

Board footer

Powered by FluxBB