← Back to team overview

touch-packages team mailing list archive

[Bug 1506139] Re: 15.10beta crashes encrypted swap partition

 

OK, I am back at my home machine: The problem occured again, the machine
destroyed again luks on /dev/sda2.

Furthermore, I have another problem: When doing a regular boot, but boot
process hangs after systemd listed the names of several services (in
most cases networking.service is the last printed, which is not quite
useful, since these are, as I understand it, finished services, not the
once that cause trouble. I did not yet find a way to make that damned
systemd tell what it's doing.

Strange enough, the machine boots without problems if I choose there
recovery mode, choose to aktive network from the menu, and then go on,
so it works when recovery mode is part of the boot chain. I guess Ubuntu
will have lots of fun with that systemd.


sudo blkid (sda2 currently damaged again)

/dev/mapper/sda3_crypt: UUID="9b9831d9-62f5-4fe0-872a-704bd66d5f7f" UUID_SUB="804b8d81-3f2b-4b24-894f-c63a71f3d442" TYPE="btrfs"
/dev/sda1: UUID="19e9998b-814c-4302-8003-f95e0e6a254e" TYPE="ext4" PARTUUID="04582fbe-af7b-4d10-ad4a-6d2277bbf679"
/dev/sda3: UUID="339b9a90-8292-422d-a3cf-eeb0317e9f84" TYPE="crypto_LUKS" PARTUUID="84cfaf1d-9da4-4c6c-bf45-6af03ba7b265"
/dev/sda2: PARTUUID="ab20073f-29c4-42d6-a971-af2cdb2e2339"


swapon -s : no output


/etc/crypttab:

#sda2_crypt UUID=a7976d5c-6191-436d-9cf9-2cedf17d0893 none luks,swap,discard
sda2_crypt /dev/disk/by-id/ata-SanDisk_SDSSDHII480G_***************-part2 none luks,swap,discard
sda3_crypt UUID=339b9a90-8292-422d-a3cf-eeb0317e9f84 none luks,discard

(I've replaced the serial number of my disk with *********)


/etc/fstab
/dev/mapper/sda3_crypt	/	btrfs	defaults,subvol=@	0	1
UUID=19e9998b-814c-4302-8003-f95e0e6a254e	/boot	ext4	defaults	0	2
/dev/mapper/sda3_crypt	/home	btrfs	defaults,subvol=@home	0	2
/dev/mapper/sda2_crypt	none	swap	sw	0	0

.
I'll now repair the partition as described, reboot and come again.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1506139

Title:
  15.10beta crashes encrypted swap partition

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  Hi,

  I'm usually using a setup with three partitions on a disk

  Partition 1:  plain ext4 boot partition mounted on  /boot
  Partition 2:  luks-encrypted swap
  Partition 3: luks-encrypted btrfs for /  /home ...

  both mentioned in /etc/crypttab like

  sda2_crypt UUID=a7976d5c-6191-436d-9cf9-2cedf17d0893 none luks,swap,discard
  sda3_crypt UUID=339b9a90-8292-422d-a3cf-eeb0317e9f84 none luks,discard

  
  With several machines I have installed 15.10 beta on and in several cases I experienced the problem that the swap is not activated at boot time and that /dev/disks/by-uuid does not contain a link to the swap partition, and the previously created luks-encrypted swap is destroyed after boot: It is not a luks partition anymore and filled with random (presumably encrypted) bytes without structure. 

  I first thought that this is a problem of the setup process, and
  repaired the swap manually. But then I found the partition destroyed
  again. This happend several times on several machines.

  I am not sure yet what exactly would destroy the partition.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: cryptsetup 2:1.6.6-5ubuntu2
  ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
  Uname: Linux 4.2.0-16-generic x86_64
  ApportVersion: 2.19.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: XFCE
  Date: Wed Oct 14 18:12:58 2015
  InstallationDate: Installed on 2015-10-08 (5 days ago)
  InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150924)
  SourcePackage: cryptsetup
  UpgradeStatus: No upgrade log present (probably fresh install)
  crypttab:
   sda2_crypt UUID=a7976d5c-6191-436d-9cf9-2cedf17d0893 none luks,swap,discard
   sda3_crypt UUID=339b9a90-8292-422d-a3cf-eeb0317e9f84 none luks,discard

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