Score:1

Cryptsetup "Warning" that shows up on boot

pg flag
ItM

I'm getting this warning every time my computer boots up and the encryption password screen shows up:

crytsetup: WARNING: cryptdata: Ignoring unknown option 'nofail'

Is there a way to disable it, or "fix" it?

My system uses Kubuntu 21.04 with the 5.11.0-25-generic kernel, and is encrypted (using lvm/crypt).

Thank you!

in flag
This option is most likely found in your `/etc/fstab` file for the encrypted volume. There is no harm in leaving it in place, as your system is simply ignoring the invalid option, but you *should* be able to remove it from `/etc/fstab` without any consequences.
24601 avatar
in flag
might be best initially just to `#` the line out rather than remove it entirely until you're certain it is of no consequence.
ItM avatar
pg flag
ItM
Here is my `/etc/fstab` file. I don't see any option there. `# <file system> <mount point> <type> <options> <dump> <pass> UUID=xxx / ext4 errors=remount-ro 0 1 UUID=xxx /boot ext4 defaults 0 2 UUID=xxx /boot/efi vfat umask=0077 0 1 /dev/mapper/vgkubuntu-swap_1 none swap sw 0 0`
Score:0
st flag

I managed to remove the warning by deleting nofail from

/etc/crypttab 

and then running

update-initramfs -u
Score:0
pg flag
ItM

I ended up just commenting out that WARNING line in here:

/usr/lib/cryptsetup/functions

Then ran:

update-initramfs -u

Not the best solution, but the only one that works so far.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.