Thursday, September 24, 2015

How to fix the "cryptswap1 is not ready yet" error on Ubuntu?

I never paid attention to the error message that, every time I started Ubuntu 14.04, was saying that "The disk drive for /dev/mapper/cryptswap1 is not ready yet or not present".

However, this caused that today I couldn't start the system at all, which is a painful and stressful experience. These are the steps I followed to fix the issue and get Ubuntu back to life.

1) At the GRUB menu, start Ubuntu in recovery mode
2) At the Recovery menu, select "Drop to root shell prompt"
3) Type "sudo swapoff -a" to disable swapping
4) Type "sudo mount -o remount,rw" to have write access to the system files
5) Type "sudo nano -w /etc/crypttab" and put a "#" at the beginning of the line that starts with "cryptswap1". Save the file.
6) Type "sudo nano -w /etc/fstab" and put a "#" at the beginning of the line that starts with "/dev/mapper/cryptswap1". Save the file.
7) Reboot the system. You should be now able to start Ubuntu normally.

1 comment:

  1. Hello , i am facing same issues for ubuntu 14.04 Ltd , following above instructions but not able to save file in step 5 . Kindly advise

    ReplyDelete