You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
I have been trying half the day to set up timeshift with btrfs in LUKS.
The choice of the btrfs partition does not show up in the devices/partition listing of the timeshift assistant.
My rough guess would be that there is some problem with recognizing the LUKS_crypt or btrfs partition correctly.
Using the same system setup but without the LUKS device mapper (btrfs partition is it's own unencrypted partition) everything works fine.
Using snapper with this BTRFS-in-LUKS-setup seems to work fine so far and is unproblematic.
Any hints on how to get this done right, what am I missing here? Is it a timeshift bug? What else can I bring up for debugging?
Also, I'm new to btrfs, so please excuse me if I'm missing something obvious here.
Below you will find the errors I encountered and below that the system's configs.
The system is the current and up-to-date MX Linux 21 based on Debian GNU/Linux 11 (bullseye).
The timeshift version is: v21.09.1
Errors
Here are the variety of errors:
$ sudo timeshift --check
E: System disk not found!
same with --debug flag:
$ sudo timeshift --check --verbose --debug
D: Main()
D:
D: Running Timeshift v21.09.1
D:
D: Session log file: /var/log/timeshift/2022-02-01_22-36-58_backup.log
D: Distribution: MX 21 (Wildflower)
D: DIST_ID: MX
D: Main: check_dependencies()
D: Main: add_default_exclude_entries()
D: Main: add_default_exclude_entries(): exit
D: update_partitions()
D: df -T -B1
D: Device: get_disk_space_using_df(): 2
D: Device: get_mounted_filesystems_using_mtab(): 2
D: Device: get_filesystems(): 7
D: partition list updated
D: detect_system_devices()
D: /home is mapped to device: /dev/dm-0, UUID=
D: /boot is mapped to device: /dev/sdb1, UUID=eb29dd52-efda-4ba6-9dcd-d68c21e0d4e7
D: Searching subvolume for system at path: /
D: Found subvolume: @, on device:
D: Found subvolume: @home, on device:
D: Users: root username
D: Encrypted home users:
D: Encrypted home dirs:
D: Encrypted private dirs:
D: Main: load_app_config()
App config loaded: /etc/timeshift/timeshift.json
D: IconManager: init()
D: bin_path: /usr/bin/timeshift
D: found images directory: /usr/share/timeshift/images
D: Main(): ok
D: AppConsole: parse_arguments()
D: Main: initialize_repo()
D: backup_uuid=
D: backup_parent_uuid=
E: System disk not found!
D: exit_app()
D: unmount_target_device()
D: clean_logs()
D: rm -rf '/tmp/q70Toe5x'
I wonder why D: /home is mapped to device: /dev/dm-0, UUID= does not list the UUID, which would be:
Byside question: Which would be the "backup_parent_uuid" in a "normal" setup?
The assistant in the timeshift GUI lists the hard drives after proceeding with the initial choice "btrfs".
The btrfs partition is not listed and I can not proceed. Trying to proceed with the choice of the harddrive regardless (like suggested in other threads/issues) brings up an error: "Select BTRFS system disk with root subvolume (@)"(ENG) "Bitte BTRFS-Systemlaufwerk mit Wurzelunterlaufwerk (@) auswählen" (DE)
I tried setting the UUID of the LUKS device itself manually in the timeshift config and get this error launching timeshift-launcher in the console:
E: Failed to mount device '/dev/disk/by-uuid/' at mount point '/run/timeshift/backup'
E: mount: /run/timeshift/backup: /dev/disk/by-uuid is not a block device.
When setting the UUID of the LUKS device mapper instead I don't get that error above.
Same with the UUID_SUB of the LUKS device mapper.
The UUID of the @ btrfs subvolume also does not help.
CONFIG
Here is the system's lsblk:
sdb 8:16 0 931,5G 0 disk
├─sdb1 8:17 0 1G 0 part /boot
├─sdb2 8:18 0 914,5G 0 part
│ └─1FORMAT.fsm 254:0 0 914,5G 0 crypt /home
└─sdb3 8:19 0 16G 0 part
It seems timeshift need systemd to properly recognize and process a btrfs volume in a LUKS partition.
Booting the system with systemd as init made the btrfs partition available and now snapshotting is working nicely.
The system in use in this issue is MX Linux which uses sysvinit as standard init, hence the problem.
+1 to make timeshift work without systemd dependencies.
I have been trying half the day to set up timeshift with btrfs in LUKS.
The choice of the btrfs partition does not show up in the devices/partition listing of the timeshift assistant.
My rough guess would be that there is some problem with recognizing the LUKS_crypt or btrfs partition correctly.
Using the same system setup but without the LUKS device mapper (btrfs partition is it's own unencrypted partition) everything works fine.
Using snapper with this BTRFS-in-LUKS-setup seems to work fine so far and is unproblematic.
Any hints on how to get this done right, what am I missing here? Is it a timeshift bug? What else can I bring up for debugging?
Also, I'm new to btrfs, so please excuse me if I'm missing something obvious here.
Below you will find the errors I encountered and below that the system's configs.
The system is the current and up-to-date
MX Linux 21
based onDebian GNU/Linux 11 (bullseye)
.The timeshift version is:
v21.09.1
Errors
Here are the variety of errors:
same with --debug flag:
I wonder why
D: /home is mapped to device: /dev/dm-0, UUID=
does not list the UUID, which would be:Byside question: Which would be the "backup_parent_uuid" in a "normal" setup?
The assistant in the timeshift GUI lists the hard drives after proceeding with the initial choice "btrfs".
![tserror1](https://user-images.githubusercontent.com/47253216/152043403-a2349276-817f-4806-b079-933290d2935f.jpg)
The btrfs partition is not listed and I can not proceed. Trying to proceed with the choice of the harddrive regardless (like suggested in other threads/issues) brings up an error:
"Select BTRFS system disk with root subvolume (@)"
(ENG)"Bitte BTRFS-Systemlaufwerk mit Wurzelunterlaufwerk (@) auswählen"
(DE)I tried setting the UUID of the LUKS device itself manually in the timeshift config and get this error launching timeshift-launcher in the console:
When setting the UUID of the LUKS device mapper instead I don't get that error above.
Same with the UUID_SUB of the LUKS device mapper.
The UUID of the @ btrfs subvolume also does not help.
CONFIG
Here is the system's lsblk:
It shows /home as mountpoint for some reason …
Here is the blkid output:
fstab:
crypttab:
parted print all:
The output of
sudo btrfs subvolume list /
Output of
sudo btrfs subvolume get-default /
ID 5 (FS_TREE)
and of
$ sudo btrfs subvolume get-default /home
ID 5 (FS_TREE)
The output of
sudo btrfs subvolume show /
and analogous of
sudo btrfs subvolume show /home
The text was updated successfully, but these errors were encountered: