You are not logged in.

#1 2012-10-20 20:04:05

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

[SOLVED]rEFInd booting hangs

Hi all.

I have installed Arch, but when i boot, rEFInd hangs. I get to menu and select the right Arch menu point, but then it gets the screen where it hangs.
It says:

rEFInd - Booting OS

Starting vmlinuz-arch.efi
Using load options 'vmlinuz-arch.efi initrd=EFI\arch\initramfs-arch-fallback.img

Maybe it is getting the wrong initrd?

I'm running on UEFI on a Lenovo L430

Thanks
\\Batnas

Last edited by batnas (2012-10-21 10:52:30)

Offline

#2 2012-10-20 20:26:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

I surely hope that it is freezing before it prints the rest of your kernel command line, for what is printed there is not enough.  This issue cannot be addressed without a bit more information.

Offline

#3 2012-10-20 20:35:57

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [SOLVED]rEFInd booting hangs

@batnas: What are the contents of your refind_linux.conf file and where is it located in UEFISYS partition? Seems like you have not created one. See https://wiki.archlinux.org/index.php/UE … ing_rEFInd for more info.

Offline

#4 2012-10-20 21:14:46

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

Sorry about the missing info, I'll try again.

I installed Arch following the Beginners Guide step by step.
Pretty much the only thing I've changed is the partitioning; it is done as following:
/dev/sda1 - 512MB - FAT32 - This is my UEFISYS partition
sda2 - 128MB - Ext4 - Boot
sda3 - 32GB - Btrfs - / (root)
sda4 - 16GB - Btrfs - /var
sda5 - ~70GB - Btrfs - /home
I do not have a swap partition, but I can't imagine how that could affect the boot-process.

All this is on a 128GB SSD

When I boot, I get a menu similar to this, but with only an Arch-entry:refind.png
When I select the Arch-entry, I get to the screen described above. I can post an image with the screen, but It has no more information than what I've written before.


The refind_linux.conf:

"Boot to defaults"    "root=/dev/sda3 rootfstype=btrfs ro systemd.unit=graphical.target"
"Boot to terminal"    "root=/dev/sda3 rootfstype=btrfs ro systemd.unit=multi-user.target"

If there is anything else you need to know, please ask.

Thanks
\\Batnas

Last edited by batnas (2012-10-20 21:31:58)

Offline

#5 2012-10-20 21:15:46

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

You definitely need to close those parenthesis...

Offline

#6 2012-10-20 21:33:03

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

You mean the double-quotes??
That was a typo from my side, they are correct in refind_linux.conf. (And I have corrected my post)

Any other suggestions?

Last edited by batnas (2012-10-20 21:33:35)

Offline

#7 2012-10-20 21:44:25

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

You have to specify the location of your initramfs (referred to as initrd for the kernel command line).  When using UEFI, make sure you use backslashes also, as that is what the UEFI standard specifies.  So something like initrd=\EFI\arch\initramfs-linux.img would probably be necessary.

Offline

#8 2012-10-20 22:08:40

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

Where exactly do you say i should put initrd??
I tried putting it in refind_linux.conf, but it still hangs...

I have a file called /boot/efi/EFI/arch/refind/refind.conf. It only specifies a timeout of 20 seconds.
I have a file called /boot/efi/EFI/arch/refind/refind_linux.conf, It has the contents as in my previous post.
Then I also have /boot/efi/EFI/arch/linux.conf, it contains:

root=/dev/sda3 ro rootfstype=btrfs add_efi_memmap initrd=\EFI\arch\initramfs-arch.img

All 3 files contains exactly as suggested in the Beginners Guide...

Offline

#9 2012-10-20 22:35:24

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

Just to make sure, your root partition is on sda3, right?  Also, you you have more than one hard drive?

Offline

#10 2012-10-20 22:38:56

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

Yes my root partition is on /dev/sda3
And No, I only have the 128GB SSD mentioned before

Offline

