You are not logged in.

#1 2017-07-31 11:28:17

Janusz11
Member
Registered: 2007-05-16
Posts: 87

[SOLVED] New install: question concerning btrfs & subvolumes

Hey there.

I build myself a new computer and am going to install Arch on it again. This time I choose btrfs as the file system. Maybe I‘ve missed someting but I‘m a little lost concerning subvolumes though.

I‘ve followed the Wiki to encrypt the entire system and install btrfs on a single device. But when it comes to the point where the Wiki describes how to create and mount the subvolumes I‘m not sure that I‘m doing it right.

1. I‘ve installed btrfs and mounted the partition, e.g.:

mount -o compress=lzo /dev/mapper/cryptroot /mnt/

2. I‘ve created the subvolumes as described in the Wiki, e.g.:

btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home

etc.

3. I‘ve unmounted the system partition again:

umount /mnt/

Now I come to the point where I‘m supposed to mount the just created subvolumes and where I‘m currently lost.

As I understand it, I mount the root subvolume as follows:

mount -o compress=lzo,subvol=@ /dev/mapper/cryptroot /mnt

and then create mount points for all the other subvolumes I created and mount them accordingly, e.g.

mkdir /mnt/home
mount -o compress=lzo,subvol=@home /dev/mapper/cryptroot /mnt/home

Is that correct?

Last edited by Janusz11 (2017-08-04 17:49:05)

Offline

#2 2017-07-31 11:30:03

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] New install: question concerning btrfs & subvolumes

That all looks correct to me.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-08-04 17:48:47

Janusz11
Member
Registered: 2007-05-16
Posts: 87

Re: [SOLVED] New install: question concerning btrfs & subvolumes

Thanks. The system works, so I guess I did indeed everything right. =]

Offline

Board footer

Powered by FluxBB