LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-07-2008, 11:51 AM   #1
prasundutta151
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
Help please.


Dear all,

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.
 
Old 07-07-2008, 12:00 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
First avoid using the partition
Use the undelete tool...it will work on ext3 too

Best

A. Mani
 
Old 07-07-2008, 12:19 PM   #3
prasundutta151
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
dear amani,

Can you plseae tell me how to use the undelete tool ?

Regards.
Prasun.
 
Old 07-07-2008, 12:24 PM   #4
prasundutta151
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Dear Amani,

Can you please tell me how to use the recovery tool ? I am not familiar with it.
Regards.
Prasun.
 
Old 07-07-2008, 02:21 PM   #6
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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...
 
Old 07-07-2008, 06:00 PM   #7
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
I was offline, so couldn't reply earlier.
An easy way would be to use systemrescue cd for the purpose.

http://www.sysresccd.org/
Also read http://osdir.com/ml/file-systems.ext.../msg00032.html

Boot your PC from that and do the rescue operations...

You cannot use giis (link 3,4 in ehawk's post) apparently.

http://recover.sourceforge.net/unix/ is a way (you do not need a live cd for that)

Best

A. Mani
 
Old 07-08-2008, 12:43 AM   #8
prasundutta151
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Dear all,

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.

regards.
Prasun.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration