Re: Problems passing the root password to "app-crypt/veracrypt"
Ben Knoble <[email protected]>
| Newsgroups | gmane.linux.gentoo.user |
|---|---|
| Message-ID | <[email protected]> |
> Le 10 août 2026 à 06:37, Dr Rainer Woitok <[email protected]> a écrit : > > Greetings, > > after my last routine Gentoo upgrade Veracrypt failed to mount any of my > encrypted USB sticks. This is not the current version of Veracrypt, but > rather "app-crypt/veracrypt-1.25.9-r2" the [interesting; that version is in ~amd64 but not stable: Git points to a bug by yourself that requested to keep this version around, but it seems making it work was non-trivial.] > last version capable of still > working on my TrueCrypt encrypted USB sticks with NTFS filesystems. It [see note below on dm-crypt, too] Given the unmaintained package and new versions dropping support, I would kindly suggest moving data off that format or finding a maintained tool capable of reading it :) > worked the evening before the upgrade, but now it doesn't anymore: it > asks for the root password, I enter it and Veracrypt just displays the > error message > > mount: /media/veracrypt64: unknown filesystem type 'ntfs3'. > dmesg(1) may have more information after failed mount system call. > > No, this password didn't change and I'm still able to successfully run > > $ sudo echo test > Password: > test > $ > > in a terminal window. Anyway, these were the packages processed (nei- > ther "app-crypt/veracrypt" itself nor any of its dependencies were in- > volved): [snip] > > 2026-08-05T16:38:53 >>> sys-kernel/gentoo-sources 6.18.41 USE: abi_x86_64 amd64 elibc_glibc kernel_linux [snip] > -- END OF UPGRADED PACKAGES LIST -- > > Regarding the mount of the USB stick the syslog file from the day before > the upgrade (where mounting worked as it should) contains these lines: [snip] > 2026-08-04T19:19:29+02:00 (5) sudo[1188767]: rainer : PWD=/home/rainer ; USER=root ; COMMAND=/usr/bin/veracrypt --core-service > 2026-08-04T19:19:29+02:00 (6) sudo[1188767]: pam_unix(sudo:session): session opened for user root(uid=0) by rainer(uid=1000) > 2026-08-04T19:19:30+02:00 (6) sudo[1188767]: pam_unix(sudo:session): session closed for user root > 2026-08-04T19:19:30+02:00 (5) ntfs-3g[1188816]: Version 2026.2.25 integrated FUSE 28 > 2026-08-04T19:19:30+02:00 (5) ntfs-3g[1188816]: Mounted /dev/mapper/veracrypt64 (Read-Write, label "", NTFS 3.1) > 2026-08-04T19:19:30+02:00 (5) ntfs-3g[1188816]: Cmdline options: rw,uid=1000,gid=1000,umask=077,big_writes > 2026-08-04T19:19:30+02:00 (5) ntfs-3g[1188816]: Mount options: allow_other,nonempty,relatime,rw,default_permissions,fsname=/dev/mapper/veracrypt64,blkdev,blksize=4096 > 2026-08-04T19:19:30+02:00 (5) ntfs-3g[1188816]: Global ownership and permissions enforced, configuration type 7 These are the logs missing below, I think. Can you boot your previous kernel, and if so, does it work as expected? Could be an issue with NTFS. The Gentoo wiki for NTFS says you can use either the builtin kernel support or the FUSE driver (NTFS-3G), which is what I think I see here. Beyond that, I would try « mount -t ntfs{3,-3g} » manually and see if either the native driver or the FUSE driver work? Might get some more info out of that. The wiki also suggests app-crypt/dm-crypt can handle TrueCrypt volumes. > > -- END OF BEFORE-UPGRADE SYSLOG -- > > But all syslog files after the upgrade only contain the following lines > regarding the USB stick mount: > > 2026-08-09T12:00:53+02:00 (6) kernel: usb 1-8: new high-speed USB device number 13 using xhci_hcd > 2026-08-09T12:00:53+02:00 (6) kernel: usb 1-8: New USB device found, idVendor=0781, idProduct=5581, bcdDevice= 1.00 > 2026-08-09T12:00:53+02:00 (6) kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > 2026-08-09T12:00:53+02:00 (6) kernel: usb 1-8: Product: SanDisk 3.2Gen1 > 2026-08-09T12:00:53+02:00 (6) kernel: usb 1-8: Manufacturer: USB > 2026-08-09T12:00:53+02:00 (6) kernel: usb 1-8: SerialNumber: 0101268bffab21a95005cfa37c6fa080a1dedd2a11638aac883adf7578f57686fd5c00000000000000000000df7bb6370082060081558107692ab157 > 2026-08-09T12:00:53+02:00 (6) kernel: usb-storage 1-8:1.0: USB Mass Storage device detected > 2026-08-09T12:00:53+02:00 (6) kernel: scsi host4: usb-storage 1-8:1.0 > 2026-08-09T12:00:53+02:00 (6) mtp-probe[88374]: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8" > 2026-08-09T12:00:53+02:00 (6) mtp-probe[88374]: bus: 1, device: 13 was not an MTP device > 2026-08-09T12:00:54+02:00 (6) laptop-mode[88415]: enabled, not active > 2026-08-09T12:00:54+02:00 (6) laptop-mode[89008]: enabled, not active > 2026-08-09T12:00:55+02:00 (5) kernel: scsi 4:0:0:0: Direct-Access USB SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6 > 2026-08-09T12:00:55+02:00 (5) kernel: sd 4:0:0:0: Attached scsi generic sg3 type 0 > 2026-08-09T12:00:55+02:00 (5) kernel: sd 4:0:0:0: [sdc] 240353280 512-byte logical blocks: (123 GB/115 GiB) > 2026-08-09T12:00:55+02:00 (5) kernel: sd 4:0:0:0: [sdc] Write Protect is off > 2026-08-09T12:00:55+02:00 (7) kernel: sd 4:0:0:0: [sdc] Mode Sense: 43 00 00 00 > 2026-08-09T12:00:55+02:00 (5) kernel: sd 4:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA > 2026-08-09T12:00:55+02:00 (6) kernel: sdc: sdc1 > 2026-08-09T12:00:55+02:00 (5) kernel: sd 4:0:0:0: [sdc] Attached SCSI removable disk > 2026-08-09T12:00:55+02:00 (6) mtp-probe[89565]: checking bus 1, device 13: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8" > 2026-08-09T12:00:55+02:00 (6) mtp-probe[89565]: bus: 1, device: 13 was not an MTP device > 2026-08-09T12:01:03+02:00 (1) sudo[89604]: rainer : a password is required ; PWD=/home/rainer ; USER=root ; COMMAND=/usr/sbin/uptime > > -- END OF AFTER UPGRADE SYSLOG -- > > There are no further messages related to the USB stick mounting. Does > anybody have an idea what's going wrong here? > > Sincerely, > Rainer