Mounting Encrypted VeraCrypt Drive during Boot

Hugo

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.

Mario Olivio Flores

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

mounting veracrypt partition on boot

From Dev

Edit a veracrypt encrypted drive from linux?

From Dev

Accessing encrypted boot drive as extra drive

From Dev

How to clone entire VeraCrypt encrypted system drive and mount it later on Windows 10 to copy selected files?

From Dev

Mounting USB drive at boot up on a virtualized instance of fedora

From Dev

Mounting Encrypted Softraid on OpenBSD

From Dev

How to rename volume group of an encrypted boot drive and have it still boot?

From Dev

Windows 10 V1511 - Mounting External Encrypted Drive Error "The parameter is incorrect"

From Dev

Accessing one encrypted boot drive from another in 18.04

From Dev

SSH to decrypt encrypted LVM during headless server boot?

From Dev

Decrypt second encrypted LVM during headless server boot?

From Dev

Encrypted Home directory not auto mounting

From Dev

Encrypted Home directory not auto mounting

From Dev

Mounting USB drive that is not recognized

From Dev

Linux Drive Mounting

From Dev

Mounting network drive fstab

From Dev

Mounting a hard drive (beginner)

From Dev

Error mounting disk drive

From Dev

Help mounting an external drive

From Dev

After mounting new hard drive, Ubuntu won't boot, only presents grey screen

From Dev

What causes permission to be denied for mounting rootfs, home, messeage queue, kernel file system, during boot?

From Dev

What causes permission to be denied for mounting rootfs, home, messeage queue, kernel file system, during boot?

From Dev

How can I open a veracrypt volume without mounting it? (Ubuntu 16.04)

From Dev

Veracrypt 1.24 cannot be used anymore for mounting volumes as normal user

From Dev

iSCSI not mounting at boot

From Dev

Mounting NFS synchronously on boot

From Dev

Mounting an SMB drive via AppleScript

From Dev

Mounting a USB external drive question

From Dev

Plug in hard drive without mounting

Related Related

  1. 1

    mounting veracrypt partition on boot

  2. 2

    Edit a veracrypt encrypted drive from linux?

  3. 3

    Accessing encrypted boot drive as extra drive

  4. 4

    How to clone entire VeraCrypt encrypted system drive and mount it later on Windows 10 to copy selected files?

  5. 5

    Mounting USB drive at boot up on a virtualized instance of fedora

  6. 6

    Mounting Encrypted Softraid on OpenBSD

  7. 7

    How to rename volume group of an encrypted boot drive and have it still boot?

  8. 8

    Windows 10 V1511 - Mounting External Encrypted Drive Error "The parameter is incorrect"

  9. 9

    Accessing one encrypted boot drive from another in 18.04

  10. 10

    SSH to decrypt encrypted LVM during headless server boot?

  11. 11

    Decrypt second encrypted LVM during headless server boot?

  12. 12

    Encrypted Home directory not auto mounting

  13. 13

    Encrypted Home directory not auto mounting

  14. 14

    Mounting USB drive that is not recognized

  15. 15

    Linux Drive Mounting

  16. 16

    Mounting network drive fstab

  17. 17

    Mounting a hard drive (beginner)

  18. 18

    Error mounting disk drive

  19. 19

    Help mounting an external drive

  20. 20

    After mounting new hard drive, Ubuntu won't boot, only presents grey screen

  21. 21

    What causes permission to be denied for mounting rootfs, home, messeage queue, kernel file system, during boot?

  22. 22

    What causes permission to be denied for mounting rootfs, home, messeage queue, kernel file system, during boot?

  23. 23

    How can I open a veracrypt volume without mounting it? (Ubuntu 16.04)

  24. 24

    Veracrypt 1.24 cannot be used anymore for mounting volumes as normal user

  25. 25

    iSCSI not mounting at boot

  26. 26

    Mounting NFS synchronously on boot

  27. 27

    Mounting an SMB drive via AppleScript

  28. 28

    Mounting a USB external drive question

  29. 29

    Plug in hard drive without mounting

HotTag

Archive