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 08-31-2003, 08:02 PM   #1
jailles
LQ Newbie
 
Registered: May 2003
Posts: 9

Rep: Reputation: 0
HELP: Accidently rm * -rf in /etc/httpd/conf


Is there anyway to recover without a backup?

*sigh*
 
Old 08-31-2003, 08:18 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Which filesystem do you use?

ext2 has had some success in this area...

Be very careful not to do TOO much activity on that drive for a while, at least until you give up or succeed.

Cool
 
Old 08-31-2003, 08:24 PM   #3
jailles
LQ Newbie
 
Registered: May 2003
Posts: 9

Original Poster
Rep: Reputation: 0
I'm not so sure.......... I know, it's bad... how can I tell?
 
Old 08-31-2003, 08:30 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
mount, df, cat /etc/fstab ...

All these commands should report your type of filesystem, simply type:
mount
And it should tell you

Cool
 
Old 08-31-2003, 08:31 PM   #5
jailles
LQ Newbie
 
Registered: May 2003
Posts: 9

Original Poster
Rep: Reputation: 0
*sigh* ext3
 
Old 08-31-2003, 08:36 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
No worries, still possibility, ext3 is simply ext2, journaled. Check these sources (dug them up for ya) and see if anything helps:
http://www.linux-backup.net/undel.gwif.html

http://www.linuxsecurity.com/feature...forensics.html

Hopefully one of them'll work

Good Luck!

Let us know how it goes.

Cool
 
Old 08-31-2003, 09:23 PM   #7
jailles
LQ Newbie
 
Registered: May 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your help. I was able to quickly recreate the files. Luckily I had the same distro loaded, and had not done much to the original stock configs, except for several VirtualHosts.

Thank you so much for your prompt reply! It's time for a beer.

 
Old 08-31-2003, 11:39 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yes it sure is

Glad you got it fixed, either way

Cool
 
  


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
Httpd.conf And Httpd2.conf ???? alejandroye Linux - General 2 11-07-2004 12:23 AM
httpd.conf & ssl.conf kevinm2 Linux - Security 12 08-31-2004 01:25 PM
httpd.conf bumfan Linux - Newbie 1 04-29-2004 05:39 PM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-09-2004 11:45 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 PM.

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
Open Source Consulting | Domain Registration