You are not logged in.
Pages: 1
So I have been running Arch for the past few months. I decided to update my laptop and went with the Macbook pro for various reasons. So I have been working at getting Arch installed and have run into a couple issues. So this is what I did:
First I shrunk my main partition
Second I booted up Arch install and partitioned a home partition and a root partition. I set the root partition to fat 32 and the home to ext4
Third I mount everything and then I select the US mirror
Fourth I run pacstrap /mnt base and I get the following error
warning failed to retrieve some files
error failed to commit transaction
errors occured no packages were upgraded
ERROR: failed to install packages to new root
Any ideas on what I may be doing wrong or how to fix this issue?
Offline
Wiat? Why are yuo trying to set your / to FAT32?! This is a terrible idea and is not going to work at all. As far as I know, FAT32 is not POSIX compliant, so things will probably nto work whatsoever.
Offline
I have it set to fat 32 because I am installing the EFI way. Would you suggest ext4 as the filesystem?
Offline
The EFI System Partition is supposed to be FAT32, not the root filesystem. That is according to the UEFI standard, but as a Mac user, I am fairly certain that you also have the option of using an HFS+ ESP as well (Apple is waaay above those silly "standards").
You can use any POSIX complaint filesystem, but it is recommended that you use one that has native kernel support. These include (but are not limited to) ext{2,3,4}, xfs, btrfs, jfs, and reiserfs. Those are at least the most common choices. What I am trying to say here is that you shouldn't try to use something like ZFS or resier4 because it requires external kernel modules that you have to keep in sync with your current kernel. So unless you really really know what you are doing this is probably not a good idea.
A separate ESP typically means that it kind of acts like a /boot partition. But as it is OSX already creates an ESP (for what purpose I have no idea). Have you noticed that your OSX partition shows up as /dev/disk0s2 (or /dev/sda2 in Linux)? That is because there is an empty 200MB partition in the beginning of the disk that is actuall a hidden ESP.
This doesn't necessarily mean that you should or need to use the ESP though. Since the mac firmware is capable of booting its EFI from HFS+, you could actually use something like rEFInd from your OSX partition, and ahve it just read the kernels from your rootfs. rEFInd supports ext2, ext4, btrfs, and reiserfs as far as I know (and if it does ext2 and ext4 it very well may be able to read ext3). Since rEFInd is a fork of rEFIt, which was meant specifically for Macs, it is actually fully supported to do it thsi way.
Offline
Ok thank you I will give it another go and let you know if I have any more issues
Offline
Yeah, just remember to never back up your system to something like FAT or NTFS. With Linux, everything is a file, so you can actually copy all the contents to another partition or disk, and then copy them back and ahve a working system. But this breaks of the POSIX attibutes are not copied with them. So there have been a few times in these threads in which people ask about why their backups won't work... and it turns out they backed up to NTFS because that is what their disk was already formatted to.
Edit: ...and I hope that from the above you can deduce that you shouldn't put your system on one of those filesystems in the first place either.
Last edited by WonderWoofy (2013-08-10 01:35:30)
Offline
Ok adjusted it to ext4 and continued on. Installed the base system and chrooted into it. Everything worked fine until it was time to install the bootlaoder. I chose grub to try and stick with the normal setup. This is what I did:
pacman -S grub
pacman -S efibootmgr
then
grub-install --efi-directory=/boot --bootloader-id=arch_grub --recheck
the error is:
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI vairables
Try modprobe efivars as root
I entered the modprobe efivars and nothing happened after that.
Any idea on how to get the bootloader installed?
Offline
Okay, did grub actually install to where you wanted it to? I think that it will go to /boot/arch_grub in that case, but I don't sue grub, so I am not sure.
Efibootmgr is for non-mac systems. In the past using efibootmgr on a mac could actually brick the system, though I am not sure if this is still teh case. You should reference the wiki about how to handle Mac's specifically. But I know the equivalent of the efibootmgr command for Macs is the "bless" utility in OSX. You will likely have to boot there in order to make that work.
I've gotten you as far as I can with my knowledge of how to make things work from a traiditonal UEFI conforming PC. But Apple is not so into adhering to standards. Maybe someone more familiar with Macs and their EFI implementation can step in here. From what I understand about grub, you should have at least installed that actual grub.efi from that. Just the firmware entry was not made...
Offline
Blankwall, I'm not sure how much this will help but I recently installed Arch on a Macbook pro 7,1. I think the Arch resources are fantastic but as a complete beginner from the installation point of view (I use Centos every day at work) I found all the information a little overwhelming, but really liked the philosophy behind Arch. I had one failed installation and then found this guide (https://vec.io/posts/use-arch-linux-and … na-display) which enabled me to get up and running. Not everything worked (internet, keyboard and I used the nouveau video drivers in the end) but at least I had a working system and this is all part of the learning process.
I've since read that the extra HFS+ partition (sda4 on my Mac) isn't needed and you can bless Grub in the mac EFI partition (which is seen as sda1 from Linux on my system) so it's worth having a read of the documents linked below. I have had a problem updating the grub.cfg file since then but that's another issue (see https://bbs.archlinux.org/viewtopic.php?id=167742).
These are the other links:
Wiki on Arch on Macbooks
https://wiki.archlinux.org/index.php/MacBook
This one on Grub - look for the EFI section
https://wiki.archlinux.org/index.php/GR … _systems_2
And then this specific examples on setting up Grub on macs
Offline
Unfortunately I only have one USB stick so I cant move the boot.efi file over to the Mac to bless it and build the stand alone boot partitiion. I will get one later today or tomorrow and hopefully finish up this install.
Offline
You know that you can get the AUR hfsprogs package and it will enable reading og HFS+. It will also write to non-journaled HFS+, though journaling has to be turned off from the OSX installation because there are no tools to do this from Linux. If you leave journaling on, you can still write to the HFS+, but you have to mount with 'force'. This is not something to do all the time (if ever) as it will eventually cause filesystem corruption... I know from experience.
So it is likely possible to just use your existing OSX installation to hold the grub.efi. That is, put it on the HFS+ partition. I have been told that the Mac's like this much more and seem to deal with the blessing properly in this case. Booting from the ESP will actually cause a delay in the boot process no matter how much you 'bless' the damn thing.
I had a Macbook 2,1 (I still do, but it runs FreeBSD). But since it is a 32-bit EFI, I only ever tried to install EFI once, and it was when I was still using ubuntu, so I didn't have a real grasp of what I was actually doing. But in order to run x86_64, I was forced to use bios compatibility mode, which requires the presence of a hybrid MBR or MBR partitioning.
Offline
Pages: 1