-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LuksClose does not always close the volume #9
Comments
Cryptsetup does call luksClose. But if it fails when you call it manually, it probably is also failing when the script calls it. It sounds like it fails to close because the device is still in use. You could check if it is still mounted.
Cryptsetup also calls unmount. But if you see that it is still mounted, the unmount process must have failed. You can check if you have some process that is still operating on the mount.
Kill whatever process is using the mount point. Then unmount it. Then close the LUKS container. |
Try to reproduce the commands from the script and your message that could show what appened
|
So you mount the decrypted volume at You must have some sort of automount thing on your computer that immediately re-mounts the drive under the |
It might be the kde feature that ask for the device password as soon as it sees the device on usb line. I'm going to desactivate udisk2 |
I don't use any sort of automounting. If I want to mount a device I use |
Hi pigmonkey,
I still have some issues and try to understand what happened.
At the end of the script the command luksClose does not take off the directory /dev/mapper/crypt-xxx corespondin to the device.
Then I try to do it manually
sudo cryptsetup luksClose crypt-xxx
Le périphérique crypt-xxx est toujours occupé.
And then, it can't be opened for the next backup :-(
I have to reboot the computer to make it work again.
I also tryed to run the script before lanching the graphical UI (kde here) and then it worked properly.
Seems like kde remember the device has been opened and keep it mapped for a next use (looking inside backup for exemple) and then disable next call off the script.
Is there a way to force luksClose at the end of the backup
or other ideas ?
The text was updated successfully, but these errors were encountered: