Mounting Luks Container?


Recommended Posts

Is there a simple way to mount a Luks container via unraid? 

I have an image file.   Before I went to unraid, I would simply 

Cryptesetup open luks blahblah.img blahblah

then mount /dev/mapper/blahblah foldername

 

I do that now in unraid.  SSH in and do that.  Mount it to a share I made on unraid.  I am able to view it and everything works.   The CATCH is when I go to unmount it

umount /mnt/user/blahblah   then luksClose /dev/mapper/blahblah......................   it just says it is busy

I have made sure I don't have the folder open anywhere.  It seems after an extended amount of time.  It FINALLY release and I can unmount the folder.    Then after another really long time, I can then luksClose the container.    

 

I am not sure how Unraid handles the file, especially since I mount it from terminal.   Or.......... How do I kill the session?   Force linux to let go of folder so I can unmount and close?

 

Or, is there some sort of plugin I can do all this with?   

 

Thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.