#11 2012-10-20 22:44:17

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

can you boot from the uefi shell?

Offline

#12 2012-10-20 22:46:55

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

Not from a shell installed on the SSD.
I have a USB-pen, on which I copied the contents of the arch iso. It boots an UEFI shell.

Offline

#13 2012-10-20 23:37:33

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

Does your installation boot from a uefi shell though.

Offline

#14 2012-10-20 23:39:40

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

Yes. I installed from the USB-pen, bottet through UEFI.
When I installed I did "modprobe efivars" and correctly recieved the efi environment-variables

Offline

#15 2012-10-20 23:44:00

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

I know the live usb boots from the uefi shell, as you would not be at this point without it.  But does your installation... the one you are trying to boot from refind... boot from the uefi shell?

Offline

#16 2012-10-20 23:57:34

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

Do you mean if I can start the UEFI shell, and from it boot Arch?
Actually, yes I can. I tried it before, but could'nt do it, but I got it working now.
I followed the instructions here and did:

> fs1:
> cd \EFI\arch
> vmlinuz-arch.efi root=/dev/sda3 ro rootfstype=btrfs add_efi_memmap initrd=\EFI\arch\initramfs-arch.img

and it booted!

We can tell that something is wrong with the rEFInd menu-entry, I'm just not sure what though, as I've followed the Beginners Guide step by step.

Last edited by batnas (2012-10-20 23:57:56)

Offline

#17 2012-10-21 00:02:47

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

I hope you are using initramfs-linux.img not arch. 

Edit: Double check your linux_refind.conf

Last edited by WonderWoofy (2012-10-21 00:03:25)

Offline

#18 2012-10-21 00:11:57

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

Nope, I'm using initramfs-arch.img not initramfs-linux.img
But my file are actually called /efi/EFI/arch/initramfs-arch.img, so it should be good, right?

Last edited by batnas (2012-10-21 00:14:10)

Offline

#19 2012-10-21 00:37:26

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]rEFInd booting hangs

Well, it is relative to the root of your EFI System partition.  So if your mountpoint is /boot/efi, then it is /EFI/arch/initramfs-arch.img.  You know, when I was trying to get my sh*t working, efibootmgr didn't like me passing the initrd= parameter with anything that was not in the root of the ESP.  So I moved everything to the root.  I have my ESP mounted at /boot (much simpler this way), so it ended up being initrd=\initramfs-linux.img in my case.  But not sure if this will have an effect on your system.  UEFI is so new that there are still many bugs to be ironed out.


Edit: BTW, having bios booting as a backup has no effect on your UEFI booting, since UEFI does not use the first 440bytes of the disk.  I have syslinux set up just in case I run into something like you are experiencing now.  Just something you might want to think about.  Also, is there a reason why you are set on using UEFI instead of the old legacy bios?  Just curious.

Last edited by WonderWoofy (2012-10-21 00:39:13)

Offline

#20 2012-10-21 07:55:31

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [SOLVED]rEFInd booting hangs

Copy refind_linux.conf to /boot/efi/EFI/arch/ . It should be in the same dir as the kernel, not the dir where refindx64.efi is present. Apart from that I don't see anything wrong with your refind_linux.conf .

Offline

#21 2012-10-21 10:52:06

batnas
Member
From: Aalborg, Denmark
Registered: 2012-10-16
Posts: 16

Re: [SOLVED]rEFInd booting hangs

the.ridikulus.rat wrote:

Copy refind_linux.conf to /boot/efi/EFI/arch/ . It should be in the same dir as the kernel, not the dir where refindx64.efi is present. Apart from that I don't see anything wrong with your refind_linux.conf .

...And it worked! Thank you very much.
Looking through the Beginners Guide, it also says /efi/EFI/arch/refind_linux.conf, completely missed that tongue

@WonderWoofy
There is no reason in particular, other that I wanted to try it on a new computer. I had no idea that I would have so many problems though..

Offline

Board footer

Powered by FluxBB