Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-25-2004, 05:36 PM   #1
Registered: Feb 2001
Location: Detroit
Posts: 31

Rep: Reputation: 15
Exclamation accidentally deleted some files and I don't know what I need to do to get them back

Hi: If there is anyone out there that can help me sort this out I would really appreciate it.

I accidentally deleted some files and now I'm not sure how to proceed to get things back up and running. All I can do is provide the error messages and hopefully someone can provide some interpretation.

Ouch! ap_mm_create (1048576, "var/apache-mm/mm.1347") failed Error: MM: mm: core: failed to open semaphore file no such file or directory httpd: httpd startup failed

Starting sshd:

rc: starting ssh: failed

Error parsing attribute group- disabling service [line 14]

START: saslauthd 2.1.12
FATAL: chdir (/var/lib/sas12)
saslauthd: saslauthd: /var/lib/sas12 No such file or directory
saslauthd: saslauthd startup failed

Ignoring font path element /usr/X11R6/lib/X11/fonts/drakfont/type1 (unreadable)
" /ttf
" " /:unscaled (unreadable)

Resolved address "xml: read only: /etc/gconf/gconf.xml.mandatory

Any help would really be appreciated.


Old 06-25-2004, 09:11 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
If you deleted the files using rm from the command line, you may be out of luck. Linux does not have a "recycle bin" or anything like that. You may want to simply reinstall the affected package(s). If there is personal data you deleted, it may be recoverable if the disk blocks haven't actually been wiped. You'll need some sor tof recovery tool -- this isn't my area of expertise so I'll defer to someone else on that.

If you deleted them through a GUI like Gnome or KDE it may have a recycle bin, but you'd probably see it straight off.
Old 06-26-2004, 05:42 AM   #3
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
If you are using ext2 Filesystem there is a way how you *probably* can
undelete files delted with rm from command line. Important: The
blocks of the deleted file shall not be overwritten.

Thre is a tool called

This is a PERL script which invokes some low level ext2 functions.

You will find more information in the HOWTO "Ext2fs-Undeletion"
Here also the copy of the document in Web:

For other FS (e.g. RaiserFS, XFS) I am not aware of any way to undelet files.


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
Newbie deleted some files accidentally twysm Red Hat 2 04-08-2005 05:00 PM
Accidentally deleted files rwalkerphl Linux - Newbie 3 06-24-2004 06:11 PM
Accidentally deleted /etc/init.d .. what do i do? :| waste Linux - General 5 03-04-2004 03:39 AM
accidentally deleted files--need help restoring on reiserfs darksarin Linux - General 4 11-23-2003 07:13 PM
undeleting accidentally deleted files darksarin Linux - Newbie 3 11-21-2003 08:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:04 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