[Bug 1303002] Re: [trusty] Swap partition not set up correctly

Linux Lover 1303002 at bugs.launchpad.net
Sat Jun 21 21:03:43 UTC 2014


*** This bug is a duplicate of bug 953875 ***
    https://bugs.launchpad.net/bugs/953875

** This bug has been marked a duplicate of bug 953875
   Encrypted swap no longer mounted at bootup

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1303002

Title:
  [trusty] Swap partition not set up correctly

Status in “ubiquity” package in Ubuntu:
  Confirmed

Bug description:
  I think I found a bug with the creation of the swap, here is what I
  did

  sda1 was kept as EFI
  sda2 created as ext2 mount to /boot
  sda3 created as swap
  sda4 created as btrfs

  I selected "Encrypt my home"
  Installation went fine.

  After reboot and logon I asked myself if SWAP was encrypted as I only
  selected swap, after I found out that when I create a dmcrypt volume I
  could not select a random key, which I would like to have for swap.

  To my satisfaction crypttab was already set up!

  mfl at devore:~$ cat /etc/crypttab 
  cryptswap1 UUID=5300177f-d9c4-4d71-9039-b65273ce9917 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

  BUT: top shows, that there is no swap enabled:
  top - 12:01:57 up 19 min,  5 users,  load average: 0,03, 0,07, 0,06
  Tasks: 212 total,   1 running, 210 sleeping,   0 stopped,   1 zombie
  %Cpu(s):  1,2 us,  0,6 sy,  0,9 ni, 97,0 id,  0,2 wa,  0,0 hi,  0,0 si,  0,0 st
  KiB Mem:  10120340 total,  2343864 used,  7776476 free,     1856 buffers
  KiB Swap:        0 total,        0 used,        0 free.  1625312 cached Mem

  weird!

  mfl at devore:~$ sudo /etc/init.d/cryptdisks restart
  [sudo] password for mfl: 
   * Stopping remaining crypto disks...                                                                                                                                                      * cryptswap1 (stopped)...                                                                                                                                                         [ OK ] 
   * Starting remaining crypto disks...                                                                                                                                                      * cryptswap1 (skipped, device /dev/disk/by-uuid/5300177f-d9c4-4d71-9039-b65273ce9917 does not exist)...                                                                           [fail] 
                                                                                                                                                                                     [ OK ]

  mfl at devore:~$ ls -la /dev/disk/by-uuid/
  total 0
  drwxr-xr-x 2 root root 100 Apr  5 11:42 .
  drwxr-xr-x 5 root root 100 Apr  5 11:42 ..
  lrwxrwxrwx 1 root root  10 Apr  5 11:42 3beb9864-e87b-4a61-a06d-fd351038b37d -> ../../sda4
  lrwxrwxrwx 1 root root  10 Apr  5 11:42 45461e04-02c4-481b-9d6c-efa214490de1 -> ../../sda2
  lrwxrwxrwx 1 root root  10 Apr  5 11:42 6B91-2F53 -> ../../sda1

  Okay, partition missing? Weird! Check parted...

  mfl at devore:~$ sudo parted /dev/sda print all
  Model: ATA TOSHIBA THNSNH25 (scsi)
  Disk /dev/sda: 256GB
  Sector size (logical/physical): 512B/512B
  Partition Table: gpt

  Number  Start   End     Size    File system  Name  Flags
   1      1049kB  512MB   511MB   fat32              boot
   2      512MB   1024MB  512MB   ext2
   3      1024MB  6024MB  5000MB
   4      6024MB  256GB   250GB   btrfs

  sda3 happens to be there, but not found by UUID with which it was set
  up by the installer.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1303002/+subscriptions



More information about the foundations-bugs mailing list