This project has moved and is read-only. For the latest updates, please go here.

Veracrypt 1.17 has issues mounting partition when conflicting with USB device

Topics: Technical Issues
Mar 19, 2016 at 9:04 AM
Edited Mar 19, 2016 at 9:05 AM
An interesting observation today:

Originally found on vc 1.16 which caused this issue and I upgraded to 1.17 hoping it was solved, which wasn't the case :(

If I insert a USB device into the PC (skylake Gigabyte motherboard, Mint 17.3 xfce) , then after the USB has properly detected I try to mount the vc partition from the command line I get a failed mount point.
Trying the same from the GUI does not give any errors and the partition mounts properly.

Here's my investigation so far in the terminal output below. Definitely some conflict with the USB memory stick, because if I reboot and mount the vc partition first using the same command then no problems. I can insert the USB st this stage and both are happy.
I verified this behavior twice in each instant and it is consistent

Any suggestions? Did I find a bug?


kenslpc ~ # veracrypt --text --keyfiles="" --protect-hidden=no --pim=0 --mount /dev/disk/by-id/ata-ST2000DL003-9VT166_5YD52Z3M-part1 /mnt/z
Enter password for /dev/disk/by-id/ata-ST2000DL003-9VT166_5YD52Z3M-part1:
Error: No such process:
/tmp/.veracrypt_aux_mnt1/control

VeraCrypt::FilesystemPath::GetType:45



kenslpc ~ # veracrypt --text --list
1: /dev/disk/by-id/ata-ST2000DL003-9VT166_5YD52Z3M-part1 - -
kenslpc ~ #
kenslpc ~ #


kenslpc ~ # cd /dev/disk/by-id/
kenslpc by-id # ls -l
total 0
lrwxrwxrwx 1 root root 9 Mar 19 20:40 ata-INTEL_SSDSC2BP240G4_BTJR512402BE240AGN -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 19 20:40 ata-INTEL_SSDSC2BP240G4_BTJR512402BE240AGN-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Mar 19 20:40 ata-INTEL_SSDSC2BP240G4_BTJR512402BE240AGN-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Mar 19 20:40 ata-INTEL_SSDSC2BP240G4_BTJR512402BE240AGN-part5 -> ../../sdd5
lrwxrwxrwx 1 root root 9 Mar 19 20:40 ata-ST2000DL003-9VT166_5YD52Z3M -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 19 20:41 ata-ST2000DL003-9VT166_5YD52Z3M-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 ata-WDC_WD40EZRX-00SPEB0_WD-WCC4E4LHUKPF -> ../../sdf
lrwxrwxrwx 1 root root 10 Mar 19 20:40 ata-WDC_WD40EZRX-00SPEB0_WD-WCC4E4LHUKPF-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 ata-WDC_WD40EZRX-00SPEB0_WD-WCC4EJCK7XCJ -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 19 20:40 ata-WDC_WD40EZRX-00SPEB0_WD-WCC4EJCK7XCJ-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 ata-WDC_WD40EZRZ-00WN9B0_WD-WCC4E1TJ1TLR -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 19 20:40 ata-WDC_WD40EZRZ-00WN9B0_WD-WCC4E1TJ1TLR-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 ata-WDC_WD40EZRZ-00WN9B0_WD-WCC4E1TJ1U7F -> ../../sde
lrwxrwxrwx 1 root root 10 Mar 19 20:40 ata-WDC_WD40EZRZ-00WN9B0_WD-WCC4E1TJ1U7F-part1 -> ../../sde1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 md-name-kenslpc:0 -> ../../md0
lrwxrwxrwx 1 root root 9 Mar 19 20:40 md-uuid-4248ab58:3f9e700b:4368d894:af848dab -> ../../md0
lrwxrwxrwx 1 root root 9 Mar 19 20:40 usb-Kingston_DataTraveler_3.0_D850E64A7E9DEEA15979004F-0:0 -> ../../sdg
lrwxrwxrwx 1 root root 10 Mar 19 20:40 usb-Kingston_DataTraveler_3.0_D850E64A7E9DEEA15979004F-0:0-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 wwn-0x5000c5003d50db36 -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 19 20:41 wwn-0x5000c5003d50db36-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 wwn-0x50014ee261a5582a -> ../../sdf
lrwxrwxrwx 1 root root 10 Mar 19 20:40 wwn-0x50014ee261a5582a-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 wwn-0x50014ee261fa3ce2 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 19 20:40 wwn-0x50014ee261fa3ce2-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 wwn-0x50014ee2b5ab14c8 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 19 20:40 wwn-0x50014ee2b5ab14c8-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 wwn-0x50014ee2b74fdff4 -> ../../sde
lrwxrwxrwx 1 root root 10 Mar 19 20:40 wwn-0x50014ee2b74fdff4-part1 -> ../../sde1
lrwxrwxrwx 1 root root 9 Mar 19 20:40 wwn-0x55cd2e404b7b6e2e -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 19 20:40 wwn-0x55cd2e404b7b6e2e-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Mar 19 20:40 wwn-0x55cd2e404b7b6e2e-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Mar 19 20:40 wwn-0x55cd2e404b7b6e2e-part5 -> ../../sdd5
kenslpc by-id #
kenslpc by-id #
kenslpc by-id #
kenslpc by-id # mount
/dev/sdd1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/md0 on /mnt/raid type ext4 (rw,nosuid,nodev,_netdev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=ken)
/dev/sdg1 on /media/ken/128Gb-USB3 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
veracrypt on /tmp/.veracrypt_aux_mnt1 type fuse.veracrypt (rw,nosuid,nodev,allow_other)
kenslpc by-id #
kenslpc by-id #
kenslpc by-id #


Trying again, verbose output:

kenslpc by-id # veracrypt --text --keyfiles="" --protect-hidden=no --verbose --pim=0 --mount /dev/disk/by-id/ata-ST2000DL003-9VT166_5YD52Z3M-part1 /mnt/z
Enter password for /dev/disk/by-id/ata-ST2000DL003-9VT166_5YD52Z3M-part1:
Error: No such process:
/tmp/.veracrypt_aux_mnt1/control

VeraCrypt::FilesystemPath::GetType:45
kenslpc by-id #


kenslpc by-id # veracrypt --text --list
1: /dev/disk/by-id/ata-ST2000DL003-9VT166_5YD52Z3M-part1 - -
kenslpc by-id #