Menu

Encrypted USB Flash Disk Corrupted in Linux Accidentally

Anonymous
2022-07-16
2022-08-01
  • Anonymous

    Anonymous - 2022-07-16

    I use Veracrypt to encrypt a partition of a USB 2.0 flash disk months ago on Linux (approximately the time when Veracrypt 1.25.7 was released). After that, everything goes fine; However yesterday I mounted the partition, but while I was reading data, bad message was shown and garbled data appeared. After I remove the partition and retry , the partition disappeared. All I could see was like:

    # lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
    sdb           8:16   1  14.9G  0 disk 
    nvme0n1     259:0    0 238.5G  0 disk 
    ├─nvme0n1p1 259:1    0   512M  0 part /boot
    ├─nvme0n1p2 259:2    0     1G  0 part [SWAP]
    └─nvme0n1p3 259:3    0   237G  0 part /
    

    In the above, sdb refers to the USB disk, it ought to have a partition called sdb1; Also, I'm not able to mount sdb with Veracrypt.
    There seems to be no significant physical damage. Although I've not mounted the USB flash disk for about 2 months.
    More details:

    • OS: Arch Linux
    • Veracrypt Version now: 1.25.9
    • USB disk vendor: Kingston
      What I've tried:

    • Use Fedora 36

    • Use another computer
      These data are important, is there any way to recover all of them?(Perhaps, because I succeeded in accessing part of them in a lucky try)
     
  • RealTehreal

    RealTehreal - 2022-08-01

    It's common for USB keys to become corrupted every now and then. Therefore, the only way to possibly get access to your data again would be:
    - recreate the partition as raw. It's mandatory to use the same range on the USB key like the original partition. And never overwrite / format - this would destroy any data left
    - Try to mount (which will likely fail).
    - (In case it is advised by VC, try to mount using the backup header.)
    - In case, the volume can be mounted, but the file system got damaged, mount it without actually mounting the file system (there is a mount option for this). Then run your preferred data recovery tool on the mounted raw partition.

    Other possible solution: Wait for the USB key to cool down. Then try to access it again. This way, I was able to access a volume on a SanDisk USB key again, as it always became too hot. This had nothing to do with VC, though.

    Good luck!

    Greets

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.