LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   accidentally deleted some files and I don't know what I need to do to get them back (https://www.linuxquestions.org/questions/linux-newbie-8/accidentally-deleted-some-files-and-i-dont-know-what-i-need-to-do-to-get-them-back-197762/)

Michele 06-25-2004 06:36 PM

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.

#1
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

#2
Starting sshd:

failed
rc: starting ssh: failed

#3
Error parsing attribute group- disabling service [line 14]

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

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

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


Any help would really be appreciated.

Thanks

Michele

btmiller 06-25-2004 10:11 PM

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.

Vlad-A 06-26-2004 06:42 AM

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
e2recover

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:
http://www.tldp.org/HOWTO/Ext2fs-Undeletion.html

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


All times are GMT -5. The time now is 06:15 PM.