Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Encrypted Array not Autostarting w/ Keyfile

Featured Replies

Hello Everyone, 

 

So I've been running my array with a passphrase encryption since day one. Recently I've been away from home quite so I figured I'd setup my array to use a Keyfile in case the server were to reboot (we've had some power issues lately in my area, and yes I do have a UPS but it only last about 30 minutes on battery) I setup a keyfile with passphrase and placed it in my config folder on the flash drive. 

 

I edited my go files as well but when I reboot the server, the array doesn't autostart. I no longer have to type in the passphrase it just gives me the option to start the array. Once started I do see the option to delete the keyfile as well. But again the array is not starting on it's own. Am I missing something here??

 

here is my go file ...

 

#!/bin/bash
# Start the Management Utility
ln -s /boot/config/keyfile /root
/usr/local/sbin/emhttp &

 

  • Community Expert

Have you made sure that the array is set to autostart under Settings -> Disk Settings

7 hours ago, SiRMarlon said:

#!/bin/bash
# Start the Management Utility
ln -s /boot/config/keyfile /root
/usr/local/sbin/emhttp &

 

Did you create the keyfile from windows or from the console?  (unix file type is required)

 

Not sure if anyone can confirm whether or not a symlink can be used with a keyfile? You should eliminate any potential problem by just copying the file to /root

 

Ultimately I was experiencing a number of problems with autostarting the array and ended up just using echo -n "key" > /root/keyfile in my go file... before I decrypted all my drives again because the encryption was a pain in the arse. 

  • Author
7 hours ago, itimpi said:

Have you made sure that the array is set to autostart under Settings -> Disk Settings

 

That was is it right there 😄 such a noob! Thanks for the tip I had auto start set to disabled. I went ahead and enabled the auto start and we are good to go! 👍

 

16 minutes ago, Energen said:

 

Did you create the keyfile from windows or from the console?  (unix file type is required)

 

Not sure if anyone can confirm whether or not a symlink can be used with a keyfile? You should eliminate any potential problem by just copying the file to /root

 

Ultimately I was experiencing a number of problems with autostarting the array and ended up just using echo -n "key" > /root/keyfile in my go file... before I decrypted all my drives again because the encryption was a pain in the arse. 

 

I created the keyfile in my atom editor on my Windows machine. I didn't add any extention to the filename. I Just named it 'keyfile' and dropped into the config folder in the usb, and added the line to the Go file. Ultimately I am going to set this up using ftp and drop the keyfile somwhere else. 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.