You are not logged in.

#1 2017-01-08 23:49:26

keltek
Member
Registered: 2017-01-08
Posts: 53

[SOLVED] rEFInd menu doesn't open

I'm currently trying to dual boot Arch alongside MacOS (Sierra 10.12.2) on my mid 2012 MacBook Pro using rEFInd. It's possible for me to boot into my Mac partition via rEFInd if I don't add a menuentry for arch but when I do the menu doesn't show up. I kept testing and it turns out if I comment out the volume specification in the "Arch Linux" stanza the menu will show and I can boot into my mac but when trying to boot into Arch I get told vmlinuz-linux couldn't be found. I can get the exact output if that would help.

Here is some additional info that you guys might find helpful.

---- lsblk /dev/sda

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda4   8:4    0   100M  0 part /mnt/boot
├─sda2   8:2    0   792G  0 part 
├─sda7   8:7    0 100.5G  0 part 
├─sda5   8:5    0     8G  0 part 
├─sda3   8:3    0 619.9M  0 part 
├─sda1   8:1    0   200M  0 part /mnt/boot/esp
└─sda6   8:6    0    30G  0 part /mnt


---- fdisk -l /dev/sda

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 49238E46-BF13-4B7F-B856-C05DC2DD1A57

Device          Start        End    Sectors   Size Type
/dev/sda1          40     409639     409600   200M EFI System
/dev/sda2      409640 1661290943 1660881304   792G Apple Core storage
/dev/sda3  1661290944 1662560479    1269536 619.9M Apple boot
/dev/sda4  1662822624 1663027423     204800   100M Linux filesystem
/dev/sda5  1663027424 1679804639   16777216     8G Linux swap
/dev/sda6  1679804640 1742719199   62914560    30G Linux filesystem
/dev/sda7  1742719200 1953525134  210805935 100.5G Linux filesystem


---- blkid /dev/sda*

/dev/sda: PTUUID="49238e46-bf13-4b7f-b856-c05dc2dd1a57" PTTYPE="gpt"
/dev/sda1: LABEL="EFI" UUID="67E3-17ED" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="cf3f2e90-ffb6-417f-9883-f8914a347f46"
/dev/sda2: UUID="8467d0d1-4ee5-36ce-b307-9f08b0b83cd7" LABEL="Mac HD" TYPE="hfsplus" PARTUUID="14c6cec3-7aea-4adf-b7c8-5b4a95959784"
/dev/sda3: UUID="cbd3fa9a-253a-3d4c-aa9b-2a02972fdf2c" LABEL="Recovery HD" TYPE="hfsplus" PARTUUID="82c715c5-b958-4fe5-97e4-879e033fc0aa"
/dev/sda4: LABEL="arch_boot" UUID="b8db0cc1-af4d-4f9c-b14b-be7430caa9bb" TYPE="ext4" PARTLABEL="arch_boot" PARTUUID="8df8a638-f47f-4198-8df1-d21716f39a8b"
/dev/sda5: UUID="f2b40bd8-d727-4f07-97a4-75881361ecec" TYPE="swap" PARTLABEL="arch_swap" PARTUUID="883555a4-86c9-4a2f-81c2-77a4dacdab41"
/dev/sda6: LABEL="arch_root" UUID="95af7d9e-1267-4f57-91be-a09dbb44c333" TYPE="ext4" PARTLABEL="arch_root" PARTUUID="262cd9d1-58ce-4afa-81b5-39752032c506"
/dev/sda7: LABEL="arch_home" UUID="cf22b5e2-8838-442f-b690-d7d0b5abc3be" TYPE="ext4" PARTLABEL="arch_home" PARTUUID="0703dbc3-3bd9-4978-b2bd-43e971c50d01"


---- menuentry in /mnt/boot/esp/EFI/refind/refind.conf

menuentry "Arch Linux" {
	icon	/EFI/refind/icons/os_arch.png
#	volume	arch_boot
	loader	/vmlinuz-linux
	initrd	/initramfs-linux.img
	options	"root=PARTUUID=262cd9d1-58ce-81b5-39752032c506 rootfstype=ext4 rw add_efi_memmap"
	ostype 	Linux
	graphics off
}


---- ls -l /mnt/boot/

total 31491
drwxr-xr-x 6 root root      512 Jan  1  1970 esp
-rw-r--r-- 1 root root 21470127 Jan  8 04:36 initramfs-linux-fallback.img
-rw-r--r-- 1 root root  5960647 Jan  8 04:36 initramfs-linux.img
drwx------ 2 root root    12288 Jan  8 04:18 lost+found
-rw-r--r-- 1 root root  4802336 Dec  9 06:25 vmlinuz-linux

Thanks in advance!

Last edited by keltek (2017-01-11 06:31:29)

Offline

#2 2017-01-09 02:48:54

DaVinci42
Member
Registered: 2016-10-31
Posts: 6

Re: [SOLVED] rEFInd menu doesn't open

Same problem happened to me months ago.
The Wired thing was it showed partition like /dev/sdc1 when I booted with USB stick, but after installed, it showed error like /dev/sda1.
So after installed, I checked the partition and corrected the /etc/fstab file. More specifically, I changed all of the labels from /dev/sdc* to /dev/sda*.
It's MBP 2015 Mid, which is also dual boot and works perfectly.

Offline

#3 2017-01-09 04:05:42

keltek
Member
Registered: 2017-01-08
Posts: 53

Re: [SOLVED] rEFInd menu doesn't open

Thanks for the response. I don't think I have that issue. Here's my fstab.

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda6
UUID=95af7d9e-1267-4f57-91be-a09dbb44c333	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/sda7
UUID=cf22b5e2-8838-442f-b690-d7d0b5abc3be	/home     	ext4      	rw,relatime,data=ordered	0 2

# /dev/sda4
UUID=b8db0cc1-af4d-4f9c-b14b-be7430caa9bb	/boot     	ext4      	rw,relatime,stripe=4,data=ordered	0 2

# /dev/sda5
UUID=f2b40bd8-d727-4f07-97a4-75881361ecec	none      	swap      	defaults  	0 0

I'm not even sure where you'd change the sdc to sda since the only place I'm seeing /dev/sda* is in a comment.

Last edited by keltek (2017-01-09 04:06:47)

Offline

#4 2017-01-09 10:31:58

DaVinci42
Member
Registered: 2016-10-31
Posts: 6

Re: [SOLVED] rEFInd menu doesn't open

@keltek
Using UUID instead of label like /dev/sda* is a better way, so I guess nothing wrong with it.
FYI, I'm using systemd-boot as the bootloader, which is also the way ArchWiki recommended.

Offline

#5 2017-01-09 12:29:46

keltek
Member
Registered: 2017-01-08
Posts: 53

Re: [SOLVED] rEFInd menu doesn't open

So I should install and set up systemd-boot for my bootloader? I don't remember ever explicitly setting up a bootloader so maybe that's my problem. Not sure how it fixes the issue of the weird behavior when volume is defined.

Offline

#6 2017-01-10 17:23:43

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] rEFInd menu doesn't open

DaVinci42 wrote:

@keltek
Using UUID instead of label like /dev/sda* is a better way, so I guess nothing wrong with it.
FYI, I'm using systemd-boot as the bootloader, which is also the way ArchWiki recommended.

The wiki doesn't recommend using any specific bootloader.

So I should install and set up systemd-boot for my bootloader? I don't remember ever explicitly setting up a bootloader so maybe that's my problem. Not sure how it fixes the issue of the weird behavior when volume is defined.

Refind is a good bootloader, you don't really need to install another one.

---- lsblk /dev/sda

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda4   8:4    0   100M  0 part /mnt/boot
├─sda1   8:1    0   200M  0 part /mnt/boot/esp
└─sda6   8:6    0    30G  0 part /mnt

---- menuentry in /mnt/boot/esp/EFI/refind/refind.conf

menuentry "Arch Linux" {
	icon	/EFI/refind/icons/os_arch.png
#	volume	arch_boot
	loader	/vmlinuz-linux
	initrd	/initramfs-linux.img

Make sure that you configure Refind correctly. Your menuentry doesn't work since the kernel and initrd (loader and initrd lines) are on a different partition, not on the ESP.

You have /boot and the ESP as two seperate partitions, take that into account. It would be easier if you used the ESP as /boot.

Read this article to learn more.
https://wiki.archlinux.org/index.php/REFInd

Offline

#7 2017-01-11 05:40:01

keltek
Member
Registered: 2017-01-08
Posts: 53

Re: [SOLVED] rEFInd menu doesn't open

@teateawhy to use ESP as my boot would I just add the kernel into a directory in the ESP and point to it from my menuentry?

Also, while doing some more experimenting I decided to try re-running refind-install from my mac. This has yielded an interesting result. Refind seems to have now auto-detected my Arch setup and has given me an option for it in the menu. I know this isn't my doing since currently my menuentry for arch is disabled. The problem now though is when I try to boot into this arch menu option given to me, it fails with the error

ERROR: device '' not found. Skipping fsck. 
ERROR: Unable to find root device ''.

Either way though I'm ultimately going to want my arch install to be booted from a custom menu entry anyway but if I can get it even just working for now that would be very helpful. I'll try moving my kernel to the esp though.

Last edited by keltek (2017-01-11 05:40:45)

Offline

#8 2017-01-11 06:29:57

keltek
Member
Registered: 2017-01-08
Posts: 53

Re: [SOLVED] rEFInd menu doesn't open

So while I doubt this was the source of all my troubles, through playing around enough I came across one glaring error. The PARTUUID I specified in my options "root=PARTUUID=XXXX" was missing one block of characters. Fixing that I now have a working system. Since it's working for me I'll call this resolved but it's an odd issue either way.

Offline

Board footer

Powered by FluxBB