could not mount /dev/mapper/cryptswap1

In your /etc/fstab file, the /dev/mapper/cryptswap1 entry is there, which is why Ubuntu tries to mount it on boot. If you don't use encrypted partitions, that line shouldn't be there. For some reason the line created by the Ubuntu installer got commented out too. So just change (in /etc/fstab):

# swap was on /dev/sda5 during installation
#UUID=fe10641d-a928-479e-ab3a-b0706b97b601 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

to

# swap was on /dev/sda5 during installation
UUID=fe10641d-a928-479e-ab3a-b0706b97b601 none            swap    sw              0       0

IMPORTANT: Before you restart, make sure you check that fe10641d-a928-479e-ab3a-b0706b97b601 is actually /dev/sda5 by running:

ls -l /dev/disk/by-uuid/fe10641d-a928-479e-ab3a-b0706b97b601

It should say something like:

lrwxrwxrwx 1 root root 10 2011-08-16 08:28 /dev/disk/by-uuid/fe10641d-a928-479e-ab3a-b0706b97b601 -> ../../sda5

The sda5 part at the end is the important part. Once you are sure the UUID matches the partition number, run sudo fdisk -l /dev/sda and make sure that /dev/sda5 is a swap partition.

Then just restart and that's it :) Hope this helps.


Like Chen Xiao-Long discribed in his answer, you have to remove "cryptswap" line in /etc/fstab. Then you uncomment previously commented swap line so end of file looks like that:

# swap was on /dev/sda5 during installation
UUID=fe10641d-a928-479e-ab3a-b0706b97b601 none            swap    sw              0       0

To verify UUID and filesystem type (with cleaned cache), run:

~$ sudo blkid /dev/sda5 -c /dev/null

To try your new configuration immediately you have to reload /etc/fstab:

~$ sudo mount -a

Apart from that I have no idea why an (release?) upgrade causes this error.


Old version:

Request:

  • /etc/crypttab

  • ls -l /dev/mapper

  • lvscan (only LVM)

  • fdisk -l

  • cat /proc/swaps

  • why is your UUID line of swap partition commented?

  • is UUID output of blkid command same as in /etc/fstab (or is that all output of blkid)?

Temporay fix:

To suppress this message on boot you can add mount option "nobootwait" or comment line in /etc/fstab.