Open sabcatlibra opened 4 years ago
I have the same issue with an encrypted external USB storage. For me the umount with the file manager leads to the error:
GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error locking /dev/-dm-3 (/dev/sda): Failed to deactivate device: Device or resource busy
When I then try to mount the device again I get the error:
Error unlocking /dev/sdb: Failed to activate device: File exists
System: Pop!_OS 20.04 Application Version 20.03
Same Issue here. After mapping the encrypted hard drive, and mounting it, timeshift seems to mount the filesystem to a second mounting point: (in my case: /run/timeshift/backup). Even after closing timeshift the filesystem seems mounted to /run/timeshift/backup and the manually assigned mounting point. Luckily I had no crashes till now, and could umount from both mounting points one after another.
System:
Similar Problem on UBUNTU 20.04 + timeshift 20.03 and plain NON-ENCRYPTED fixed /etc/fstab mounted drives.
I have multiple internal sata drives, one is supposed to be my /backups drive (to be used by timeshift as well) and thus is already mounted by fstab on system boot.
timeshift seem not to care about already mounted backup partitions. it "double mounted" that partition somewhere under /run/timeshift/ , no matter what, risking damage to the filesystem, since most filesystems on desktop linuxes are not prepared for parallel/concurrent mounts like some cluster filesystems are.
im using ext4 and xfs here.
THIS IS REAL DANGEROUS if you share your timeshift backups partition with other apps as well. Through to filesystem corruption as a result of multiple concurrent mounts DATALOSS may occur.
This behavior is REAL BAD.
Either put better system requirements together, mentioning that timeshift requires an exclusive NON MOUNTED backup partition, OR BETTER fix timeshift so it checks for mounted drives or just support plain old PATHs so we can define where to put things.
regards Axel
Describe the bug When plugging in my USB drive, I decrypt and mount it as my user. However when timeshift starts up, it mounts it again in a separate place. It does not seem like this would be desired behavior and creates oddities when I want to unplug the drive where I can't rely on my file manager to do the right thing, so I have to manually umount the drive as root and then
cryptsetup close
manually as well.To Reproduce Steps to reproduce the behavior:
mount
outputExpected behavior I would assume that it would use the already existing mount rather than mounting it again
System: