×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Recover deleted folders and files

Recover deleted folders and files

Recover deleted folders and files

(OP)
I was installing Ch (a C/C++ shell tool). The installing process deleted everything I have after I typed in the installation directory is /home/usr. Everything under /home/usr/ has been removed. This installation is very stupid and dangerous without any warning doing so. Now the problem is how to recovered my directory under the original /home/usr/?

RE: Recover deleted folders and files

The first thing you need to do in unmount the drive so there are no more writing done onto that drive.  If you use the ext2 file system, you can do a web search for "linux undelete" and find tools that can help you.  If you're on an ext3 partition, I'm afraid things look pretty doubtful.  The reason for this is that ext2 marks the block pointer as unused but ext3 overwrites the block pointer with zeros.  This does not mean it is impossible however.  Here is something that may give you a glimmer of hope.    http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html

I cannot testify to this article but I hope it works for your sake.  I know what you're feeling.

 

RE: Recover deleted folders and files

(OP)
my system is FC7. Now it works strangely. For example, I can't open a terminal. I don't know how I can check what file system I had now. Is a workaround when I don't have a terminal?

RE: Recover deleted folders and files

(OP)
This is my "mount | column -t" result. It seems it was ext3

[root@localhost stevenh]# mount | column -t
/dev/mapper/VolGroup00-LogVol00  on  /                         type  ext3         (rw)
proc                             on  /proc                     type  proc         (rw)
sysfs                            on  /sys                      type  sysfs        (rw)
devpts                           on  /dev/pts                  type  devpts       (rw,gid=5,mode=620)
/dev/sda2                        on  /boot                     type  ext3         (rw)
tmpfs                            on  /dev/shm                  type  tmpfs        (rw)
none                             on  /proc/sys/fs/binfmt_misc  type  binfmt_misc  (rw)
sunrpc                           on  /var/lib/nfs/rpc_pipefs   type  rpc_pipefs   (rw)
 

RE: Recover deleted folders and files

Yeah, I think the switched a while back.  In fact I think it was when fedora was still red hat.  Anyway I was doing some thinking after I posted that last reply and I think the glimmer of hope just went out.  I forgot that you mentioned that it happened during an install of another package.  This may have over written those blocks.  Well don't give up, I'm still keeping my fingers crossed.
  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close