You are not logged in.

#1 2013-06-15 18:20:08

Kudu
Member
Registered: 2013-06-15
Posts: 20

Can't boot installer using rEFInd

Hi,

I've installed rEFInd on my Mac OS partition using the install.sh script. rEFInd boots without any issues. However, I was unable to boot the Arch Linux installer through any means of which I could think. I tried three ways: archlinux-2013.06.01-dual.iso on USB, archlinux-2013.03-4-archboot-dual.iso on USB and archlinux-2013.06.01-dual.iso on a DVD+R DL. For either of the USB images, rEFInd did recognize them as a legacy OS, but when I tried to boot them, it gave me some error about the Mac's EFI having poor support for legacy OSes from external drives. As for the DVD, it wasn't recognized at all.

I have an iMac7,1 with a 64-bit 2.8 GHz Core 2 Duo ("Extreme") CPU.

I hope there is a solution to this. Thanks in advance for any help you may be able to provide.

Note: I cross-posted this to rEFInd's forum because I'm not sure whether it's a rEFInd or Arch issue.

Offline

#2 2013-06-15 18:21:23

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

Re: Can't boot installer using rEFInd

Offline

#3 2013-06-15 22:32:10

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

Thanks for the link, WonderWoofy. However, I'm not aware of any way to create a labelled filesystem in Mac OS without having to set up an entire Linux virtual machine just for that.

Offline

#4 2013-06-15 23:07:13

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: Can't boot installer using rEFInd

Kudu wrote:

Thanks for the link, WonderWoofy. However, I'm not aware of any way to create a labelled filesystem in Mac OS without having to set up an entire Linux virtual machine just for that.

Really?

https://developer.apple.com/library/mac … dos.8.html


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#5 2013-06-16 16:26:42

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

Thanks! I was now able to install it. However, I now have trouble booting after creating a /boot/refind.conf file:

rEFInd - Booting OS

Starting vmlinuz-linux
Using load options 'root=/dev/mapper/lvmpool-slash cryptdevice=PARTUUID=7678874f-238e-4b4d-a4dd-3e08e3178f29:crypt rootfstype=ext4 ro initrd=\initramfs-linux-fallback.img'
Error: Device Error while loading vmlinuz-linux

* Hit any key to continue *

I wrote all those settings in my config file except the initrd, which it must have assumed. I have no idea why it chose the fallback or why it's marked with a \, since none of my filesystems are FAT or NTFS. I'm using LVM inside a LUKS partition.

Offline

#6 2013-06-16 16:48:39

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Can't boot installer using rEFInd

EFI uses backslashes '\' as its directory markers. And, if you didn't specify the initramfs, you need to smile

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Offline

#7 2013-06-16 17:39:34

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

Thanks. I just tried initramfs=/boot/initramfs-linux.img and initrd=/boot/initramfs-linux.img (one at a time) and I got the same error with both. I'm probably doing something wrong…sorry for the noob questions!

Edit: I tried changing PARTUUID= to /dev/disk/by-partuuid/, but it didn't help. Same error.

Last edited by Kudu (2013-06-16 18:28:20)

Offline

#8 2013-06-16 19:51:48

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: Can't boot installer using rEFInd

You shouldn't need the /boot, as efi paths are relative to bootthe ESP (see cfr's comment below). Try initrd=/initramfs-linux.img

All the best,

-HG

Last edited by HalosGhost (2013-06-16 20:39:59)


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Offline

#9 2013-06-16 20:34:05

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: Can't boot installer using rEFInd

EFI paths are relative to the root of the EFI partition. Standardly, that means relative to /boot/efi but it might be relative to /boot if that's where you mount your ESP.

Did you follow the Beginners' Guide to set up rEFInd? If not, try that.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#10 2013-06-16 21:09:02

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

