Ubuntu system encrypts home and swap

Source: Internet
Author: User
Keywords Ubuntu swap
Tags blocking cat close etc file memory press random

Home, swap encryption, that/TMP run in memory

Use/dev/urandom, not/dev/random, because the/dev/random will start very slowly. (/dev/random must receive enough random factors to work, so it's slow and you have to press the keyboard when you start.) /dev/urandom is non-blocking, although security is a little bit close, but enough. )

$ cat/etc/fstab
#/etc/fstab:static File System information.
#
# <file system> <mount point>&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; <type> <options> <dump> <pass>
PROC/PROC proc Defaults 0 0
/DEV/HDA5/EXT3 Defaults,errors=remount-ro 0 1
/dev/mapper/swap None swap SW 0 0
/dev/mapper/home/home ext3 Defaults 1 2
Tmpfs/tmp Tmpfs defaults,size=1000m 0 0
/dev/hdc/media/cdrom0 udf,iso9660 User,noauto 0 0

$ cat/etc/crypttab
# <target name> <source device> <key file> <options>
Swap/dev/hda3/dev/urandom Swap
Home/dev/hda6 None Luks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.