Trouble with my first install. How do I mount partitions in an EFI system? Please help.
EDIT: Solved! Thanks, everyone! /u/fliphopanonymous had the key to my chastity belt. It turns out I was mounting incorrectly. I was confused about the mounting of /boot, but it was then shown that /boot is not its own partition, but a directory within a partition. It is, (in this case, at least), inside the /root partition.
I'm installing Arch to an SSD, /dev/sda
I intend to dual boot with Windows 8 on a separate drive.
This is a UEFI system.
I've just partitioned /dev/sda like this:
sda1 512M vfat32 (EFI partition) sda2 20G ext4 (root) sda3 16G (swap) sda4 (home; the rest of the space)
I'm at the point where I am to mount the filesystems, and the beginners' guide says to mount /boot first. Would this be the EFI partition or the /root partition in my case?
I am very confuse. A link to an idiot-proof guide would be nice.
Thanks!
Edited 26 May 2015. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 366fmb
19 comments
It is recommended that you use the ESP (EFI sys partition) as a /boot partition, it makes things easier.
Could you explain how to do this?
Okay you may need to read the guide a bit more carefully - it clearly states to mount
/first:So, mount
/first, then make directories on the mounted filesystem forbootandhome, then mount/bootand/homein any order you choose. As you move forward you will mount that EFI partition as your/bootpartition, I believe.See, this is where I got confused; I mount root first
mount /dev/sda2 /mnt
now, what do I do, specifically, for my setup? I guess /boot is inside the /root partition?
Please, could tell me the exact commands to put in in order to mount everything correctly? I've done this wrong twice now.
I mean they are in my comment... However I'll be specific for your particular case.
# mount /dev/sda2 /mnt# mkdir /mnt/{boot,home}# mount /dev/sda1 /mnt/boot# mount /dev/sda4 /mnt/homeThe Linux kernel must always be in the /boot, so if you mount the EFI partition in /boot, the Linux kernel will be in this partition. And there will also be at the root of the EFI partition tons of files, something i find not clean. The UEFI partition should always only contain UEFI file.
I'm not sure where you're getting this information but it's not true at all. In fact, the Arch wiki recommends mounting the EFI partition as /boot as it makes doing and EFISTUB kernel much easier - which lets us boot directly to the OS without loading through a bootloader. Additionally, it's not actually all that dirty - my
/bootpartition is only two folders and three files total, two of which are initramfs images. Overall it's much easier to just go ahead and mount the EFI partition as /boot (rather than the other option, which is mounting it as /boot/efi) for a lot of people and for a lot of use cases.Please don't just say you solved it. Explain what the confusion was and credit the person that helped you.
Sorry! Will do.
Edit: and done.
Thanks you kind sir. To many people hit and run.
After many macbooks install (uefi only) and dual boot W8/Arch on a x250 :
You don't have a separate /boot partition, so you mount / and /home, swapon, you pacstrap your system, and at the end of the beginner guide, you will install the bootloader.
According you want to use grub :
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheckDone.
Same deal with gummiboot?
Also, I've turned swap on before mounting. Do over, or is there a way to revert?
Not the same deal with gummiboot. And gummiboot is not a simple bootolader, it's a bootloader manager, a little bit more complex to configure. I advice grub for a first install, easier. You can use
os-proberto find the Windows bootloader and create an entry on grub menu.About swapon, no matter if you followed the guide (yes, swapon before mounting).