/etc folder deleted any solution?


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat /etc folder deleted any solution?
# 1  
Old 11-10-2011
/etc folder deleted any solution?

Hi,
I accidentally deleted etc folder from root, I did a mistake by running "rm -rf /etc" Smilie
Is there anyway to repair my Fedora 13 !?
# 2  
Old 11-10-2011
Restore it from backup.
# 3  
Old 11-10-2011
I don't have a backup! I tried to mount the disk and copy etc folder from some other machine but didn't work. SmilieSmilie
# 4  
Old 11-10-2011
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:

Code:
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.

Last edited by Corona688; 11-10-2011 at 01:05 PM..
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 11-11-2011
Would you please explain it more? I am a noob and I don't want to damage my OS more than this! Smilie
# 6  
Old 11-12-2011
I'll need more specific questions to give more specific answers.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies

2. Shell Programming and Scripting

Shell scripting for moving folder specific files into target directory of that country folder.

I need help to write shell script to copy files from one server to another server. Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies

3. UNIX for Advanced & Expert Users

Recover Deleted Folder using rm command

Hi All, I accidentally deleted a important folder using rm command. Can i recover that folder. I don't have any backup mechanism. Please suggest.... its very urgant..Plz (1 Reply)
Discussion started by: vijay.gandra
1 Replies

4. Shell Programming and Scripting

File Management: How do I move all JPGS in a folder structure to a single folder?

This is the file structure: DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies

5. Solaris

Deleted X11R6 folder - Help!

I am not a Solaris guy by a long stretch, but I have to work with it from time to time. While doing some unrelated testing I accidentally deleted the X11R6 directory and no longer have a GUI for the console. I'm looking for help to get it back. I deleted it through the gui, so I figured I could... (6 Replies)
Discussion started by: snowdust
6 Replies

6. Solaris

restore deleted folder

Hi, Can someone help me out as to how to recover a deleted folder? the user id which deleted the folder is known, the approx time is known. Its urgent, plz help (2 Replies)
Discussion started by: aboxilica
2 Replies
Login or Register to Ask a Question