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.

How would I automatically copy the disk encrypted keyfile at boot?

Featured Replies

My array is encrypted and at boot up  I'm required to enter the path to the keyfile. (right now stored on my flash drive) I'm limited because my router/pfsense is a docker so I can't copy the keyfile across from my network etc using wget. So if I store the keyfile on the flash can I do a command like cp /boot/config/ssh/sshkeyimusing to my go file as a temp measure? Where would I copy that file too at boot time? Yes I know this bypasses the whole idea of the encrypted disks. I really just wanted to try it out

Copy the keyfile to /root . Easiest way is to add the copy command to /boot/config/go, before you start emhttp

#!/bin/bash

# let encrypted array auto-start (obviously, not secure)
cp /boot/config/custom/keyfile /root

# Start the Management Utility
/usr/local/sbin/emhttp &

 

 

  • Author
10 minutes ago, ljm42 said:

Copy the keyfile to /root . Easiest way is to add the copy command to /boot/config/go, before you start emhttp


#!/bin/bash

# let encrypted array auto-start (obviously, not secure)
cp /boot/config/custom/keyfile /root

# Start the Management Utility
/usr/local/sbin/emhttp &

 

 

what does this do?

 

# Start the Management Utility

/usr/local/sbin/emhttp &

 

Just now, wdelarme said:

what does this do?

 

# Start the Management Utility

/usr/local/sbin/emhttp &

 

That starts the webgui.  It is in your go script already, I was just showing that you want to copy the file before that line so the array will be able to auto-start.

  • Author
Just now, ljm42 said:

That starts the webgui.  It is in your go script already, I was just showing that you want to copy the file before that line so the array will be able to auto-start.

OHHH!! I had no idea thats what started it

I guess this is a good time to mention that you need to be careful when editing this file :) 

 

Also, be sure to use a good text editor that understands Linux line endings (such as Notepad++), definitely not the standard Windows Notepad.

  • Author
Just now, ljm42 said:

I guess this is a good time to mention that you need to be careful when editing this file :) 

 

Also, be sure to use a good text editor that understands Linux line endings (such as Notepad++), definitely not the standard Windows Notepad.

I use VI or vim usually (Only way to learn it is to use it)

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.