What's up people of linux?!
I will be really grateful if someone can help me to figure out what hell happened with my usb flash drive, if it was my mistake or I can blame luksFomat and/or other things.
Maybe it is more related to a hardware problem. But I believe all the trouble initiated with cryptsetup luksFormat command.
I decided to encrypt my pretty new Kingston Datatraveler 3.0 64GB. When I plugged my 3.0 USB device in the 3.0 USB port, the 5.10.0-18-amd64 [5.10.140-1] x86_64 bits kernel, from linux MX-21.2.1_KDE_x64, logged the lines below.
Before the encryption, I ran ...
*(where X was the letter of my Kingston usb).
I made this decision because I used this device before to carry some personal data a few times. At this point this device was carrying a live distro.
I let dd run until it reached the position of 10GB because it was taking too much of my time. So, I stopped dd with ctrl+c combination. Until this point nothing weird was happening. The file manager kept showing my Kingston in the devices list.
Here is where the bad thing started to happen. After reading some linux sites and watched some youtube videos, I decided to encrypt my Kingston device with the following commands:
... and I pressed the Enter key. The cursor went to the next line blinking, and stayed like this for the next 5 seconds or something. I thought cryptsetup was taking too much time just to ask me if I want to proceed. So, I pressed ctrl+c to stop. But nothing happened, the cursor kept blinking in the line below of the cryptsetup command. I decided to press the combination of ctrl+c two more times. After 3 seconds or something, cryptsetup showed the warning "this will overwrite the data on /dev/sdX irrevocably". I answered no because I was thinking in run the cryptsetup command again after all those ctrl+c and delays. From my enter to run the cryptsetup command, pressing ctrl+c 3 times, receiving the warning from the command and answering no, took no more than 10 seconds.
So, I pressed the arrow up key in the terminal to bring back the cryptsetup command. I pressed enter key and to my surprise I received the message: unknown or not found device on /dev/sdX. I tried again, but received the same answer. My Kingston disappeared from the filemanager too. I ran fdisk -l and lsblk and my Kingston (/dev/sdX) was not listed anywhere. I unplugged my usb flash drive and plugged it again. I looked again in all tools that I know and that I have installed, but my usb flash drive is gone!
I decided to take a look in the kern.log to see if the usb port was recognizing my device. Below is what the kernel logged when I plugged the Kingston again in the 3.0 USB port:
I unplugged my new Kingston and plugged my ten years old Kingston 2.0 in the same USB 3.0 port and it worked well. But my new Kingston seems to be damaged by something that I don't know what was. I plugged and unplugged my new Kingston more several times but got the same output log in the kernel. I am sure of the USB 3.0 port is working well because I tested others USB flash drivers, and also other pretty new USB 3.0 Kingston 64GB that is exactly the same model of the damaged one, because I bought two identical 64GB DTX Kingston in the store.
I searched in sys.log, kern.log and I guess in dmesg too, but there is nothing wrong between the lines of when I plugged my 3.0 Kingston was plugged and when I realized the problem and unplugged it to plug again.
My machine is (low end laptop):
System and kernel info:
... and the info of the USB 3.0 port used:
Also, if I leave my damaged USB Kingston plugged in the USB port for some minutes, it will get warm. I tried to open in other computer and smartphone. The smartphone just detected something, and nothing more. All that situation happened yesterday.
Today I plugged the Kingston again on my computer and I am almost sure: the USB flash drive is completely dead
Not even the kernel is detecting it plugged on the USB 3.0 port. Also, the USB drive doesn't get warm anymore.
That is it. I hope someone have any idea about this situation because I really don't want to damage other USB flash drivers, if it was really my fault.
I will be really grateful if someone can help me to figure out what hell happened with my usb flash drive, if it was my mistake or I can blame luksFomat and/or other things.
Maybe it is more related to a hardware problem. But I believe all the trouble initiated with cryptsetup luksFormat command.
I decided to encrypt my pretty new Kingston Datatraveler 3.0 64GB. When I plugged my 3.0 USB device in the 3.0 USB port, the 5.10.0-18-amd64 [5.10.140-1] x86_64 bits kernel, from linux MX-21.2.1_KDE_x64, logged the lines below.
Code:
Apr 13 17:53:08 mx kernel: usb 4-1: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
Apr 13 17:53:08 mx kernel: usb 4-1: New USB device found, idVendor=0951, idProduct=1666, bcdDevice= 1.00
Apr 13 17:53:08 mx kernel: usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 13 17:53:08 mx kernel: usb 4-1: Product: DataTraveler 3.0
Apr 13 17:53:08 mx kernel: usb 4-1: Manufacturer: Kingston
Apr 13 17:53:08 mx kernel: usb 4-1: SerialNumber: E0D55EA58ABCE671E94A01BB
Apr 13 17:53:08 mx kernel: usb-storage 4-1:1.0: USB Mass Storage device detected
Apr 13 17:53:08 mx kernel: scsi host2: usb-storage 4-1:1.0
Apr 13 17:53:09 mx kernel: scsi 2:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
Apr 13 17:53:09 mx kernel: sd 2:0:0:0: Attached scsi generic sg0 type 0
Apr 13 17:53:09 mx kernel: sd 2:0:0:0: [sda] 120933440 512-byte logical blocks: (61.9 GB/57.7 GiB)
Apr 13 17:53:09 mx kernel: sd 2:0:0:0: [sda] Write Protect is off
Apr 13 17:53:09 mx kernel: sd 2:0:0:0: [sda] Mode Sense: 2b 00 00 08
Apr 13 17:53:09 mx kernel: sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Apr 13 17:53:10 mx kernel: sda: sda1 sda2
Apr 13 17:53:10 mx kernel: sd 2:0:0:0: [sda] Attached SCSI removable disk
Before the encryption, I ran ...
Code:
dd if=/dev/zero of=/dev/sdX* status=progress
I made this decision because I used this device before to carry some personal data a few times. At this point this device was carrying a live distro.
I let dd run until it reached the position of 10GB because it was taking too much of my time. So, I stopped dd with ctrl+c combination. Until this point nothing weird was happening. The file manager kept showing my Kingston in the devices list.
Here is where the bad thing started to happen. After reading some linux sites and watched some youtube videos, I decided to encrypt my Kingston device with the following commands:
Code:
cryptsetup luksFormat -y -v /dev/sdX
... and I pressed the Enter key. The cursor went to the next line blinking, and stayed like this for the next 5 seconds or something. I thought cryptsetup was taking too much time just to ask me if I want to proceed. So, I pressed ctrl+c to stop. But nothing happened, the cursor kept blinking in the line below of the cryptsetup command. I decided to press the combination of ctrl+c two more times. After 3 seconds or something, cryptsetup showed the warning "this will overwrite the data on /dev/sdX irrevocably". I answered no because I was thinking in run the cryptsetup command again after all those ctrl+c and delays. From my enter to run the cryptsetup command, pressing ctrl+c 3 times, receiving the warning from the command and answering no, took no more than 10 seconds.
So, I pressed the arrow up key in the terminal to bring back the cryptsetup command. I pressed enter key and to my surprise I received the message: unknown or not found device on /dev/sdX. I tried again, but received the same answer. My Kingston disappeared from the filemanager too. I ran fdisk -l and lsblk and my Kingston (/dev/sdX) was not listed anywhere. I unplugged my usb flash drive and plugged it again. I looked again in all tools that I know and that I have installed, but my usb flash drive is gone!

