You are not logged in.
Hello everybody,
my name is Jens and I'm completely new to ArchLinux. I read the Wiki-Guides in advance and several installation sequences for Arch on MacBooks and finally got the base system installed. But after that, I don't know, how I can add it to a boot manager. I want to have a triple-boot system with OS X El Capitan, ArchLinux and Windows 10.
After the installation (detailed in the protocol below) I booted OS X, installed rEFInd with the install script and the --nodrivers option but nothing happens. rEFInd is not visible at the system startup.
It would be great if someone could give me a hint, how I have to continue after the base installation / if all my steps in the installation process of ArchLinux are correct (but it seems so to me) / what boot manager would be the best to use (perhaps there is a better choice).
Thanks a lot
Jens
# +---------------------------------+
# | archlinux installation protocol |
# +---------------------------------+
# preparation of OS X and Windows
clean installation of OS X El Capitan 10.11 beta using the whole internal 1 TB SSD drive
clean installation of Windows 10 using 333.33 GB via BootCamp
shrink OS X El Capitan 10.11 beta partition to 333.33 GB with diskutil
create new 333.33 GB partition in the free space with diskutil
# create installer usb drive in OS X
diskutil list
diskutil unmountDisk /dev/diskX
sudo dd if=archlinux-<version>-dual.iso of=/dev/rdiskX bs=1m
diskutil eject /dev/diskX
# beginning of installation process
shut down
plug in power cable, ethernet cable and installer usb drive
press and hold option key
turn on
select EFI Boot
select Arch Linux archiso x86_64 UEFI CD
# change console font and keyboard layout for installation process
setfont sun12x22
loadkeys de-latin1
# verify uefi mode
efivar -l
# verify established internet connection
ping www.google.com
# ensure clock accuracy
timedatectl set-ntp true
timedatectl status
# prepare storage device
lsblk
cgdisk /dev/sdx (set type to 8300 - Linux filesystem, set name)
lsblk /dev/sdx
mkfs.ext4 /dev/sdxY
mount /dev/sdxY /mnt
# install base system
pacstrap /mnt base base-devel
# generate fstab
genfstab -L -p /mnt > /mnt/etc/fstab
nano /mnt/etc/fstab
# chroot base system
arch-chroot /mnt /bin/bash
# enable locales
nano /etc/locale.gen (uncomment de_DE.UTF-8 UTF-8)
locale-gen
echo LANG=de_DE.UTF-8 > /etc/locale.conf
nano /etc/vconsole.conf
|
+--> KEYMAP=de-latin1
+--> FONT=sun12x22
# set default zone
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc --utc
# set hostname
echo hostname > /etc/hostname
nano /etc/hosts
|
+--> #<ip-address> <hostname.domain.org> <hostname>
+--> 127.0.0.1 localhost.localdomain localhost myhostname
+--> ::1 localhost.localdomain localhost myhostname
# re-generate initramfs image
mkinitcpio -p linux
# set root password
passwd
# unmount partitions and reboot
exit
umount -R /mnt
reboot
Last edited by pocahontius (2015-08-30 18:04:20)
Offline
Hello,
has nobody an idea what to do? I don't get rEFInd to show. It would help if someone could confirm, that my installation steps are right, and that the execution of the install script of rEFInd should normally do it.
Greetings
Jens
Offline
Hello,
I have absolutely no experience whatsoever with apple products since giving up my Iphone 4 1.5 years ago, so take everything I say with a grain of salt. I know a lot about rEFInd on PCs, and hope this knowledge translates to Mac.
First thing I would try is booting your Arch system from a live version of rEFInd. Download the USB flash drive image file here, put it on a flash drive and boot it. Select Arch from the menu. If this doesn't work for you, then there is a problem that I am not familiar with. If this did work, and you are in your Arch system, download and install rEFInd via the Linux script. I have heard that the install goes smoother using Linux, but, again, I have no personal experience with using rEFInd on a Mac.
hopefully this helps.
Also, did the install script return any errors?
HPG
Last edited by hotpepperguy (2015-08-28 13:01:12)
Offline
Hello HPG,
yes the script returns the following:
Could not set boot device property: 0xe00002bc
ALERT:
Installation has completed, but problems were detected. Review the output for
error messages and take corrective measures as necessary. You may need to
re-run this script or install manually before rEFInd will work.
I'll try the USB stick. Thanks for your help!
Greetings
Jens Beuckenhauer
Offline
Alright, well you may need to install manually. It is pretty easy to do from a Linux OS, not sure about Mac, but can be messy if you botch it up. Hopefully the USB drive sorts it out for you, though.
Offline
Maybe setting the intended boot partition using efibootmgr via some live Linux is enough; and the occasional OS X boots pressing the option key ...
Offline
Hello,
1.) I created the rEFInd USB stick from the refind-flashdrive-0.9.0.zip with dd as described in the installation notes. I booted from the stick an it works. I have several EFI boot options and rEFIt choices, but I think they are there because of my testing.
2.) After that I copyied the content of refind-bin-gnuefi-0.9.0.zip to a second USB stick. I booted into Arch with the newly created USB stick, and executed the following commands:
mkdir /boot/efi
mount /dev/sda1 /boot/efi
mkdir /mnt/usb
mount -t vfat /dev/sdd2 /mnt/usb
cd /mnt/usb
./install.sh --nodrivers
The installation error I got under OS X did not appear anymore. But I recieved another error:
ALERT: There were problems running the efibootmgr program! You may need to
rename the refind_x64.efi binary to the default name (EFI/boot/bootx64.efi
on x86-64 systems or EFI/boot/bootia32.efi on x86 systems) to have it run!
Do you have an idea what that means? There is only a bootx64.efi file and not refind_x64.efi file on disk???
Greetings
Jens
Offline
Hello,
Since the directory contains the bootx64.efi file, yet this error shows up, it leads me to believe that the files may just be in the wrong place? This kind of error is usually becuase there was already an installation attempt, and the previous attempt made and error such as placing the rEFInd files in the wrong place, or naming them incorrectly. This can usually be rectified by going into your EFI partition and looking for the rEFInd files, then manually moving them to the proper directory/renaming them. There is an automated script you can try, available from the same location as the rEFInd images, called mvrefind.sh. I'd always advocate the manual procedure, but the script has been successful in all of the very few instances I've heard of it being used.
Unfortunately, as I've said, I have no experience solving rEFInd problems on Mac, so I don't want to accidentally give you bad advice. Hopefully this can at least point you in the right direction, however.
HPG
Offline
Hello,
thanks a lot. I deleted everything, but that wasn't the problem. After analyzing the install.sh I recognized, that my system does not have the efibootmgr. At this point the scripts prints this error. A second problem is, I realized, that my network connections are not working. Is there a way to install efibootmgr with the usb stick?
Greetings
Jens
Offline
Hello,
it works! I forgot that you have to plug in the Thunderbold-to-Ethernet-Adapter before you turn on your Mac... I then installed the efibootmgr with pacman, deleted everything and now after a new rEFInd installation via the scropt rEFInd shows at boot. I only have tp figure out how to edit the configuration file for the arch entry. But that's in the documentation.
Thanks a lot!
Jens
Offline
Excellent, glad to hear you got it figured out. The documentation is bloody confusing, but once you decipher it, it becomes fairly simple to edit the files.
cheers,
HPG
Offline