I had disk trouble, imaged / partition (/ included all mount points), installed new larger disk, restored / image and didn't set up swap partition.
Have since set up swap and believe it is in use. I want to know how to tell for certain if swap is encrypted?
I used the following commands to get system information. They show swap in use but I can only infer that it is encrypted. If this confirms swap is encrypted will someone please explain why. If its not encrypted or can't tell please let me know what steps to encrypt and/or confirm encrypted swap.
total used free shared buffers cached
Mem: 3013268 1894392 1118876 0 56400 663808
-/+ buffers/cache: 1174184 1839084
Swap: 3076092 24404 3051688
Filename Type Size Used Priority
/dev/mapper/cryptswap1 partition 3076092 24404 -1
Given that mount shows /home/name/.Private as type ecryptfs I'm thinking there should be some way to get similar confirmation of that swap is encrypted.
# mount | column -t | grep -e "/dev\|crypt"
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
/home/name/.Private on /home/name type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=xxxxx,ecryptfs_fnek_sig=zzzzz)
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 340G 144G 180G 45% /
udev 1.5G 8.0K 1.5G 1% /dev
tmpfs 589M 868K 588M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.5G 480K 1.5G 1% /run/shm
none 100M 28K 100M 1% /run/user
/home/name/.Private 340G 144G 180G 45% /home/name
# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext4 errors=remount-ro 0 1
/dev/mapper/cryptswap1 none swap sw 0 0