Results 1 to 8 of 8

Thread: how to tell if swap is in use AND encrypted

Threaded View

  1. #1
    Join Date
    Sep 2007
    Beans
    21

    how to tell if swap is in use AND encrypted

    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.

    Code:
    #free
                 total       used       free     shared    buffers     cached
    Mem:       3013268    1894392    1118876          0      56400     663808
    -/+ buffers/cache:    1174184    1839084
    Swap:      3076092      24404    3051688
    Code:
    #swapon -s
    Filename				Type		Size	Used	Priority
    /dev/mapper/cryptswap1                  partition	3076092	24404	-1
    Code:
    # 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)
    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.


    Code:
    #df -h
    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
    Code:
    #cat /etc/fstab
    # /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
    Last edited by techiebiker; March 5th, 2013 at 02:31 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •