Skip to content

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.

0 points19 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 100% up
Kind
Text
ID
366fmb

Author

73
posts
1.2k
comments
22
media
View profile

19 comments

It is recommended that you use the ESP (EFI sys partition) as a /boot partition, it makes things easier.

2 points

Okay you may need to read the guide a bit more carefully - it clearly states to mount / first:

The / (root) partition must be mounted first: this is because any directories such as /boot or /home that have separate partitions will have to be created in the root file system. The /mnt directory of the live system will be used to mount the root partition, and consequently all the other partitions will stem from there. If the root partition's name is sdxR, do:

# mount /dev/sdxR /mnt

Once the / partition has been mounted, any remaining partitions may be mounted in any order. The general procedure is to first create the mount point, and then mount the partition to it. If using a separate /boot partition:

# mkdir -p /mnt/boot

# mount /dev/sdxB /mnt/boot

So, mount / first, then make directories on the mounted filesystem for boot and home, then mount /boot and /home in any order you choose. As you move forward you will mount that EFI partition as your /boot partition, I believe.

1 points

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.

1 points

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/home

2 points

The 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.

1 points

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 /boot partition 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.

1 points

Please don't just say you solved it. Explain what the confusion was and credit the person that helped you.

1 points

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 :

  • install grub and efibootmgr
  • create /boot/efi
  • mount the ESP in /boot/efi
  • install grub with grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck

Done.

1 points

Same deal with gummiboot?

Also, I've turned swap on before mounting. Do over, or is there a way to revert?

1 points

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-prober to find the Windows bootloader and create an entry on grub menu.

About swapon, no matter if you followed the guide (yes, swapon before mounting).

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.