Warning during update: cryptsetup: WARNING: failed to detect canonical device of /dev/sda1

Preamble: Few years back I dropped my laptop, it subsequently failed to mount the sda1 disk. I recovered it mounting it with a live usb ubuntu distro. Ever since, my laptop has never been as smooth anymore.

Q: I am getting this warning message during update:

cryptsetup: WARNING: failed to detect canonical device of /dev/sda1

a view at /etc/fstab and /etc/crypttab shows:

$ cat /etc/fstab
# /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
/dev/sda1       /               ext4    errors=remount-ro,user_xattr 0       1
/dev/sda5       none            swap    sw              0       0

and

$ cat /etc/crypttab
# <target name> <source device>     <key file>  <options>

I am on ubuntu 14.04 LTS, uname -a shows

$ uname -a
Linux alessio-laptop 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:59 UTC 2016 i686 i686 i686 GNU/Linux

I have been looking at other posts, but I am concerned with the errors=remount-ro and none tags in the fstab file. I am also pretty sure my disks are not encrypted.

Is this affecting the performance of my system, or even causing bigger errors? How could I fix it?


Solution 1:

errors-remount-ro means that if errors are encountered the partition will be mounted read-only in order to avoid damage so you'll have the opportunity to fix the problems. This usually happens when there are hard disk problems. Don't change this setting. I have done this once and it turned out to be a pretty bad idea.

none means in your situation 'no mount point'. So /dev/sda5 which is your swap file as indicated in the column 'type' is not mounted at all and the system is not using it. If your system is low on memory this might affect the performance otherwise you wouldn't probably notice it.