Ubuntu error: A job is running for dev-mapper-cryptswap1.device

(Thanks to: Ubuntuhak )
If you notice that booting Ubuntu takes a long time and you see the following error message on the booting screen after pressing ‘ESC’,

A job is running for dev-mapper-cryptswap1.device (50s / 1m30s)

This is caused by the system looking for an encrypted swap partition, however most likely you have not created one. Which is normal, now when a lot of RAM is available, and a swap partition is not necessary. This is all due to a misconfiguration entry in the fstab, which tells the system to try and mount the said (non existing) partition.

Solution

The solution is to remove or comment out the “cryptswap” entries from /etc/fstab and /etc/crypttab.
This can be done easily by editing the above mentioned files as commenting out the lines that say cryptswap by placing a “#” in front of the matching lines.

sudo nano /etc/fstab
sudo nano /etc/crypttab

The result is shown below in the image, where the lines referring to the cryptswap partition are already commented out.

Reminder: ‘CTRL + O’ saves the file, ‘CTRL + X’ exits the nano text editor.

Comments

Leave a Reply