Results 1 to 1 of 1

Thread: Encrypted swap partition on removeable device

  1. #1
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    4,402
    Distro
    Lubuntu 16.04 Xenial Xerus

    Question Encrypted swap partition on removeable device

    If installing Ubuntu (in this case 11.04) on a removable USB hard drive with an encrypted home folder, it (correctly) encrypts the swap partition.

    However, if the swap is on (say) the first partition, it could -- depending on the computer you are booting from and whether or not other devices are plugged in -- be any of /dev/sdb1, /dev/sdc1, /dev/sdd1, ...

    But the entry in /etc/crypttab gives the device as /dev/sdd1 (on my setup, anyway).
    Code:
    cryptswap1  /dev/sdd1  /dev/urandom  swap,cipher=aes-cbc-essiv:sha256
    I need crypttab to be more flexible. Is it possible, e.g. to use UUID? (I am not sure if an encrypted partition can have a UUID.)

    EDIT: I have just discovered that using an encrypted partition on a removable device can lead to catastrophic data loss if you do not carefully adjust the booting sequence as described in Arch Linux's wiki. Oops!

    I still do not know how to get the UUID from an encrypted partition.
    Last edited by Paddy Landau; October 16th, 2011 at 12:56 AM.
    Full system encryption with dual-boot —— Full Circle Magazine —— Problems with WINE?
    In my day, we had the outdoors in which to run, play, and socialise. Now people use computers for that.

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
  •