mounting with fstab and encrypted drives


rjlan

Recommended Posts

You could create a user script to do this and set it to run at the start of the array -- it would take a test or two to see exactly when the script was fired off, the actual start of the array when you push the button or after drives are unlocked, and modify it accordingly to adjust for it if necessary. 

 

 

Link to comment
1 hour ago, rjlan said:

I've been trying to mount an ISO at boot via fstab and I suspect it's not working because my drives are encrypted and aren't available until I unlock them. Is there a script or something I can tap into to do a mount automatically after I unlock the drives?

I presume you are referring to an ISO file that's on the array.

 

The following is a hack but I don't see a reason why it shouldn't work:

In your "go" script, you can drop a script into this folder

/usr/local/emhttp/plugins/dynamix/event/disks_mounted/

That script will be executed when the array is started (with encryption unlocked). You can use it to mount your ISO.

For completeness, you may want to also drop a script into

/usr/local/emhttp/plugins/dynamix/event/stopping_array/

to unmount your ISO.

  • Thanks 1
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.