Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-20-2004, 09:45 AM   #1
Registered: Mar 2002
Posts: 51

Rep: Reputation: 15
Arrow Up %$## creek, deleted wrong files.

In my infinite wisdom I decided to re-arrange my files today.
Part of this was moving my work files into my work folder in my home directory. That went fine.
Then I decided to delete another folder in that same directory.
Then the phone rang. I picked it up, pressed shift-delete, got the vague sense that something looked wrong, and clicked the confirm.
I just deleted all my work for the past 2 years.
I managed to click cancel before it was finished, but that didn't seem to do anything.

I've looked into recovering it, but it's on an Ext3fs, which apparently makes recovery impossible.

I'm not entirely out of luck, I've still got backups, but most of them are a couple months old.

Anyone have any ideas, besides "backup more often" .
Old 07-20-2004, 09:57 AM   #2
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
sorry mate you're stuffed.
Old 07-21-2004, 02:54 PM   #3
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
Undeletion doesn't appear to be an option, but there is one less than practical solution. You can view the raw data with a hexeditor. One hexeditor that I use is hexedit. My command would be:
hexedit /dev/hdX

You could search for your most important data if you can recall any text within it. You may not get everything if the files are large though, because large files are split into smaller chunks on the disk.

Example of a lost file:
>Subject: Hi
>Whenever I try this command apt-get install ultracool_personality
>I always get the error "Access Denied"

I would probably search for this file using the string "ultracool_personality".

Also, another tool you might try is grep.


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
Deleted the wrong folders Thanotos Linux - Newbie 8 11-07-2005 07:30 AM
Need Help - Deleted Files fpdesignco Linux - Enterprise 3 11-05-2005 09:21 AM
Deleted the wrong folders Thanotos Slackware 3 11-02-2005 09:48 AM
config gone wrong with DHCP, ftp up creek TreeHugger Linux - Networking 2 11-18-2004 09:47 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration