I reinstalled Ubuntu 12.04 after a corruption caused by a faulty operation (not much interesting but you can read about it). The old system had three partitions, one for boot, one for / and one for home. I followed these instructions to restore the system keeping my home dir. Basically what I did was:
- full backup of the old disc using
dd
- export the list of installed packages in the old system
- reinstall Ubuntu 12.04 not formatting the partition containing home directories
- reinstall the packages I had in the old system using the list of step 1.
Everything still works and most of the settings have been kept, but not all. I have my desktop icons, my firefox bookmarks, etc. But other configurations have been lost.
Now I'd like to replace the /etc
of the new system with the /etc
of the old one - I have a copy of it - so to have the same system as before, or at least very similar.
Before trying by myself to swap the new /etc
with the old one I'd like to be aware of the possible issues which could arise, so to prevent bad things from happening again.
Any thoughts or suggestions?
/etc/hosts
, and so. The problem for me is to know which files or directories to copy and which not... – Paolo Dec 10 '12 at 14:23/etc
contains many directories but most of them are used only by system and you don't need to worry about. The configurations you need to change in /etc are the ones from software you manually modified the config like apache, mysql, openvpn, cron jobs, ufw... and these should not be that much. Anyways keep the backup at hand and when you see something not working you can quickly compare the 2/etc
. – laurent Dec 10 '12 at 14:45