I just thought about how you may be able to recover the data (or some of it) from that flash drive.
First of all, make sure that your system is configured to NOT mount removable drives when they are inserted.
Here are the steps:
1. Create a working directory:
2. Change to the recovery directory:
3. Insert the flash drive.
4. Start recovery using ddrescue:
Code: Select all
sudo ddrescue -n -v -T 30 --min-read-rate=50k /dev/sdc1 sdc1-image sdc1-recovery-log
The drive will probably disconnect again. That's fine. Remove the flash drive and try again tomorrow, starting at step 2. If you don't want to wait until tomorrow, wait at least an hour before trying again. Keep repeating the process until as much of the data is recovered as possible.
Note: Do NOT delete any of the files in the recovery directory. Ddrescue will continue where it left off. Also, do not omit the recovery log file; it is essential.
You may need to follow that up with a different ddrescue command, depending on how successful you are at recovering the data. Please keep us updated regarding your progress.