Vll kann man die subvolume auch in @ usw. ändern ohne Datenverlust.
Beiträge von KTT73 im Thema „Arch Linux: btrfs _ Timeshift nutzen“
-
-
Werden damit auch automatisch Snapshots erzeugt bei einem Update
Dafür werden noch ein paar Pakete benötigt:
Codeextra/grub-btrfs 4.13-1 (35.6 KiB 103.7 KiB) (Installiert) Include btrfs snapshots in GRUB boot options chaotic-aur/timeshift-autosnap 0.9-1.3 (6.2 KiB 4.4 KiB) (Installiert) Timeshift auto-snapshot script which runs before package upgrade using Pacman hook. extra/timeshift 24.01.1-1 (687.4 KiB 3.0 MiB) (Installiert) A system restore utility for Linux
-
Jap, hatte hier das selbe Problem. Habe nun das Grundsystem (ohne Desktop) mit dem archinstall-Script installiert (war zu faul um so viel zu tippen), dadurch wurden die Subvolumes automatisch angelegt. Danach dann händisch X11 inkl. Desktop (XFCE).
Das Ergebnis:
Code[ktt73@KTTs-Kiste ~]$ sudo btrfs subvolum list / [sudo] Passwort für ktt73: ID 256 gen 1064 top level 5 path @ ID 257 gen 1065 top level 5 path @home ID 258 gen 1065 top level 5 path @log ID 259 gen 1019 top level 5 path @pkg ID 260 gen 274 top level 5 path @.snapshots ID 261 gen 11 top level 256 path var/lib/portables ID 262 gen 182 top level 256 path var/lib/machines
und /etc/fstab
Code
Alles anzeigen# /dev/nvme0n1p2 UUID=8371d272-d300-4e3c-9da5-3bd3d1c02dcb / btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@ 0 0 # /dev/nvme0n1p2 UUID=8371d272-d300-4e3c-9da5-3bd3d1c02dcb /home btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home 0 0 # /dev/nvme0n1p2 UUID=8371d272-d300-4e3c-9da5-3bd3d1c02dcb /var/log btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/@log 0 0 # /dev/nvme0n1p2 UUID=8371d272-d300-4e3c-9da5-3bd3d1c02dcb /var/cache/pacman/pkg btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=259,subvol=/@pkg 0 0 # /dev/nvme0n1p2 UUID=8371d272-d300-4e3c-9da5-3bd3d1c02dcb /.snapshots btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=260,subvol=/@.snapshots 0 0
So ist alles Timeshiftkompatibel und es wird bei einem Sytemupdate ein Snapshot erstellt.
Code
Alles anzeigenSelected default snapshot type: BTRFS Using system disk as snapshot device for creating snapshots in BTRFS mode Mounted '/dev/nvme0n1p2' at '/run/timeshift/16211/backup' Creating new backup...(BTRFS) Saving to device: /dev/nvme0n1p2, mounted at path: /run/timeshift/16211/backup Created directory: /run/timeshift/16211/backup/timeshift-btrfs/snapshots/2024-03-28_13-35-59 Created subvolume snapshot: /run/timeshift/16211/backup/timeshift-btrfs/snapshots/2024-03-28_13-35-59/@ Created control file: /run/timeshift/16211/backup/timeshift-btrfs/snapshots/2024-03-28_13-35-59/info.json BTRFS Snapshot saved successfully (0s) Tagged snapshot '2024-03-28_13-35-59': ondemand ------------------------------------------------------------------------------ btrfs: Quotas are not enabled GRUB-Konfigurationsdatei wird erstellt … Linux-Abbild gefunden: /boot/vmlinuz-linux-zen Initrd-Abbild gefunden: /boot/amd-ucode.img /boot/initramfs-linux-zen.img Found fallback initrd image(s) in /boot: amd-ucode.img initramfs-linux-zen-fallback.img Linux-Abbild gefunden: /boot/vmlinuz-linux-lts Initrd-Abbild gefunden: /boot/amd-ucode.img /boot/initramfs-linux-lts.img Found fallback initrd image(s) in /boot: amd-ucode.img initramfs-linux-lts-fallback.img Warnung: Zur Erkennung anderer bootfähiger Partitionen wird os-prober nicht ausgeführt. Die darauf befindlichen Systeme werden nicht zur GRUB-Bootkonfiguration hinzugefügt. Schauen Sie in den Dokumentationseintrag GRUB_DISABLE_OS_PROBER. Bootmenü-Eintrag für UEFI-Firmware-Einstellungen wird hinzugefügt … Detecting snapshots ... Found snapshot: 2024-03-28 13:35:59 | timeshift-btrfs/snapshots/2024-03-28_13-35-59/@ | ondemand | {timeshift-autosnap} {created before upgrade} | Found 1 snapshot(s)