rjlan Posted February 6, 2021 Share Posted February 6, 2021 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? Quote Link to comment
Energen Posted February 6, 2021 Share Posted February 6, 2021 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. Quote Link to comment
doron Posted February 6, 2021 Share Posted February 6, 2021 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. 1 Quote Link to comment
Recommended Posts
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.