Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I have been configuring a server and accidentally deleted the home directory of an user. I was using Fedora Core 8. I opened the "system-config-users" and then was to delete a user without deleting his home directory. I forgot to uncheck the do not delete home dir option and now that is deleted. This is on a ext3 file system. I will like to know if there is a way to recover the dara therein. I have remounted the filesystem readonly now such that I can not do anything more in it. Your help is most welcome.
Regards.
Prasun.
I did not read through all the links given in the previous post. The first and most important thing in that situation would be what amani said: do not use this partition anymore!
Unmount it! Or remount it read-only! Then you could make a backup of that partition using dd for example. Or go right to the undeletion step. Only after that you should use it again.
The other users will be affected by this - of course because during that time they can't use the system.
But: what is more important to you?
If that partition is actively used/written to, chances are that the space that once belonged to the deleted users files will be re-used.
If that happens - no undelete-tool can restore the data.
As long as no new files are created, you can be relatively certain, that the files can be recovered - using the tools mentioned already.
That is why it was said: do not use that partition...
Thank you for your reply. I apotheosize for not writing your name correctly A. Mani. I will try the methods you have suggested now. I have manage to grep a few things already, but will like to have all of them back if possible in the way they were. Hope the other rescue options does the job. Let me try.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.