February 25, 20242 yr 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?
March 2, 20242 yr 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.
May 7, 20242 yr 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?
May 16, 20242 yr 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 May 16, 20242 yr by EDACerton
May 27May 27 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?
May 27May 27 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.