-
Notifications
You must be signed in to change notification settings - Fork 3
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
Encrypted drives in OMV6 re-lock themselves #51
Comments
I assume you are using usb drives? If yes, they are lock when the usb controller puts the drive to sleep which is like disconnecting the drive. I don't know of a way to prevent this. |
Hi, tope, they're two hdds. |
Are you setting the drives to spin down? OMV did just switch from hdparm to smartctl in 7.0.4-2 |
I can't explain it then. Something is causing a disconnect. The plugin isn't a service and isn't constantly interacting with anything. I would look for messages in dmesg. It would be worth your time to post on the forum where people who actually use luks in this way might have run into this before. |
Interesting. In any case, would (as per the example picture) the command to decrypt the hdd be the following: |
No. It would be (need to replace CONTAINER_NAME with the one from your system - I don't know what it is - probably sdc-crypt): |
Yes, correct, that's to decrypt them once, I was thinking to completely remove the encryption on the hdd. |
I've worked with LUKS for years and never tried that. Seems like it would still sit on a LUKS device with is weird. I will have to try it. |
This looks to be the one as of 2.6.0 |
You are missing the --header flag. cryptsetup reencrypt --decrypt --header /test /dev/vdj I just decrypted a container on my test system. It "moved" the ext4 filesystem from the container to the drive. So, it seems like it works well. Since fstab is mounting the filesystem, it just worked on reboot as well. |
Interesting, maybe the decryption option could be added to the plugin gui. |
Since these filesystems are in fstab, there is nothing actively watching them to mount when they get unlocked. |
Hmm, so why is it when I decrypt using the plugin they remount automatically? |
the plugin tries to run a mount command after decrypting. |
Excellent, that explains it. For the simple people like myself - what would be that mounting command that's run? |
If you really want to keep it simple, just run "sudo mount -a" after everything is unlocked. |
Have encountered a weird bug where the drives (after some time of them being unlocked) just lock themselves and I need to go to the OMV GUI and unlock them again. Bit of a hassle and haven't seen anything in the notifications that might show why this is happening.
Also, is there a way to permanently decrypt the drives if there is no fix for this?
The text was updated successfully, but these errors were encountered: