2

I want to mount automatically, at startup, a veracrypt partition. But the problem is that I can't mount it by the command line, 'cause, when I type this command:

# veracrypt -t --non-interactive -p some-password /dev/sdaX /media/veracrypt1/

I get the fallowing output:

Operation failed due to one or more of the following:
- Incorrect password.
- Incorrect Volume PIM number.
- Incorrect PRF (hash).
- Not a valid volume.

Enter password for /dev/sdaX: 

and I have to put the password again, but this time, it mounts the partition.

So I need to mount it from the command line so I can set a script to mount it automatically at startup.

1
  • Have you tried expect ?
    – Raja G
    Jan 10, 2019 at 7:04

1 Answer 1

1

In such cases usually the problem is caused by the special characters used within the password. So probably you need to quote the password:

... -p 'some-password' ...

or

... -p'some-password' ...
1
  • You are welcome, @Bob91!
    – pa4080
    Jan 12, 2019 at 11:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .