Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

crypttab and veracrypt: How to keep on ask for password until unlocking successful

$
0
0

I want to mount a Veracrypt partition /dev/sdb4 on boot so I followed this guide, which adds a line in crypttab ordering the block device to be unlocked and a line in fstab mounting that unlocked volume.

This does work, and I am able to mount my devices, provided I type the correct password. However, typing the wrong password will cause an error to appear in the log, but will not ask for a follow-up ever again. The splash screen won't tell either if the password I inputted is correct, thus I wouldn't realize that my partition has been mounted properly until after logging in and checking them.

I tried adding and removing the nofail option in crypttab and fstab (which admittedly I don't really understand what it does using the manpages), but to no avail.

/etc/crypttab:

swap_crypt /dev/sdb3 /dev/urandom cipher=aes-xts-plain64,size=256,swap,discardvc_shared /dev/sdb4 none tcrypt-veracrypt,tries=0

/etc/fstab (UUID's have been removed):

# / was on /dev/sdb2 during installationUUID=(redacted) /               ext4    errors=remount-ro 0       1# /boot/efi was on /dev/sda1 during installationUUID=(redacted)  /boot/efi       vfat    umask=0077      0       1# swap was on /dev/sdb3 during installation#UUID=(redacted) none            swap    sw              0       0# Change to swap_crypt (see /etc/crypttab)/dev/mapper/swap_crypt none swap sw 0 0/dev/mapper/vc_shared /media/shared auto nosuid,nodev 0 0

/var/log/boot.log when I type the wrong password (some lines removed):

/dev/sdb2: clean, 224394/7503872 files, 2260238/30000128 blocks[FAILED] Failed to start Cryptography Setup for vc_shared.[DEPEND] Dependency failed for Local Encrypted Volumes.[DEPEND] Dependency failed for /dev/mapper/vc_shared.[DEPEND] Dependency failed for /media/shared.[DEPEND] Dependency failed for Local File Systems.[  OK  ] Finished Tell Plymouth To Write Out Runtime Data.[  OK  ] Finished Set console font and keymap.[  OK  ] Finished Create Volatile Files and Directories.         Starting Network Name Resolution...         Starting Network Time Synchronization...         Starting Update UTMP about System Boot/Shutdown...[  OK  ] Finished Update UTMP about System Boot/Shutdown.[  OK  ] Started Network Time Synchronization./* lines regarding other services removed to minimize space */

Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>