LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to Retrive /etc(sys file) !! (https://www.linuxquestions.org/questions/linux-general-1/how-to-retrive-etc-sys-file-44587/)

hitesh_linux 02-08-2003 12:28 PM

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

trickykid 02-08-2003 12:31 PM

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.

hitesh_linux 02-08-2003 12:37 PM

hi
That's ok but how can retrive it,suggest me some setup for that.

thanx
Hitesh

KayJay 02-08-2003 01:20 PM

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.

nxny 02-08-2003 07:03 PM

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.


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