I have a mechanical hard drive that I was trying to access files on. I bought a cheap SATA to USB adapter. Said adapter was underpowered, and I could hear the platter revving up and down. I made the mistake of clicking on a file in the home folder while this was happening. After this, my home folder was replaced with a text file labeled "home"
Is there a way I can recover files on drive from vanished folder? Its formated as ext4. It was from an old Ubuntu installation. I would like to restore the function of the text file so that maybe it becomes an active folder again. If not, I'm willing to use some type of recovery software. Any help would be greatly appreciated.
I included a screenshot of the sub-directory with the corrupted folder circled in red. I also included a screenshot of the text that appears when opening text file titled "home".