Unable to mount volume
USB flash stick formatted as BTRFS does not hot unplug (first issue). To fix that behavior, you have to format device as LUKS+BTRFS and then suddenly hot unplug/plug starts to work. But if used many times (or doing it very fast) hot unplug stops working with different error (second issue).
I'm reporting only second issue here (first issue I guess kernel one).
2024-03-09T10:07:56.023972+03:00 axet-laptop gnome-shell[1979]: Unable to mount volume 29 GB Encrypted: Gio.IOErrorEnum: Error unlocking /dev/sdc1: Failed to activate device: File exists
It looks like when you connect the device it asks for a password. When password prompted it does not mount device, like password was wrong. You can still click at unmounded encrypted partition in nautilus window and password prompt appear again. But even with correct password device failed to mount.
dmesg:
[334402.163272] usb 1-4: USB disconnect, device number 52
[334405.098497] usb 1-4: new high-speed USB device number 53 using xhci_hcd
[334405.250571] usb 1-4: New USB device found, idVendor=0dd8, idProduct=3700, bcdDevice= 2.00
[334405.250578] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[334405.250581] usb 1-4: Product: OnlyDisk
[334405.250583] usb 1-4: Manufacturer: Netac
[334405.250584] usb 1-4: SerialNumber: 7298871054369602126
[334405.251186] usb-storage 1-4:1.0: USB Mass Storage device detected
[334405.251417] scsi host4: usb-storage 1-4:1.0
[334406.271565] scsi 4:0:0:0: Direct-Access Netac OnlyDisk 2.00 PQ: 0 ANSI: 4
[334406.271912] sd 4:0:0:0: Attached scsi generic sg0 type 0
[334406.272341] sd 4:0:0:0: [sdc] 60825600 512-byte logical blocks: (31.1 GB/29.0 GiB)
[334406.272400] sd 4:0:0:0: [sdc] Write Protect is off
[334406.272402] sd 4:0:0:0: [sdc] Mode Sense: 03 00 00 00
[334406.272460] sd 4:0:0:0: [sdc] No Caching mode page found
[334406.272461] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[334406.285228] sdc: sdc1 sdc2 sdc3
[334406.285388] sd 4:0:0:0: [sdc] Attached SCSI removable disk
/dev/mapper/
drwxr-xr-x 2 root root 120 мар 9 09:47 .
drwxr-xr-x 19 root root 3820 мар 9 10:07 ..
crw------- 1 root root 10, 236 мар 5 13:14 control
lrwxrwxrwx 1 root root 7 мар 7 18:44 luks -> ../dm-0
lrwxrwxrwx 1 root root 7 мар 7 22:02 luks-124f09e2-df7a-468a-a441-71268647049f -> ../dm-1
lrwxrwxrwx 1 root root 7 мар 9 09:47 luks-dbce5517-e6b3-4ada-a1c8-72fd24dc86e4 -> ../dm-2
After running: cryptsetup luksClose luks-dbce5517-e6b3-4ada-a1c8-72fd24dc86e4
Nautilus mount works again!
gnome-shell 43.9-0+deb12u1