You are not logged in.

#1 2017-10-23 20:51:16

7thSon
Member
Registered: 2017-05-07
Posts: 186

[SOLVED] Mount point behavior via Arch iso

I'm trying to extract my borg backup from my repo to my virtualbox VM of arch (testing if the backup works).
My disk is partitioned as:

/boot
swap
/
/home

I that order.


I boot with the arch iso, mount my boot partition to /mnt/boot, home to /mnt/home and system root to /mnt, I then cd into /mnt and extract my repo via borg to there (all of this without chrooting). I can then see that /mnt/boot and /mnt/home contain the right files from the backup repo, but when I reboot the system won't start up. Now when I go back into the arch iso and chroot into my restored installation both /boot and /home are empty?? I'm confused to how these mounts didn't receive the contents of the extract since I could see the files there in the mounted partitions before chrooting?

I've been confused of this behavior before as well, so I would really appreciate if someone could explain how this works.

Last edited by 7thSon (2017-10-24 07:23:31)

Offline

#2 2017-10-23 21:16:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED] Mount point behavior via Arch iso

mount my boot partition to /mnt/boot, home to /mnt/home and system root to /mnt

In that order??

Offline

#3 2017-10-23 21:18:21

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Mount point behavior via Arch iso

When you mount the systems / onto /mnt you are masking /mnt/boot and /mnt/home.
You need to mount the systems / onto /mnt that will provide the mount points /mnt/home and /mnt/boot to mount the other filesystems to.

Offline

#4 2017-10-24 07:23:10

7thSon
Member
Registered: 2017-05-07
Posts: 186

Re: [SOLVED] Mount point behavior via Arch iso

Yes, thank you! This is what I've been overlooking in the past - you need to mount the other filesystem to /mnt first and then mount /mnt/boot and /mnt/home onto the mounted system /mnt.
Finally I get why I sometimes have such strange behavior..

Cheers!

Offline

Board footer

Powered by FluxBB