Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
etc-update... WTF?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
makoffee
n00b
n00b


Joined: 05 Mar 2003
Posts: 22
Location: Minneapolis

PostPosted: Mon Jul 14, 2003 1:25 am    Post subject: etc-update... WTF? Reply with quote

I just ran etc-update for the first time cuz I was getting sick of all those notices when I merged suff telling me to "update" stuff in /etc/

ok wtf happened to ALL of my files in etc?!? is there any way to get them back???

I don't want to make them all again.

If I can't get them back, then why even have that freeking command?
_________________
-Makoffee
"Hey sexy mamma, wanna kill all human" - Bender B. Rodriguez
Back to top
View user's profile Send private message
ginji
n00b
n00b


Joined: 03 May 2003
Posts: 67
Location: Somewhere else

PostPosted: Mon Jul 14, 2003 1:34 am    Post subject: Reply with quote

that command is useful if you read what it says... there is no way to get your files back that i know off... start editing
Back to top
View user's profile Send private message
MJN222
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2002
Posts: 77
Location: Livermore, CA

PostPosted: Mon Jul 14, 2003 1:49 am    Post subject: Reply with quote

Sorry I can't help you get your files back, but I can explain what etc-update is useful for. (I know it won't be much consolation for you anytime soon, but an explanation helps me a bit). (Thought, you don't happen to make backups of /etc do you?)

Often when installing/upgrading a package, a default configuration file is placed in the /etc directory. This new file can quite easily have options for new features in this version, etc. However, it'll have the "factory" settings for everything. etc-update is a tool that, when used carefully, makes updating your software a painless process. You get to go right to the conflicting lines and edit them so that you get to keep your settings but still have the new settings to play with.

The downside of this is that if you just take the new files, your config gets blown out of the water, as you seem to have learned.
_________________
Do you lock your car when you leave it out in public? Why not do the same with your computer?
Back to top
View user's profile Send private message
makoffee
n00b
n00b


Joined: 05 Mar 2003
Posts: 22
Location: Minneapolis

PostPosted: Mon Jul 14, 2003 1:52 am    Post subject: DAMNIT! Reply with quote

shit, my computer is really fucked. I don't even want to get into this...
<this sucks>

I think I may just rebuild this system. not that I want to.
_________________
-Makoffee
"Hey sexy mamma, wanna kill all human" - Bender B. Rodriguez
Back to top
View user's profile Send private message
rogue
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2002
Posts: 99
Location: Falls Church, VA

PostPosted: Mon Jul 14, 2003 4:43 am    Post subject: Reply with quote

if you want to make sure this doesn't happen in the future, you should create a cron entry to backup your /etc/ directory weekly. it's really easy to write a bash script to do this and have it done
_________________
(rob)
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Mon Jul 14, 2003 5:27 am    Post subject: Reply with quote

when u emerge an app (or upgrade) it wants to install it's config files. luckily portage stops it from overwriting your config files, else u would find yourself in your current situation very quickly.

in comes etc-update, which is used for updating config files u need to. upgrading an app might need a diff type of config.

anyway it is safer to delete the UPDATES, and keep your original configs as opposed to overwriting with new and BLANK configs ;)

I'm not sure how well "merge config files" works :?
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Mon Jul 14, 2003 8:38 am    Post subject: Reply with quote

You don't need to rebuild your system, just boot from a live CD, chroot to your disk and edit the files that you should when you run the etc-update;)


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
Wilhelm
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 149

PostPosted: Mon Jul 14, 2003 4:47 pm    Post subject: Reply with quote

Hi,

Maybe you can regain a lot of your config files by getting hold of your file.ext~ files and renaming them. They should hold 90% of your old config.

Just so you don't seem to be the biggest fool in the land of Gentoo. I did the same thing and borked my etc directory. I thought they would update it CVS style. Luckily i did a 'cp -a' like backup previously which in essence backups your etc directory. From this i was able to get things back to normal again.

Backing up and backup strategies are an essential part of being a Linux sysadmin and will save your bacon every time. The perils of running root.

I have a logging/backup server which holds backups and logs of essential diretories like the portage DB and the etc directory. This means a full HardDisk crash can be resolved in a short period of time instead of starting all over again.

Other than that i'd like to see the gentoo developers put a message on etc-update telling you exactly what wil happen so you can't accidently bork your system. And why the hell doesn't it backup the old files to file.ext~ ???
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Mon Jul 14, 2003 6:32 pm    Post subject: Reply with quote

Once again, it shows that reading the documentation pays off.

This is documented well and is also covered by numerous threads here in the forums. I'm sorry it happened, but I really can't say that I feel bad.

Don't think about rebuilding, it's way easier to change your /etc/ config files, it can't be that many that you have changed.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum