/etc folder deleted any solution?

Hi,
I accidentally deleted etc folder from root, I did a mistake by running "rm -rf /etc" :wall:
Is there anyway to repair my Fedora 13 !?

Restore it from backup.

I don't have a backup! I tried to mount the disk and copy etc folder from some other machine but didn't work. :(:wall:

In what way did it not work?

That would've been my next suggestion. There's a lot of things with finicky permissions inside /etc/, be sure you copied them in a manner that preserved them exactly. This should do it I think:

cd /path/to/source_mountpoint
tar -cpf - ./etc/ | tar -C /path/to/dest_mountpoint/ -xpf -

Of course, you'll still have a big mess to clean up after that with getting the system services right, generating new ssh keys for sshd and apache, getting the usernames and passwords sorted out, and fixing all your per-server settings.

1 Like

Would you please explain it more? I am a noob and I don't want to damage my OS more than this! :cool:

I'll need more specific questions to give more specific answers.