I decided to take a look in the kern.log to see if the usb port was recognizing my device. Below is what the kernel logged when I plugged the Kingston again in the 3.0 USB port:
Code:
Apr 13 18:54:40 mx kernel: usb 4-1: new SuperSpeed Gen 1 USB device number 7 using xhci_hcd
Apr 13 18:54:40 mx kernel: usb 4-1: New USB device found, idVendor=13fe, idProduct=5500, bcdDevice= 1.10
Apr 13 18:54:40 mx kernel: usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 13 18:54:40 mx kernel: usb 4-1: Product: 2311 Boot ROM
Apr 13 18:54:40 mx kernel: usb 4-1: Manufacturer: Phison
Apr 13 18:54:40 mx kernel: usb-storage 4-1:1.0: USB Mass Storage device detected
Apr 13 18:54:40 mx kernel: scsi host2: usb-storage 4-1:1.0
Apr 13 18:54:41 mx kernel: scsi 2:0:0:0: Direct-Access 2311 PRAM 1.00 PQ: 0 ANSI: 0 CCS
Apr 13 18:54:41 mx kernel: sd 2:0:0:0: Attached scsi generic sg0 type 0
Apr 13 18:54:41 mx kernel: sd 2:0:0:0: [sda] Attached SCSI removable disk
I unplugged my new Kingston and plugged my ten years old Kingston 2.0 in the same USB 3.0 port and it worked well. But my new Kingston seems to be damaged by something that I don't know what was. I plugged and unplugged my new Kingston more several times but got the same output log in the kernel. I am sure of the USB 3.0 port is working well because I tested others USB flash drivers, and also other pretty new USB 3.0 Kingston 64GB that is exactly the same model of the damaged one, because I bought two identical 64GB DTX Kingston in the store.
I searched in sys.log, kern.log and I guess in dmesg too, but there is nothing wrong between the lines of when I plugged my 3.0 Kingston was plugged and when I realized the problem and unplugged it to plug again.
My machine is (low end laptop):
Code:
product: 82MD (LENOVO_MT_82MD_BU_idea_FM_IdeaPad 3 15ITL6)
vendor: LENOVO
version: IdeaPad 3 15ITL6
UEFI: LENOVO v: GGCN48WW
Mobo: LENOVO model: LNVNB161216
width: 64 bits
capabilities: smbios-3.3.0 dmi-3.3.0 smp vsyscall32
System and kernel info:
Code:
Kernel: 5.10.0-18-amd64 [5.10.140-1] x86_64 bits: 64 compiler: gcc v: 10.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-18-amd64
root=UUID=<filter> ro quiet splash
Desktop: KDE Plasma 5.20.5 wm: kwin_x11 vt: 7 dm: SDDM
Distro: MX-21.2.1_KDE_x64 Wildflower September 18 2022
base: Debian GNU/Linux 11 (bullseye)
... and the info of the USB 3.0 port used:
Code:
USB controller
product: Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller
vendor: Intel Corporation
physical id: 14
bus info: pci@0000:00:14.0
version: 20
width: 64 bits
clock: 33MHz
capabilities: pm msi xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:145 memory:54000000-5400ffff
Also, if I leave my damaged USB Kingston plugged in the USB port for some minutes, it will get warm. I tried to open in other computer and smartphone. The smartphone just detected something, and nothing more. All that situation happened yesterday.
Today I plugged the Kingston again on my computer and I am almost sure: the USB flash drive is completely dead

That is it. I hope someone have any idea about this situation because I really don't want to damage other USB flash drivers, if it was really my fault.