I think that I have found an improved solution.
The warning is due because the device /dev/mapper/cryptswap1 is not ready when the files of /etc/fstab are mounted by the system.
Therefore you have to comment the line
/dev/mapper/cryptswap1 none swap sw 0 0 on /etc/fstab:
- Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=d689d262-2e00-4ad1-aa9c-f99ae98a99de / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
#UUID=c69c46d8-cff1-4d4f-8900-77c4d8da8ea1 none swap sw 0 0
#/dev/mapper/cryptswap1 none swap sw 0 0
The next step is to add a swapon command to the file /etc/rc.local. I suppose that the device will be ready when the file /etc/rc.local is processed.
- Code: Select all
gksudo gedit /etc/rc.local
Add the command swapon /dev/mapper/cryptswap1
- Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
swapon /dev/mapper/cryptswap1
exit 0
Save & Exit.
Reboot the computer.
Finally check the swap with this command:
- Code: Select all
swapon -s
I hope that this procedure will fix the bug.