Hi. I've recently splashed out on a big fat external hard drive, partly to use for moving data around and partly to use for backing up my internal hard drive.
Because there's a good chance that I might leave the drive plugged in at a friend's house (in it's data moving capacity) I want some way of password-protecting the backup partitions so that nobody can go sneakily riffling through my mirrored personal documents!
I've been following the instructions here:
and now have 3 encrypted partitions and a "clear text" one.
At the moment, I'm relying on running:
# cryptsetup -c aes -h ripemd160 -y -b `blockdev --getsize /dev/sdb5` create bak-sys1 /dev/sdb5
# mount /dev/mapper/bak-sys1
every time I want to mount one of the encrypted partitions to sync the backup!
What I want ideally is some way of adding a config file containing the settings and putting the required data into /etc/fstab so I can simply run
# mount /mnt/bak-sys1
then type the password and have it done.
There seems to be very little generalised documentation out there on this subject - it's all either very outdated or geared towards encrypting your *entire* hard drive - root filesystem et al.
Is there any way of doing this? Even saving the password somehow in the config file wouldn't hurt, because that file would be safe on my home PC, which I consider to be secure.