In my previous post I showed an automount script for mounting a LUKS encrypted disk image as a loop device. The script was designed to always mount the same loop device, e.g. /dev/loop0
. This prevented it from being able to mount multiple disk images, so with some tweaks I refined the script to use any available loop device and thus support multiple disk images.
In my previous post, I detailed how I set up an LUKS-encrypted filesystem on a loop device (a.k.a. sparse disk image file). To make automated backups easier and not have to add commands in my backup script to handle the mounting and unmounting of the disk image, I set up automount
to:
/cifs
directory/encrypted
directoryI purchased the LaCie NAS for backups of the various computers running around at home: a Mac desktop, a Mac laptop, and a Linux server. For the Macs they can just use Time Machine to backup to the NAS, which broadcasts itself as a Time Machine-capable server. For the Linux server, however, it's not so simple.
A little while ago I bought a LaCie 2big Network server to use for backups and storage. The drive is simple to use, but lacks the ability for the internal hard drives to "sleep" -- that is, spin down when not in use after a period of time. That's pretty annoying because the drive makes noise and wastes power while running, keeping the disks spinning. I decided I had to figure out a way to tame this little server.