I have a single extra HardDrive encrypted with VeraCrypt in Ubuntu Gnome 16.04.
I'd like to use it to store my Documents, Photos etc, but I can't easily redirect the home links if the drive is not mounted at startup.
The command to mount it normally would be:
veracrypt --mount /dev/sda1
Typically this brings up a GUI but I think if without one it would let me input the password in the terminal.
Is there anyway I can do this during boot? I've so far attempting putting the line in /etc/rc.local
as another website suggested but it did not work :(
If it's relevant, i'm currently booting without the splash screen due to another issue I had with inputting the password to unlock /
Thanks.
The simple thing I've been doing for 5 years now is to simple load it in my ~/.profile
. However, since I don't want remount when already mounted, I check if a directory in the mount is present.
if [ ! -d "/media/Data/some_folder" ]; then
veracrypt /dev/sda7 /media/Data
fi
You're probably better off finding something better, but this could work for now. I'd also encourage you to add truecrypt/veracrypt into your sudoers list so you don't have to enter your root password as well. See here: https://askubuntu.com/a/940972/400549
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments