Mount Point Does Not Exist, Despite Creating It
I'm trying to install Arch on a Virtualbox VM. I'm following along this guide, and this video. Not sure if relevant, but the VDI file is on an external hard drive.
I've created 3 partitions as per the video:
-
/dev/sda1
linux-swap (~5 GB) -
/dev/sda2
ext4 (~10 GB) -
/dev/sda3
ext4 (~35 GB)
So early on, the video suggests running a few commands:
# mkdir /mnt/home
# mount /dev/sda2 /mnt
# mount /dev/sda3 /mnt/home
But the last command gives me the following error:
mount: mount point /mnt/home does not exist
- First question: The Arch guide doesn't say I should partition my disk as the video does. Should I just forego the fancy partition scheme?
- Second question: If I should go with this partition scheme, how can I get around this error, and why is it happening in the first place?
Solution 1:
This is because you created /mnt/home
before mounting something to /mnt
. When you did that, the "home" directory is hidden by the newly mounted /mnt filesystem.
You need to: (after unmounting everything above)
mount /dev/sda2 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home