Linux: use a file as an encrypted partition with losetup

Categories: Linux, Slackware

On my notebook i’ve decided to have a / partition and a cripted home for my user, automagically mounted at boot. That’s what you need to do, after a fresh Slackware 13.1 installation: Create the user: adduser username then the file to mount as home partition: dd if=/dev/zero of=/cryptedfile bs=1k count=5000 load the cryptoloop module: […]