File recovery


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users File recovery
# 1  
Old 10-03-2011
File recovery

Hi,

Please let me know the way to recover the files deleted from home directory by 'rm*' command .

Thanks in advance.
# 2  
Old 10-03-2011
With a restore.

You do have a backup, right?
# 3  
Old 10-03-2011
No I dont have back up.

Can we roll back rm command?
# 4  
Old 10-03-2011
That's what backups do for you. If you have no backup, then, you don't have a backup...

The best you can do is stop using the disk immediately -- and I mean stop using it, no writing to it at all, if you can't shut off the machine then remount the filesystem read-only. Any write has a chance of overwriting part or all of the deleted file. Then figure out the right raw-data recovery tool for use on your system. Something like magicrescue may work depending on what your system is and what you deleted. I can't predict what your odds of retrieving it are.

If you deleted a whole tree and not just one file, if you get back anything at all you're likely to get back a disorganized mess of instead of a nicely organized tree.
# 5  
Old 10-03-2011
I would just add, that it would be useful to tell us about your environment (OS + version, dedicated or virtual, etc.).

For example, I don't take backups of my VM's, but I know that I have a Time Machine backup of my Mac, so if push came to shove, I could get the VMDK files back, and recover my files another way.

Knowing as much about your setup could help someone help you.
# 6  
Old 10-03-2011
First of all, download your program to a usb key and make sure it is self contained, no setup or what no! Like photorec for linux. Just a pointer.
# 7  
Old 10-03-2011
Quote:
Originally Posted by Klasform
First of all, download your program to a usb key and make sure it is self contained, no setup or what no! Like photorec for linux. Just a pointer.
I'm at something of a loss to emphasise the un-importance of this particular advice at such a time.

ravigupta2u will surely be more aware of the need to back up important data after this experience. But I would no more trust the reliability of a USB stick to save my important data than I would UBS to not invest in something really dumb, right now.

Last edited by Scott; 10-03-2011 at 03:15 PM.. Reason: Replaced word "meaninglessness" (which is far too long anyway) with "un-importance", which in the context seems a better one.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Is possible to recovery a deleted file in AIX?

is it possible to recovery a deleted file in AIX? (2 Replies)
Discussion started by: fiyas
2 Replies

2. Cybersecurity

File Integrity checker with recovery

Hello friends I have an CentosOS 5 box running Apache, I want to Install a powerful File Integrity checker with recovery option to maintain any changes may be happened without my hand Could you help me to recommend such solution Thanks (3 Replies)
Discussion started by: reaky
3 Replies

3. Solaris

Password Recovery From /etc/shadow file

Is it possible to reset a normal user password , by editing password field in /etc/shadow file? Thanks (6 Replies)
Discussion started by: ksvaisakh
6 Replies

4. UNIX for Advanced & Expert Users

fsck.gfs2 outputs "RG recovery impossible; I can't fix this file system"

I have a CentOS release 5.2 (Final)host running kernel 2.6.18-92.el5 with at raid 10 that had two mirrored drives fail. The drives were re-inserted and now the raid shows healthy (for now). I tried to mount but got an Input/output error. I then attempted a fsck: fsck.gfs2 -y /dev/vg_01/uss_vol... (0 Replies)
Discussion started by: king_hippo
0 Replies

5. UNIX for Dummies Questions & Answers

forbid file recovery

Hi there, When I want to make a file unrecoverable, I use the following command: foo:~$ shred -fuz filename The problem is that I deleted many files using: foo:~$ rm -f filename How can I make those files unrecoverable? Is there a command that shreds the disk free space? So that no file can... (2 Replies)
Discussion started by: chebarbudo
2 Replies

6. UNIX for Advanced & Expert Users

Data Recovery from file system overwritten with LVM.

Hey peeps, Here is somethin u might find interestin.... Is it possible to recover data from a partition which used to be an ext3 file sytem with some nice forgotten backups, which now is an lvm partion containg root partition of another OS. :) I couldn't create any mess better than this, can... (2 Replies)
Discussion started by: squid04
2 Replies

7. UNIX for Advanced & Expert Users

Recovery Of Passwd File

the file /etc/passwd has corrupted mistakenly.actually the file has saved as "oot:0:0:root:/root/sbin/bash". first r of root has been deleted .. can anyone tell me how can i recover as normal user (2 Replies)
Discussion started by: singh_hackerz
2 Replies

8. SCO

compressed file was ftpied in ascii mode needs recovery

I am unbale to uncompress a file which was compress then moved to another pc in ascii mode instead of binary mode. Is there any way to recover it. Please help us. While uncompress it is giving corrupt input. (3 Replies)
Discussion started by: raj2610
3 Replies
Login or Register to Ask a Question