Timeshift doesn't umount drive as root when exit (GDBus.Error Device or resource busy) (original) (raw)
Describe the bug
When I launch Timeshift, it obviously mount my backup drive as root. Here is my mount output:/dev/mapper/luks-1afc320c-xxxxx-xxx7-xxxx3-xxxxx600c on /run/timeshift/backup type ext4 (rw,relatime,stripe=8191)
The bug is when closing Timeshift, this drive is not unmounted.
And so, when you want to "eject" your drive as "standard user". You get this GDBus error:GDBus.Error:org.freedesktop.UDisks2.Error.Failed:Error locking /dev/dm-3 (/-dev/sdb): Failed to deactivate device: Device or resource busy.
To Reproduce
Steps to reproduce the behavior:
- Launch Timeshift.
- Enter root password.
- Make sure you have an external drive to be mounted by timeshift as root.
- Exit Timeshift.
Expected behavior
Timeshift should unmount this drive because it mounted it itself.
System:
- Linux Mint 20 Ulyana
- Desktop: Xfce 4.14.2
- Timeshift version: 20.03.2+ulyana
Hard drive used to backup:
Toshiba 500GB with LUKS Encryption (version 1)
(I unlock it before launching Timeshift.)
Workaround:
As root or sudo, enter:# umount /run/timeshift/backup