On Friday, January 15, 2021 at 10:32:25 PM UTC-5, Steve Mysterious wrote:
> I have an external SSD hard drive, about 1 Terabyte.
>
> The other day I was in a rush, I was trying to format a thumb drive, and accidentally formatted the SSD hard drive instead.
>
> I read that it is harder to recover data from an SSD hard drive due to the different technology.
>
> I heard about TestDisk and PhotoRec.
>
> If I try those two applications before going to a data recovery service is it possible to the situation worse in terms of recovering data?
>
> Thanks for any opinions.
>
> Steve
I thought I would report back with the end of the story given that so many people on comp.os.linux.misc offered solid advice.
I recieved dour predictions of recovering data from an external SSD USB drive.
Microcenter wanted $200 to tell me if the data could be recovered, $1350 - $3,000+ to do the job. A local computer shop $675. I found out that the formatting that the Mint file manager used was quick formatting. So despite being a scared newbie, I decided to take a few weekends to give it go by asking questions and trying things out.
This is what I did:
1. I immediately disconnected the 1T external USB SSD drive where the data was accidentally erased.
I kept it in a drawer, safe from any automatic processes that might have destroyed more data.
2. I bought a 4T external USB SSD drive to do my data restoration attempts on.
3. I plugged both drives into my computer and ran [b]lsblk [/b]to see what their locations were
1T drive was at /dev/sdc
4T drive was at /dev/sdb
4. I partitioned the 4T drive to have a massive area for multiple drive images
/dev/sdb2 /
5. I then mounted that big partition on the 4T drive as "BigDrive"
sudo mount /dev/sdb2 /home/steve/BigDrive
6. I then made an image of the 1T drive, outputting it to the big partition on the 4T drive Took about 5-7 hours.
dd if=/dev/sdc of=/home/steve/BigDrive/OriginalBadDisk.img bs=1M conv=noerror,sync status=progress
7. I then played it safe by making a copy of that image for each different rescue attempt I made. It took about 5 hours per copy
8. I then launched TestDisk so it would read my drive image instead of reading a physical drive ( the default ):
$ cd /home/steve/BigDrive/
$ mkdir Rescued
$ testdisk OriginalBadDiskCopy2.img
The "Rescued" directory was to store what TestDisk rescued.
TestDisk, though being a command line interface application has a menu system similar to ncurses/old DOS programs.
TestDisk found the original "partition" in OriginalBadDiskCopy2.img
From that point I just navigated through my "lost" directories selecting which files and which subdirectories (TestDisk had the original file and directory names ) to copy over to my directory "Rescued".
TestDisk only failed to copy over 1 video file and 1 picture file out of a massive multimedia collection.
There were a few dozen rescue failures for files of other types, but most were things I did not care about or that I could replace.
I used this [b]short[/b] TestDisk tutorial to get going:
[b]How to Recover Deleted Files Using TestDisk in Linux[/b]
https://www.tecmint.com/recover-deleted-files-using-testdisk-in-linux/
My first rescue attempt was with the software called Foremost.
It gave me all of the rescued data back sorted into subdirectories by file extension.
None of the files had names, just numbers Foremost assigned to the files in lieu of the original names.
I only got 2 usable jpeg files and 1 usable mp4 out of the 7 hour attempt.
I could not launch the rest of the files it recovered.
Even if I could, the files would have had no names and were scrambled out of order.
TestDisk was definitely the way to go.