I did follow the Beginners' Guide, but it states that there's no need to copy files to the ESP because rEFInd should automatically detect the necessary files in the /boot partition. Besides, I have rEFInd installed on my Mac OS system partition as opposed to an ESP, which is what the rEFInd developer recommends. Therefore, I think I need to set things up relative to my /boot partition.

Last edited by Kudu (2013-06-16 21:09:33)

Offline

#11 2013-06-16 22:21:54

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: Can't boot installer using rEFInd

Have you copied the relevant driver for rEFInd? If you do not have the files on the ESP/MacOS partition (whereever rEFInd itself is), you need to make sure the driver for the appropriate filesystem is available.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#12 2013-06-16 22:27:10

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

Yes, I copied the entire drivers_x64 folder to /EFI/refind/drivers.

Offline

#13 2013-06-16 23:40:12

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: Can't boot installer using rEFInd

I thought that you had installed rEFInd on the OS X partition rather than the EFI partition?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#14 2013-06-17 02:01:22

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

I did. /EFI is on the system partition, it isn't a special mount point for the ESP.

Offline

#15 2013-06-17 02:46:03

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: Can't boot installer using rEFInd

So what error are you getting now?

Post the config files you have for rEFInd and fstab.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#16 2013-06-17 03:52:12

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: Can't boot installer using rEFInd

Kudu wrote:

Thanks! I was now able to install it. However, I now have trouble booting after creating a /boot/refind.conf file:

rEFInd - Booting OS

Starting vmlinuz-linux
Using load options 'root=/dev/mapper/lvmpool-slash cryptdevice=PARTUUID=7678874f-238e-4b4d-a4dd-3e08e3178f29:crypt rootfstype=ext4 ro initrd=\initramfs-linux-fallback.img'
Error: Device Error while loading vmlinuz-linux

* Hit any key to continue *

The error message being reported is the text returned by some system calls for an error code number returned by the EFI to rEFInd. Chances are "Device Error" means code #7, EFI_DEVICE_ERROR, which is (very briefly) described here:

Phoenix Wiki wrote:

The physical device reported an error while attempting the operation.

This suggests a hardware problem, although I wouldn't rule out a firmware bug or a problem with a driver. I'm doubtful that fiddling with configuration files will have any effect. Some things you might try include:

  • Run a SMART test on your hard disk to ensure that it's OK. If the SMART test reveals any problems, replace the hard disk.

  • Remove any unnecessary EFI drivers from the "drivers", "drivers_x64", or "drivers_ia32" subdirectories of the rEFInd installation directory.

  • Run fsck on the partition on which the Linux kernel resides.

  • If the Linux kernel is on a separate /boot partition, back it up, create a fresh filesystem on that partition, and restore the files. You might consider using a different filesystem, too (and changing the EFI driver, if necessary).

  • Check to see if updated firmware is available for your computer, and if so, install it.

Offline

#17 2013-06-17 17:51:53

archolith
Member
Registered: 2013-06-17
Posts: 8

Re: Can't boot installer using rEFInd

Are you trying to just boot into the installer on your Mac? Why don't you just pop the dvd in your Mac, reboot it while pressing the alt button which takes you to Macs boot manager. Once there the Arch disk should show up with 2 disks, Windows and EFI. Just chose EFI and your computer will boot the install dvd where you can start to install Arch.

Offline

#18 2013-06-17 21:42:33

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: Can't boot installer using rEFInd

archolith wrote:

Are you trying to just boot into the installer on your Mac? Why don't you just pop the dvd in your Mac, reboot it while pressing the alt button which takes you to Macs boot manager. Once there the Arch disk should show up with 2 disks, Windows and EFI. Just chose EFI and your computer will boot the install dvd where you can start to install Arch.

No. The OP is now trying to boot the installed system. Please read the thread!


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#19 2013-06-18 01:17:14

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

Thanks, guys.

I ran a short S.M.A.R.T. test and it passed.

I removed all the drivers from rEFInd's driver folder except the one for ext4.

I created a new ext4 filesystem for /boot, restored the files and ran fsck on it for good measure.

