Jump to content

encryption and /root/keyfile


Recommended Posts

Posted

Hello, to protect the data on my drives I enabled encryption.  To enable autostart I inserted into /boot/config/go  the line "cp /boot/config/keyfile /root"

 

This seemed to go well with the drive autostarting on bootup.

Then I bought a giant usb drive to use as an array backup, so I installed unassigned devices and UD plus so that I could also encrypt the usb drive.

 

I do a reboot and all is not well.   The UD luks encrypted usb drive does auto-mount... but my array no longer auto starts its asking me for a keyfile or keyphrase.

 

If I open a console window and go into /root the keyfile is not there.  If I pass in a keyfile from the webGui then it start and the keyfile is in /root

 

does anyone have any idea what is going on? why is the keyfile not getting copied from the go script (or why is it getting deleted after emhttp starts)?

 

 

 

 

  • 3 months later...
Posted

Hi Rilles, go to /boot/config/go  if your on windows open it with notepad++ Then add this cp /boot/config/keyfile /root/keyfile then save it then when the server boots it should copy the key file to /root/keyfile to check you can open a terminal and type "ls" it should say keyfile if so you are good to go :) also make sure your USB Unassigned device drive has the same encryption key as your array other wise it won't mount hope this helps....JP  

  • Like 1

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.

×
×
  • Create New...