Protecting Data with Encrypted Linux Partitions Part 2 - page 3
Using the UUID in /etc/fstab
While most Linux distributions have a default udev configuration that nails down the /dev names of internal drives, it doesn't hurt to make extra sure by using the UUID instead. So the /etc/fstab entry for our encrypted partition would look like this:
UUID=1c390791-bd8a-4655-b722-6d0bcbbdf547 /home/carla/crypted ext3 users,atime,noauto,rw,dev,exec,suid 0 0
Note that all of that should be on a single line with no carriage returns or line breaks.
Where do you find the UUID? With the vol_id command:
# vol_id -u /dev/sda2 1c390791-bd8a-4655-b722-6d0bcbbdf547
- Skip Ahead
- 1. Adding Your Own Back Door
- 2. Query Commands
- 3. Using the UUID in /etc/fstab
- 4. Mounting Your Encrypted Partition At Boot On Debian
- 5. Giving Users Limited Rootly Powers, Other Boot Methods
- 6. Encrypt a USB Key
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.