Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not sure if you can recreate the home folder or not.
But you might be able to recover the data by plugging the drive into another machine and using photorec and/or foremost. They're data recovery tools for when you accidentally mess up your drive or reformat it. But it should work here as well.
The only downside is that you have to manually sift through all the data and your filenames will be lost.
Here's the question: does /home/username still exist ... or not?
If userdel nuked that directory, then I am very sorry to say that ... yer scro-o-o'd...
But if, by some happy happenstance, the directory does exist, then you can mv the files anywhere you want them to go, and chown them into the ownership of whomever you please.
I've used foremost before and it's very good. Maybe try that, assuming while using photorec you didn't dump the recovered data to the same drive you were recovering from in which case you probably overwrote any other recoverable data.
After some search, I've try "photorec". Lots of data where recovered but nothing that was in that folder.
Did you look at the data individually? All the filenames will have been lost and it will just have a generic filename. It finds photos especially well, but like I said, you can't just search a directory, it'll scan the whole hard disk. You'll even get images from your internet history...
You are writing to a separate drive or partition, correct? Otherwise, the program will find the files it just copied over and over and over again. Not to mention it might overwrite some of the data you're trying to recover...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.