LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-04-2004, 03:52 AM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
recovering deleted files


Hey

probably the right forum for this, as I've just done a Noob mistake.

I have accidentally deleted a big folder of my documents (on my server) which I need.

The foler was "my_documents" and I deleted it by SSHing in and typed "rm -rf my_documents"

(I was actually trying to delete a different folder, but, hey, I'm a moron!)

OK, is htere any way to recover this directory?

I heard there was something in Linux about the difference between "hard" and "soft" links. Could I use this to my advantage? Is it the case the I have just deleted the "link" to the directory, but no actually deleted the files themselves?

Please give me some help, or tell me that I've lost it all. Thanks
Hamish
 
Old 10-04-2004, 03:59 AM   #2
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Rep: Reputation: 30
Since you did it from the command line you've made things difficult. Try searching LQ for "undelete" to see what others did.

In the meantime here is a comprehensive guide:
http://www.securityhorizon.com/secur.../undelete.html

Boffy
 
Old 10-04-2004, 05:51 PM   #3
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
If it was on ext3 file system - there's no way to undelete files.
If it was on ext2 file system there is a way. Go to http://www.tldp.org/HOWTO/Ext2fs-Undeletion.html
 
  


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
Recovering deleted files?? DaFrEQ Linux - General 8 09-17-2005 12:28 PM
Query: recovering deleted files... kevingpo Fedora 2 07-28-2005 07:11 PM
recovering deleted files saipraveen Linux - Newbie 1 06-16-2005 11:00 AM
Recovering Deleted Files Brian of Gep Linux - Newbie 1 03-02-2004 02:26 AM
Need Help Fast...recovering Deleted Files dowdnt Linux - General 1 07-09-2003 09:14 AM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration