You are not logged in.

#1 2014-05-23 18:10:02

Kopkins
Member
Registered: 2012-07-01
Posts: 189

[SOLVED]rEFInd only detects arch sometimes

So I recently got a new computer (Lenovo E545) and installed arch on it. Everything is working fine except rEFInd isn't working as expected. It boots and detects the Windows loader and the Recovery loader in the menu, but doesn't detect arch. Sometimes, arch will be detected by rEFInd, but only after having rebooted, never from a normal poweron. I'm not sure what's going on or why this is happening. I'm still working on trying a few things that might help. Is there anything that you think would fix this.

My initramfs-linux.img and vmlinuz-linux are at /boot

rEFInd is installed at /boot/efi/EFI

#blkid

/dev/sda1: LABEL="WINRE_DRV" UUID="805E27265E271486" TYPE="ntfs" PARTUUID="8d13a9ec-6674-463f-bd59-ac6869cb3471" 
/dev/sda2: LABEL="SYSTEM_DRV" UUID="5628-C69C" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="37316e7d-869d-4cad-b5da-f9d14aec5646" 
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="ac00601f-e327-48a8-9f26-a08d9e7456e1" 
/dev/sda4: LABEL="Windows8_OS" UUID="74282C02282BC1CA" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="1ee417ab-5bd2-4095-936a-3192022dc289" 
/dev/sda5: LABEL="Lenovo_Recovery" UUID="70F4247BF4244626" TYPE="ntfs" PARTUUID="bf2419f4-bbd0-4d9b-a413-08cd3e19e4a7" 
/dev/sda6: LABEL="Arch Boot" UUID="47404b73-6c16-4287-a13e-48d949fbb586" TYPE="ext4" PARTLABEL="Arch Boot" PARTUUID="0ffd40e9-be7e-4816-8eaf-7ce1b3fb4cdc" 
/dev/sda7: LABEL="Arch Root" UUID="44820448-507d-4860-8b70-116c4759ce97" TYPE="ext4" PARTLABEL="Arch Root" PARTUUID="d8d34534-0317-429f-8577-145140db6899" 
/dev/sda8: LABEL="Arch Var" UUID="cd125ddb-a354-4382-97a6-6721d365d328" TYPE="ext4" PARTLABEL="Arch Var" PARTUUID="cba0d65c-f285-4aee-9266-ff5643a29b89" 
/dev/sda9: LABEL="Arch Home" UUID="90f39622-fafb-48f5-9fd8-d8a0fa16c895" TYPE="ext4" PARTLABEL="Arch Home" PARTUUID="78b2d6a7-6dda-4436-8c8c-9d0cb25e5d77" 

refind.conf

http://bpaste.net/show/293799/


#fstab

# /dev/sda7 LABEL=Arch\134x20Root
UUID=44820448-507d-4860-8b70-116c4759ce97	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/sda6 LABEL=Arch\134x20Boot
UUID=47404b73-6c16-4287-a13e-48d949fbb586	/boot     	ext4      	rw,relatime,stripe=4,data=ordered	0 2

# /dev/sda2 LABEL=SYSTEM_DRV
UUID=5628-C69C      	/boot/efi 	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro	0 2

# /dev/sda8 LABEL=Arch\134x20Var
UUID=cd125ddb-a354-4382-97a6-6721d365d328	/var      	ext4      	rw,relatime,data=ordered	0 2

# /dev/sda9 LABEL=Arch\134x20Home
UUID=90f39622-fafb-48f5-9fd8-d8a0fa16c895	/home     	ext4      	rw,relatime,data=ordered	0 2

Last edited by Kopkins (2014-05-26 02:08:21)

Offline

#2 2014-05-24 22:20:11

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [SOLVED]rEFInd only detects arch sometimes

When you cold boot, and only windows appears in the refind menu, if you prss esc, refind will rescan and should find arch. If this is the case, then you need to set a scan delay in your refind.conf so all partitions can be properly discovered by efi before refind scans for boot loaders.

In refind.conf you will find a commented out line for scan delay.

Uncomment that line and modify the delay until refind is able to display arch every time.

Last edited by Padfoot (2014-05-24 22:20:37)

Offline

#3 2014-05-26 02:08:01

Kopkins
Member
Registered: 2012-07-01
Posts: 189

Re: [SOLVED]rEFInd only detects arch sometimes

Padfoot wrote:

When you cold boot, and only windows appears in the refind menu, if you prss esc, refind will rescan and should find arch. If this is the case, then you need to set a scan delay in your refind.conf so all partitions can be properly discovered by efi before refind scans for boot loaders.

In refind.conf you will find a commented out line for scan delay.

Uncomment that line and modify the delay until refind is able to display arch every time.

It doesn't find it for minutes sometimes. Sometimes I haven't even waited long enough. I copied all the boot files to the ESP so it can find them immediately.

Offline

#4 2014-05-26 21:27:15

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,246

Re: [SOLVED]rEFInd only detects arch sometimes

Where you say that "rEFInd is installed at /boot/efi/EFI" could you confirm that you have your refind.conf within the directory /boot/efi/EFI/refind/ as well as a directory /boot/efi/EFI/refind/drivers_x64/ which contains the ext4_x64.efi driver file for ext4 ?

Also I notice that in your manual rEFInd stanza you have a disabled entry:

menuentry Linux {
	icon EFI/refind/icons/os_arch.icns
	volume 1:
	loader /vmlinux-linux
	initrd /initramfs-linux.img
	options "ro root=UUID=44820448-507d-4860-8b70-116c4759ce97"
	disabled
}

Usually the kernel is vmlinuz-linux and not vmlinux-linux - if so then that typo should be fixed.

I would imagine that your kernel and initrd are at /boot/vmlinuz-linux and /boot/initramfs-linux.img ? If so then these should be written for the loader and initrd lines in that stanza.  Also you could try to change volume 1: to volume "Arch Boot". and see if that works.  Which version of rEFInd are you using?  Is it the stock arch package version 0.7.9?

So if you changed your manual stanza to

menuentry Linux {
	icon EFI/refind/icons/os_arch.icns
	volume "Arch Boot"
	loader /boot/vmlinuz-linux
	initrd /boot/initramfs-linux.img
	options "ro root=UUID=44820448-507d-4860-8b70-116c4759ce97"
}

Does this effect a boot without any delay?

Also it should be possible to auto-detect your kernel, and specify it as a default by including a line in your refind.conf

default_selection vmlinuz

Also can you confirm that you have a file /boot/refind_linux.conf and send its contents?

Perhaps these hints may help?

Last edited by mcloaked (2014-05-26 21:51:05)


Mike C

Offline

Board footer

Powered by FluxBB