You are not logged in.

#1 2016-08-03 10:52:44

Texus
Member
Registered: 2015-10-01
Posts: 5

Encrypted swap does not mount

Hi...

I just installed BL on my old Thinkpad W510. The partitioning scheme is:

  1. sda5: /boot

  2. sda6: encrypted swap

  3. sda7: encrypted root

  4. sda8: encrypted /home

The first time I booted BL, everything worked well. But after the first reboot after running bl-welcome, the system gets into a 90 second loop at swap with the message:

A start job is running for dev-mapper-sda6_crypt.device

It then proceed to boot anyway, but without mounting swap. I searched on multiple forums, but could not find any obvious solution. The fstab and crypttab outputs are below. Any pointers would be highly appreciated.

# /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>
/dev/mapper/sda7_crypt /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda5 during installation
UUID=210cfba3-6e33-49c6-9b9f-ba781580116c /boot           ext4    defaults        0       2
/dev/mapper/sda8_crypt /home           ext4    defaults        0       2
/dev/mapper/sda6_crypt none            swap    sw              0       0
sda6_crypt UUID=bdf950be-b143-4665-8426-2b80c14923ca none luks,swap
sda7_crypt UUID=4ca3d414-f82e-4688-b532-31d8b4ff36db none luks
sda8_crypt UUID=f731a22b-ceb5-493e-941e-8da9bcc804cb none luks

Offline

#2 2016-08-05 18:40:53

helix169
New Member
Registered: 2016-01-02
Posts: 3

Re: Encrypted swap does not mount

Hi,

did you find already a solution for your problem?
I tried a similar disk configuration like yours here at my home computer (amd64 bunsen)... and it runs, also after reboot.
But, did you really wanted a setup like this?
That way, you have to give in several passwords, each for every encrypted partition.
In this case, I  would prefer setting up an encrypted lvm with the debian/bunsen installer - one password for all volumes. Maybe you can give this a try... found on link here, did you already looked here (?): Debian GNU/Linux on the Thinkpad W510


Debian is like Suse with yast turned off, just better. :)
        -- Goswin Brederlow

Offline

#3 2016-08-07 06:43:29

Texus
Member
Registered: 2015-10-01
Posts: 5

Re: Encrypted swap does not mount

Hi Helix169...

Nope... Didn't find a solution. This setup worked flawlessly with #!, which I had been using since 2009 (2008?). Is there a simple guide to lvm which you use? The link you posted seems to talk mostly about a general setting up, not lvm per se.

Offline

#4 2016-08-07 07:08:28

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: Encrypted swap does not mount

Swap partitions do not get mounted. If the cryptodisk the swap is on has been unlocked properly, swapon -a should make the swap space appear. Can you confirm whether the cryptodisk does not get unlocked at all or whether it is just not enabled (lsblk)?

Offline

#5 2016-08-07 07:17:07

Texus
Member
Registered: 2015-10-01
Posts: 5

Re: Encrypted swap does not mount

It doesn't get unlocked at all.

swapon -a

gives

swapon: stat failed /dev/mapper/sda6_crypt: No such file or directory

The output to lbsblk is:

NAME           MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda              8:0    0 465.8G  0 disk  
├─sda1           8:1    0   1.2G  0 part  
├─sda2           8:2    0  48.8G  0 part  
├─sda3           8:3    0     1K  0 part  
├─sda5           8:5    0   953M  0 part  /boot
├─sda6           8:6    0   7.5G  0 part  
├─sda7           8:7    0  34.9G  0 part  
│ └─sda7_crypt 254:0    0  34.8G  0 crypt /
└─sda8           8:8    0 372.6G  0 part  
  └─sda8_crypt 254:1    0 372.6G  0 crypt /home

Offline

#6 2016-08-07 20:35:53

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Encrypted swap does not mount

So if you run:

sudo swapon -a

then run

swapon -s

does it recognize the sda6 swap?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#7 2016-08-08 03:00:48

Texus
Member
Registered: 2015-10-01
Posts: 5

Re: Encrypted swap does not mount

Nope, nothing. If it helps, there are some dependancy failure messages on the splash screen right after the system gives up on trying to decrypt swap for 90s.

Offline

#8 2016-08-17 14:54:45

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Encrypted swap does not mount

Texus did you ever get this straightened out or solved?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#9 2016-08-23 13:30:52

Texus
Member
Registered: 2015-10-01
Posts: 5

Re: Encrypted swap does not mount

Horizon_Brave.... sorry for the late response. No, I couldn't fix it. The problem is that debian doesn't seem to allow installation with encrypted /root and /home but unencrypted swap. My workaround was to keep a separate sda6, but not identify it as swap during installation. So normally I don't have swap, but when I want the extra memory, I mount with:

sudo swapon /dev/sda6

Offline

Board footer

Powered by FluxBB