archfi icon indicating copy to clipboard operation
archfi copied to clipboard

BTRFS subvolumes

Open Anonymo opened this issue 5 years ago • 2 comments

Could an option be added to installer if installing with BTRFS to install more subvolumes at install time, like @home @var @snapshots so that I can install snapper after and have snapshots like OpenSUSE?

Not sure how hard that would be to install. I was looking at the code at line 610.

Mount the root btrfs volume mount /dev/sda2 /mnt Create subvolume for root, home, var and one for snapshots btrfs subvolume create /mnt/@root btrfs subvolume create /mnt/@var btrfs subvolume create /mnt/@home btrfs subvolume create /mnt/@snapshots

Mount them umount /mnt mount -o noatime,compress=lzo,space_cache,subvol=@root /dev/sda2 /mnt mkdir /mnt/{boot,var,home,.snapshots} mount -o noatime,compress=lzo,space_cache,subvol=@var /dev/sda2 /mnt/var mount -o noatime,compress=lzo,space_cache,subvol=@home /dev/sda2 /mnt/home mount -o noatime,compress=lzo,space_cache,subvol=@snapshots /dev/sda2 /mnt/.snapshots

Swap btrfs subvolume create /.swap truncate -s 0 /.swap/swapfile chattr +C /.swap/swapfile

Anonymo avatar Aug 02 '19 17:08 Anonymo

I'll try to provide a wizard that replace the autopart section... But for now you can easily use CTRL+ALT+F2 to mount you own parts made frome here... When your parts as ready and mounted to /mnt, you can make a CTRL+ALT+F1 and choose mount on the script. Your mounted parts will be used as default.

MatMoul avatar Aug 03 '19 01:08 MatMoul

Special case of #115 I guess?

mirh avatar Sep 10 '20 18:09 mirh

Closing old issue...

MatMoul avatar Nov 18 '22 01:11 MatMoul