Unable to mount Encrypted Partition

  • Hi guys,


    I am a little new to the Encrypted devices and partitions so bear with me. I installed OMV 6.3.7-2 after installing Debian 11. The reason for this installation approach was to create a different partition on my 1 TB NVME drive so that I can use that partition for encryption. After the installation, I created a encrypted partition and mounted it from the terminal and added the entry to the /etc/fstab but I am unable to see this partition from the GUI when I am trying to create shared folders. Where do you think I am going wrong?

    • Official Post

    OMV will not see any manually created partitions in fstab. You will only see devices created from the GUI.

    Why don't you use the openmedivault-luks plugin?

  • I was reading about the openmedivault-luks plugin, it says the passphrase you type in from the GUI will be written to the /tmp folder as well as in some debug files. For that reason I dont want to use the Plugin.

    • Official Post

    it says the passphrase you type in from the GUI will be written to the /tmp folder as well as in some debug files.

    In-memory temp files that could only be accessed as root and only exists for milliseconds. It is impossible to avoid that if the password is entered into a web interface. If you need NSA-grade security, you probably can't use any existing NAS web interface.

    omv 7.7.3-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    Will the passphrase be logged in plain text in any other location or file apart from the /tmp ?

    No.

    omv 7.7.3-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks ryecoaaron. I deleted the encrypted partition using fdisk. Logged in to GUI and under encryption I dont see the partition. Do I have to carry out any other steps before I see this partition from GUI?

    • Official Post

    Logged in to GUI and under encryption I dont see the partition. Do I have to carry out any other steps before I see this partition from GUI?

    Why are you using partitions? OMV expects blank disks. You need to wipe the disk in the Physical Disks tab.

    omv 7.7.3-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • As I stated in my initial post, I have a 1 TB NVME drive which I partitioned in two partitions. On the first partition (non-encrypted) I installed Debian 11 and subsequently OMV 6.x. I want to use the second partition as encrypted partition. The reason I didn't encrypt the whole drive is because I am running this server in headless mode and there is no way for me to enter the passphrase when the system boots up if I encrypt the whole drive.


    The idea was to boot the server and when the server comes up, SSH to the server and open and mount the second encrypted partition by entering the passphrase and then use GUI to mount it and create shared folders and carry out regular tasks. But you said that this method is not supported. So my question is how to I encrypt and mount the second partition from GUI.

    • Official Post

    You just need to create the luks device from the command line. Once it is created, you can use the plugin.

    I think there should be way to mount raw partitions and not just drives and encrypt from the GUI. May be in future release

    The idea of OMV is to separate data and the OS. When you do that, there is no need for partitions. OMV works just fine with filesystems on partitions that already exist. you just can't create them from the web interface. OMV has always been this way and I doubt that will change.

    omv 7.7.3-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!