LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2003, 12:28 PM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
Post How to Retrive /etc(sys file) !!


Hi ,

While working in Redhat 7.2 Box,I had deleted /etc file,
i had given this command as root

root:rm -fR /etc

now i had face so may problem,

plz any one can tell me how to retrive /etc file.

i tried to retrive it,

Thanx in advance

Hitesh
 
Old 02-08-2003, 12:31 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Unless you got it backed up.. your pretty much screwed really. Unless somehow you can get a mock default configuration but even then you've lost some important configuration files, like passwd, group, etc...

I don't know what to tell you bud, seems like this would be good time to back up anything else you want to save and reinstall, probably lot less trouble.
 
Old 02-08-2003, 12:37 PM   #3
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
hi
That's ok but how can retrive it,suggest me some setup for that.

thanx
Hitesh
 
Old 02-08-2003, 01:20 PM   #4
KayJay
Member
 
Registered: Mar 2002
Location: dev/null
Distribution: redhat, mandrake
Posts: 218

Rep: Reputation: 30
Quote:
Originally posted by hitesh_linux
hi
That's ok but how can retrive it,suggest me some setup for that.

thanx
Hitesh
u can't retrieve it, it's gone.. flushed
if u delete something it's gone...that's why u delete it
to make it dissapear.
 
Old 02-08-2003, 07:03 PM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by hitesh_linux
hi
That's ok but how can retrive it,suggest me some setup for that.

thanx
Hitesh
If you use ext3, you are pretty much screwed. If ext2, there is a remote chance that you can get your system back on its feet if you have a thorough knowledge of what your config files ( /etc/*) look like. I mean, you should be able to guess the filename from looking at its contents. That is if you havent moved things around and overwritten the deleted ( unlisted ) filesystem blocks already. Not to give you false hopes, /etc is vital to the proper operation.

have a look at..
http://chandra.ph1.uni-koeln.de/linu...ndeletion.html

Good luck. You need it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/sys/fs/file-nr ?? jharris Linux - General 5 07-27-2009 06:07 PM
/proc/sys/fs/file-max vaginismus Linux - General 1 10-31-2005 11:34 PM
Unable to send or retrive file using vsftpd yspl Linux - Networking 4 09-29-2005 10:10 AM
Is a Linux sys w/o any passwd's as secure as a microsoft windows sys w/no passwd? t3gah Linux - Security 4 04-22-2005 08:01 PM
Redhat 7.1-error during file sys. check-what do I do? wuffneezell Linux - Newbie 1 04-11-2004 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:55 AM.

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