You are not logged in.

#1 2021-12-13 12:45:26

frank1962
Member
Registered: 2021-05-10
Posts: 19

BTRFS and timeshift

Hi at all;
I have installed Arch KDE in Virtualbox machine from iso 12-01-21 with BTRFS, and i am interested to create a subvolume structure to utilize timeshift with backup in snapshots in btrfs subvolume; during the installation i chose  to use BTRFS subvolumes with a default structure, but i I don't know how to create subvolume @ and @home. I can boot in the virtual machine also by a LiveCD Arch  which sees the structure of the OS installed.
Can anyone help me ?

Offline

#2 2021-12-13 12:55:37

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Offline

#3 2021-12-13 17:53:22

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: BTRFS and timeshift

I don't know what all timeshift requires, I don't use it.
You will need to adjust this as required as far as needed subvols are concerned.

While following official Archlinux Installation instructions.

This is with bios boot and grub

mkfs.btrfs /dev/sdXX

mount /dev/sdax /mnt

btrfs su cr /mnt/@
btrfs su cr /mnt/@home
btrfs su cr /mnt/@root
btrfs su cr /mnt/@srv
btrfs su cr /mnt/@cache
btrfs su cr /mnt/@tmp
btrfs su cr /mnt/@log

umount /mnt

mount -o  defaults,noatime,compress=zstd,autodefrag,subvol=@ /dev/sdXX /mnt

Now you need to mkdir /mnt/home and (/root /srv /var/cache, log and tmp)

mount -o defaults,noatime.compress=zstd,autodefrag,subvol=@home /dev/sdXX /mnt/home
mount -o defaults,noatime,compress=zstd,autodefrag,subvol=@root /dev/sdXX /mnt/root
mount -o defaults,noatime.compress=zstd,autodefrag,subvol=@srv  /dev/sdXX /mnt/srv
mount -o defaults,noatime,compress=zstd,autodefrag,subvol=@cache /dev/sdXX /mnt/var/cache
mount -o defaults,noatime,compress=zstd,autodefrag,subvol=@tmp  /dev/sdXX /mnt/var/tmp
mount -o defaults,noatime,compress=zstd,autodefrag,subvol=@log  /dev/sdXX /mnt/var/log

when your happy pacstrap as normal not forgetting grub-btrfs.

genfstab -U /mnt >> /mnt/etc/fstab

arch-chroot /mnt

Archlinux Install guide continues...

(Sorry that I keep editing it, it's the first time I ever put it down on paper)
Edit: Cleaned up and final edit, I think

Last edited by Zod (2021-12-15 01:19:49)

Offline

#4 2021-12-13 18:10:55

frank1962
Member
Registered: 2021-05-10
Posts: 19

Re: BTRFS and timeshift

I follow the post almost to the end,  editing / etc / fstab, but

"Once there you can mount the root partition and delete the old root filesystem."

what exactly should I do ?
However I reboot, and use timeshift; i can configure it for a backup on a subvolume, but when i try to create a snapshot, i obtain this error message :

NOT SUPPORTED
The system partition has an unsupported subvolume layout. Only ubuntu-type layouts with @ and @home subvolumes are currently supported

??

Offline

#5 2021-12-14 22:04:59

AndroGR
Member
From: Athens, Greece.
Registered: 2021-10-15
Posts: 53

Re: BTRFS and timeshift

frank1962 wrote:

I follow the post almost to the end,  editing / etc / fstab, but

"Once there you can mount the root partition and delete the old root filesystem."

what exactly should I do ?
However I reboot, and use timeshift; i can configure it for a backup on a subvolume, but when i try to create a snapshot, i obtain this error message :

NOT SUPPORTED
The system partition has an unsupported subvolume layout. Only ubuntu-type layouts with @ and @home subvolumes are currently supported

??

I don't think it's recoverable by this point. Reinstall Arch according to the guide.


Arch | AMD Ryzen 5 1500X | AMD Radeon RX550 4GB | 16GB RAM (3200Mhz) | KDE Plasma | Linux Zen / Custom Kernel

Offline

Board footer

Powered by FluxBB