Skip to main content

Posts

Showing posts from October, 2009

encrypt directory

I wanted to encrypt some personal directories I have on my laptop. I have an encrypted directory: jan@eee901:~/Documents$ ls /home/jan/.encrypted/ 4g1Vb4HRZTsVFGXkeqcIsv3q JgpUH0yio4s6r6QuYYyNEKQVUoXKU1j937UTbHa1YOgQK, qoSuRuAL7FFdp49ZL2J9UgZp My destination directory /home/jan/Documents/encrypted is empty after a new boot. Now I can mount with: encfs /home/jan/.encrypted /home/jan/Documents/encrypted an@eee901:~/Documents$ encfs /home/jan/.encrypted /home/jan/Documents/encrypted EncFS Password: jan@eee901:~/Documents$ ls encrypted/ addresses To umount: fusermount -u /home/jan/Documents/encrypted When you run the command for the first time, it will ask you to set password.

Using sdhc card from boot

My Eee PC 901 runs Ubuntu. I have no hard disk, but just an internal sd card, and an additional inserted sdhc card in the sd card slot. I wanted to have all my /home stuff on the external card, so that in case of crash, I can just buy a new card. The internal card is more difficult to replace, so I want to use the external card for whatever possible. As the ext card has my /home directory, I need it to be available on boot. With lsusb I found the details of my card, and then added an udev rule jan@eee901:~/svn/hydra_test$ more /etc/udev/rules.d/01-jankester.rules #ID_SERIAL_SHORT=058F63356336 #ID_FS_UUID=dd4cb63c-0329-4dc6-8ca8-c2e68b9d233e BUS=="usb", KERNEL=="sd*", SYSFS{serial}=="058F63356336", NAME="SDHC", OPTIONS+="last_rule", RUN+="/bin/mount /dev/SDHC" Now I added entry in fstab: /dev/SDHC /home ext3 defaults,noatime 0