From 1a281df249cd92ec4f80240d8c76b66e02ac61d6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 14 Feb 2022 17:52:35 -0800 Subject: hosts: add a new subvolumes to carmel Create a subvolume named 'media' that we will mount under /home/fcuny/media so we can snapshots /home/fcuny without the medias. --- docs/install.org | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/install.org b/docs/install.org index 86f255d..386ebc0 100644 --- a/docs/install.org +++ b/docs/install.org @@ -52,6 +52,7 @@ mount -t btrfs /dev/mapper/system /mnt btrfs subvolume create /mnt/nixos btrfs subvolume create /mnt/home btrfs subvolume create /mnt/snapshots +btrfs subvolume create /mnt/home/fcuny/media umount /mnt #+end_src @@ -61,8 +62,10 @@ Now we can re-mount the partitions with the proper options: mount -o subvol=nixos,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt mkdir /mnt/{home,boot,.snapshots} +mkdir -p /mnt/home/fcuny/media mount -o subvol=home,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt/home +mount -o subvol=media,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt/home/fcuny/media mount -o subvol=snapshots,compress=zstd,noatime /dev/mapper/system /mnt/.snapshots mount /dev/nvme0n1p3 /mnt/boot #+end_src -- cgit 1.4.1