LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2004, 04:36 AM   #1
sharpie
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.1
Posts: 190

Rep: Reputation: 30
Restoring a rm'ed file?


If you accidentally delete a file with the rm command, is there any simple way to get it back?
 
Old 02-02-2004, 04:46 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
sorry no.
 
Old 02-02-2004, 07:01 AM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
reinstall whatever you deleted, its realy the only way, (btw, add an alais to bash promt so it cant heppen again, add
alias rm=rm -i

that way even if you acidently delet somthing itll ask b4 deleting
 
Old 02-02-2004, 10:24 AM   #4
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
Yes there is as long as you don't do as little as possible on the system after you deleted the file. Shutdown the system as soon as possible and reboot it with one of the bootable cd based distros with a copy of The Coroners Toolkit or Autopsy. It isn't the easiest thing in the world for a newbie but it will assist you in recovering your missing files.

Links:
http://biatchux.dmzs.com A great disaster recovery bootable linux cd
http://www.sleuthkit.org/autopsy/desc.php
http://www.porcupine.org/forensics/tct.html
http://www.fish.com/tct/help-recovering-file
 
Old 02-02-2004, 10:48 AM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
if i remember right, every FS has a difrent way of storing files and such, so every fs needs special tool to recover things on its partion (like i don think a recovery tool make for NTFS will work on ReiserFS)
 
Old 02-03-2004, 02:54 AM   #6
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
That is true Sciyro but those are computer forensics tools designed to do just that. Find hidden or deleted files.
 
Old 02-03-2004, 04:05 AM   #7
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
i never thought there were general forensic tools, can you give us a addres?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring Apache httpd.conf file shof515 Fedora 1 11-24-2005 11:54 PM
Restoring an old xord.config file Bryanlee Linux - Newbie 9 05-15-2005 09:35 PM
Restoring LILO DOA SUSE / openSUSE 3 12-26-2004 10:04 PM
Help restoring file permissions from a Dump bminish Linux - Newbie 3 12-12-2004 02:34 PM
Restoring / Undeleting a file richardrex Linux - General 4 10-24-2003 08:59 AM


All times are GMT -5. The time now is 06:39 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration