Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using a linux (red hat) server and contents gets updated using CVS. A folder was not in CVS and it got deleted/replaced by another content after I run an update. How can I get the deleted content on my linux machine. Is there any data recovery options available on linux servers.

share|improve this question

migrated from stackoverflow.com Sep 3 '12 at 14:49

This question came from our site for professional and enthusiast programmers.

    
That depends -- do you run your red hat off a solid state drive? Harddisk? What file system do you use? The success rate of recovering files is generally very low, even more so for dirs...Expect only parts to be recovered, at best. –  Rody Oldenhuis Sep 3 '12 at 5:58

2 Answers 2

In short you cannot recover these deleted files.

Depending on your filesystem, you can hack to possibly recover parts of your data. See for instance:

http://www.cyberciti.biz/tips/linuxunix-recover-deleted-files.html

http://www.cyberciti.biz/tips/linux-ext3-ext4-deleted-files-recovery-howto.html

share|improve this answer

Usually, deleting a file (or directory) in linux means it is permanently gone, unless you have some kind of a backup.

There are ways to recover deleted files, and if you are lucky, you might get them back. First you need to have a program to recover a deleted file installed, like for example photorec. As soon as you delete the file, unmount the disk, and shut down. Then boot from live CD, and use the recover program. Using photorec should be straight forward, since it has some kind of ncurses GUI.

share|improve this answer
    
It is deleted from a server which usd rad hat as OS. I cannot shut down or restart it putting a live CD. Are they any other ways of achieving it. –  Manoj Kumar Sep 3 '12 at 11:34
    
@NaanuManu Yes, use the backup ;) –  BЈовић Sep 3 '12 at 11:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.