Professional Documents
Culture Documents
How I Restored Accidentally Deleted
How I Restored Accidentally Deleted
Last night I did it. After probably 5 years of using linux, I managed to accidentally delete my /etc directory. Here's what worked for me--ymmv--it took me a couple of hours to figure out what to do, but if you do these steps it should be lots shorter for you:
1. I started out with a fairly up to date backup of my /etc directory--it was about 2 weeks old. These I make automatically with a cron job using rsync.
3. Ctrl-alt-delete would not restart the system. Had to manually pull the power and restart.
4. Started live CD in safe graphics mode (I have dual screen using nvidia, and using the standard mode gave me a screen that was unreadable).
5. Went to terminal and created mountpoints: sudo mkdir /media/main sudo mkdir /media/sdb1
6. sudo gedit /etc/fstab, and copied the mount lines for these two hard drives from the backup files I had, one character at a time.
7. sudo mount -a
9. sudo reboot
The only glitch I found--firefox would not start. Tried it from command line and got "Could not find compatible GRE between version 1.9.0.1 and 1.9.0.*."
I do not guarantee this will work in your situation, but I thought it might be useful to others in the same predicament--or me if I do it again!