Monthly Archives: August 2011
August 22, 2011Posted by on
- mknod created a new device.
- -m660 sets the mode to 660 for the filesystem.
- /dev/loop8 specifies the device to create.
- b sets the device as a block device.
- 7 and 8 are major and minor device numbers.
So this creates on a standard Linux the eighth loopback device.
mknod -m660 /dev/loop8 b 7 8 chown root.disk /dev/loop8 chmod 666 /dev/loop8
August 1, 2011Posted by on
- Make sure you have the required modules in the kernel. Use ‘modprobe cryptoloop’ and ‘modprobe aes’.
- Create empty 100MB file image named MyImage.img with ‘dd if=/dev/urandom of=MyImage.img bs=1M count=100’. Be warned, this my take some minutes.
- ‘losetup -e aes /dev/loop0 MyImage.img’ connects your image to loop0.
- You have to enter your new password now.
- With ‘mkfs -t ext2 /dev/loop0’ formats your new ‘drive’.
- ‘mount /dev/loop0’ and
- ‘mount -o loop,encryption=aes MyImage.img /mysafe’ mount your new document safe to /mysafe. You might need to create /mysafe before that.