Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 2
    There's quite a lot of files that you can't transfer between systems from /etc "just like that", including network configurations, configured mount points, mail settings, host SSH keys and config files for other packages, and a number of other things. The best option would be to restore from backup. Commented Jan 30, 2023 at 23:47
  • @Kusalananda thanks, I see. What exactly do you mean by restore from backup? Commented Jan 31, 2023 at 0:10
  • 1
    You've never should have done that. /etc is highly dependent on installed packages and different systems mustn't be synchronized unless you're 100% sure you know what you're doing. This answer could help you: unix.stackexchange.com/a/731966/260833 only instead of /var you should use /etc. Mounting var is not necessary of course. Commented Jan 31, 2023 at 0:55
  • @ArtemS.Tashkinov thanks. Can you write an answer please? I'm not sure how to use the answer you linked. I'm also not sure how to mount /etc, can you explain? Commented Jan 31, 2023 at 2:23
  • 1. Boot in recovery 2. chroot into your system 3. restorecon -rv /etc 4. reboot Commented Jan 31, 2023 at 2:53