recovering files removed with rm


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers recovering files removed with rm
# 1  
Old 09-15-2006
recovering files removed with rm

Hello,

I was reading the manual on rm and it states that when you use 'rm' the files are usual recoverable, how is this done?

Does it assume that a backup system is in place?

Cheers

Jack
# 2  
Old 09-15-2006
What OS are you using? The Solaris man page for rm does not even have the word 'recover' in there. And no, there are no assumptions in the man page.

Last edited by blowtorch; 09-15-2006 at 07:48 AM..
# 3  
Old 09-15-2006
using putty client to connect to a redhat server using the bash shell

Code:
 Note that if you use rm to remove a file, it is usually possible to recover the contents of that file.  If you want more assurance that
       the contents are truly unrecoverable, consider using shred.

# 4  
Old 09-15-2006
OK, what they mean is that if someone really, really wants to get data from your disks, then they can even, if the file has been removed. This does not apply to casual users, but needs to be secured in an environment where confidentiality is a high priority (finance, defence, etc). And it does not mean that you can use an undelete a file.

The data can be read because only the inode entries for a file are removed, the data sectors allocated to it are still there on the disk. But to recover the data, you need to directly read the sectors from the disk and then try to make sense of them later.
# 5  
Old 09-15-2006
Thanks for the info. So shred works by over writing the data and then removing it so even when still on disk but out of OS it can't be read in it's original form.

Cheers

J
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Can all files under /tmp be safely removed

I wanted to know whether all files under /tmp can be safely removed. I guess that /tmp may also have temporary files for applications currently being worked on, so at the most those applications may just shut down. I hope that my question is clear whether all files under /tmp can be safely... (5 Replies)
Discussion started by: RHCE
5 Replies

2. Shell Programming and Scripting

Merging few files into one, duplicates are removed

Hello, I have few file such as below: abc.txt def.txt ghi.txt jkl.txt n.txt I would like to merge all these files together into one file. At the same time, any duplicates will be removed. (5 Replies)
Discussion started by: alegnagrp
5 Replies

3. HP-UX

Recovering files from unbootable disk in HPUX 9

First of all, forgive me if I come off as naive. Normally I'm doing day-to-day management of a Server 2008 network, so HP-UX isn't exactly my forte. We have several HP 715/100 machines running UX 9.x, and recently one of them stopped being able to boot. In the boot menu the disk shows up with... (3 Replies)
Discussion started by: GoldnPantaloons
3 Replies

4. UNIX for Advanced & Expert Users

can I view removed/deleted files

I have a script that have deleted some files, and I need to know which files were deleted. Is there a log file in linux that shows deleted files? I use ubuntu. (2 Replies)
Discussion started by: locoroco
2 Replies

5. UNIX for Dummies Questions & Answers

Recovering lost folders/files data

Hello, Is there a way to recover data from a SCO UNIXWARE 7.4 operating system without using a tape backup device? We believe there is some data in some directories that was there once; but not anymore, we don't have a backup on tape. So, is there any other solution to recover? Hope... (0 Replies)
Discussion started by: Yorgy
0 Replies

6. UNIX for Dummies Questions & Answers

Will Old Files Be Removed

I have windows Xp installed, and decided to install Solaris Sun Unix 10. The hard disk was previousely partitioned into 5 partition. C: = Win98 D = WinXP and e,f,g,h are applications and so on. When istalling Sun Unix, will all the drives be removed, or I will specify where to install it. Thanks... (5 Replies)
Discussion started by: sunsation
5 Replies

7. UNIX for Dummies Questions & Answers

Recovering lost files

I noticed this in a search for more security tools... It IS possible to "undelete" a file; I suppose recover would be a better term for it. I suppose we've all made the boo-boo (that we all hopefully learned from) of deleting a file, and finding that you do not have a backup. I wouldn't... (1 Reply)
Discussion started by: LivinFree
1 Replies

8. UNIX for Dummies Questions & Answers

Bring back removed files

Dear People I have removed some of my files and directories( by using rm and rmdir commands) by mistake. I wish to bring them back. How is it possible?( I am using solaris 2.6) best regards Reza Nazarian:( (2 Replies)
Discussion started by: Reza Nazarian
2 Replies
Login or Register to Ask a Question