Operating System - Linux
1830122 Members
14047 Online
109998 Solutions
New Discussion

did something stupid! Removed /dev HELP!!

 
renarios
Trusted Contributor

did something stupid! Removed /dev HELP!!

Hi All,

I really screwed up this time. By mistake I removed /dev. I still got one open Putty session to the fedora 3 machine, but I just don’t know what to do (with myself).
Any ideas?

Fast response would be really appreciated!

Cheers,

Renarios
Nothing is more successfull as failure
4 REPLIES 4
Alex Lavrov.
Honored Contributor

Re: did something stupid! Removed /dev HELP!!

Do you have backup of your system somewhere and you can restore it?

Did you change there stuff? You can install fresh linux box and copy stuff from there.

Beside this, I don't know what else can you do.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Gopi Sekar
Honored Contributor

Re: did something stupid! Removed /dev HELP!!


if you are using RedHat/Fedora,then there is a chance: I believe these distro's are having one RPM package just for setting up /dev/ filesystem (the RPM contains all device files including permission).

I am not able to recall the package name, but if you can search in the distribution's RPM package list then it should be there.

Just Re-install the RPM and your device filesystem should be up and running.

Hope this helps,
Gopi
Never Never Never Giveup
renarios
Trusted Contributor

Re: did something stupid! Removed /dev HELP!!

Well I'm an unbelieveble .... I had a copy of the dev directory somewhere in /tmp, but i didn't know that at that time. I could not recover from tape, because /dev/snt0 was gone too.
Luckely I could copy all files from /tmp/etc/dev to /dev, but I would sleep well tonight.
I'm leeching fedora4 at the moment, so there's one little advantage in this mess.

Thanks guy for the responses.

Closing now!

Cheers,

Renarios
Nothing is more successfull as failure
renarios
Trusted Contributor

Re: did something stupid! Removed /dev HELP!!

Recovered files from local filesystem
Nothing is more successfull as failure