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"