No new EFI firmware appears to be available for my computer.

I'm still getting the annoying Device Error. sad Maybe I should try using a different filesystem for /boot. Which one would you suggest?

Last edited by Kudu (2013-06-18 01:21:32)

Offline

#20 2013-06-18 01:50:29

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: Can't boot installer using rEFInd

Try using FAT on /boot, since that's supported by all EFI implementations natively. You'll give up symbolic links and other Linux/Unix-specific features, but they aren't really needed on /boot, at least not with Arch. If you really want Linux/Unix features, try ReiserFS.

Actually, before you do this, could you do a dd backup of your /boot partition (as in unmounting /boot and then doing "dd if=/dev/sda3 of=boot-image.img", changing "/dev/sda3" as necessary), compress the backup, and get a copy to me? (E-mail might be OK, but a file sharing service would be better.) If the problem is reproducible on other computers, that might enable me to track down a bug in the ext2/3 or ext4 driver. If I can't reproduce the problem with your /boot partition, then that means it's a firmware bug or some sort of interaction, which will be harder for me to fix.

Last edited by srs5694 (2013-06-18 01:54:29)

Offline

#21 2013-06-18 01:54:47

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,670

Re: Can't boot installer using rEFInd

EDIT: Ignore me. Follow the advice above.

Last edited by cfr (2013-06-18 01:55:16)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#22 2013-06-18 03:15:41

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

Thanks for the help. I migrated my /boot partition to a FAT32 filesystem. However, when I try to boot it from within rEFInd, this message is displayed:

rEFInd - Booting OS

Starting vmlinuz-linux
Using load options 'root=/dev/mapper/lvmpool-slash initrd=\initramfs-linux.img cryptdevice=/dev/disk/by-partuuid/7678874f-238e-4b4d-a4dd-3e08e3178f29:crypt rootfstype=ext4 ro'
_

and it just hangs there. sad srs, I'll send you the ext4 /boot image as soon as I can boot my system, which will make it easier for me to send it.

Offline

#23 2013-06-18 03:53:24

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

Re: Can't boot installer using rEFInd

@Kudu, OSX has most of the main commands that Linux has.  In fact, the default shell (last I checked) was bash.  It certainly has dd, so you could definitely dd the /boot partition into a file pretty easily.

Offline

#24 2013-06-18 15:27:53

srs5694
Member
From: Woonsocket, RI
Registered: 2012-11-06
Posts: 719
Website

Re: Can't boot installer using rEFInd

Kudu,

Try using unjournaled HFS+ for /boot. Since you're on a Mac, you should not install rEFInd's HFS+ driver. Using HFS+ is unorthodox, I know, but it may work better than FAT for you. (I have problems loading Linux kernels from FAT partitions on my ancient 32-bit Mac, but others don't seem to have that problem, so I assumed it was a quirk of my old model. The system just hangs, much as you've described. HFS+ works fine for me, though, so maybe it will for you, too.)

Offline

#25 2013-06-18 17:22:59

Kudu
Member
Registered: 2013-06-15
Posts: 20

Re: Can't boot installer using rEFInd

Thanks a lot for the help, guys. I ran "mkfs.hfsplus /dev/sdb1" from inside my Arch partition (using arch-chroot on archiso) and copied my previous /boot content to it. However, the result is the same as for FAT32: it hangs on this:

rEFInd - Booting OS

Starting vmlinuz-linux
Using load options 'root=/dev/mapper/lvmpool-slash initrd=/initramfs-linux.img cryptdevice=/dev/disk/by-partuuid/7678874f-238e-4b4d-a4dd-3e08e3178f29:crypt rootfstype=ext4 ro'
_

I removed all the drivers from /EFI/refind/drivers on my Mac OS partition. By the way, Mac OS and Linux are on separate drives, both external, if that makes a difference.

Last edited by Kudu (2013-06-18 17:23:20)

Offline

Board footer

Powered by FluxBB