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.

Starting Ecnrypted Array with CLI

Featured Replies

I am trying to start an encrypted array from command line. I use a passphrase for decryption and using the GUI can enter it and start the array.  I am currently tring to start the array via CLI using

 

emcmd cmdStart=Start

 

The only place I saw to place the passphrase was in /root/keyfile. I am doing so before trying to start the array using

echo -n "passphrase here" > /root/keyfile

 

This does not seem to work. What am I doing wrong? Is there a different place I need to put the keyfile or a different format?

 

 

Solved by JordanWr

  • Author
  • Solution

I was finally able to get this figured out. You need to have the enable array autostart enabled in Settings>Disk Settings>Enable Auto Start = Yes. You must reboot unraid after changing this setting before it will take effect. If you don't have it enabled it doesn't look for the keyfile in /root/keyfile and just hangs on starting array.

 

Also just for anyone else looking at this later the emcmd cmdStart=Start command only works on version 6.10 or later based on someone else's comment.

  • 2 months later...
On 2/25/2024 at 8:49 PM, JordanWr said:

I am trying to start an encrypted array from command line. I use a passphrase for decryption and using the GUI can enter it and start the array.  I am currently tring to start the array via CLI using

 

emcmd cmdStart=Start

 

The only place I saw to place the passphrase was in /root/keyfile. I am doing so before trying to start the array using

echo -n "passphrase here" > /root/keyfile

 

This does not seem to work. What am I doing wrong? Is there a different place I need to put the keyfile or a different format?

 

 

Where do I Put the command? I only have a Passphrase, too. Do I have to create a Text File for this?

  • 2 weeks later...

You can pass the passphrase to emcmd, but it's a little more complicated:

 

emcmd "cmdStart=Start&startState=STOPPED&luksKey=key"

 

Where "key" is your passphrase, first base64 encoded, then URL encoded.

Edited by EDACerton

  • 2 years later...
On 5/15/2024 at 11:56 PM, EDACerton said:

You can pass the passphrase to emcmd, but it's a little more complicated:

 

emcmd "cmdStart=Start&startState=STOPPED&luksKey=key"

 

Where "key" is your passphrase, first base64 encoded, then URL encoded.

What does URL encoded mean?

  • Community Expert

I'm going to be real here, if you can't even help yourself by searching for unknown terms on google etc, are you really ready to do advanced tasks like working with your encrypted array data from the CLI ?

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...

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.