Results 1 to 3 of 3

Thread: Automatically unlock encrypted HDD

  1. #1
    Join Date
    Apr 2012
    Location
    Oakville, Ontario, Canada
    Beans
    160
    Distro
    Ubuntu 13.04 Raring Ringtail

    Automatically unlock encrypted HDD

    I was wondering how to automatically mount my encrypted HDD. I'm using Ubuntu 13.04 and my machine has an encrypted SSD (which is what it boots from) and then an encrypted 1TB HDD for storage. Basically I want to unlock both drives when entering my password to boot the machine (I have automatic login enabled as I'm the only user of this machine and the initial decryption acts as a login, so I'd rather not have to login twice as it doesn't really make sense). Currently I've set it up so that when I click on the encrypted HDD it unlocks without asking for a password (the password is in the keyring which has no password as it'll always ask for a password if using automatic login) but I want it to unlock the drive automatically. Although this isn't much of an issue if it were just photos or documents I'm storing in there, I use the drive to store my Steam games as well (as the SSD is tiny), and if I open Steam but forget to unlock the drive it (obviously) wont display any of my games. Basically it's just an extra step which should be automated considering my setup. I'll also be storing other programs in there eventually.

    I'm not sure how to do this though. I've looked in the disk management section and it's set to automatically unlock as well as automatically mount it, but it doesn't seem to actually do that.
    Zukaro Travon
    Robotic Fox

  2. #2
    Join Date
    Jan 2007
    Location
    Location: Location:
    Beans
    1,246
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Automatically unlock encrypted HDD

    Someone asked this a while ago http://ubuntuforums.org/showthread.php?t=1129621 his solution makes no sense to me but maybe it will help you. Please let me know!

    "edit: Nevermind; I figured it out myself. After I couldn't get the partition to mount I created a keyfile from /dev/urandom and then used the cryptsetup luksAddKey command to create a second password for the partition using the keyfile I generated. I then referenced the keyfile in /etc/crypttab and it works just fine now. Yay."

    clear && echo paste url and press enter; read paste; (youtube-dl $paste) | zenity --progress --title="" --text "Downloading, please wait" --auto-close --pulsate && ans=$(zenity --file-selection); gnome-terminal -x mplayer "$ans"

  3. #3
    Join Date
    Apr 2012
    Location
    Oakville, Ontario, Canada
    Beans
    160
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Automatically unlock encrypted HDD

    I can't make sense of that. ;^;
    But thanks anyways.
    Zukaro Travon
    Robotic Fox

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •