Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
etc-update whoopsies *solved*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Bar
n00b
n00b


Joined: 21 Jun 2003
Posts: 73

PostPosted: Fri Jul 04, 2003 9:08 pm    Post subject: etc-update whoopsies *solved* Reply with quote

while messing with getting sound mixing working i decided to reemerge esound, and afterwords it said some configs needed updates. now i have already read of a few people messing up their systems with etc-update so i went into /etc and cp * /home/bar/etcbackup just incase, of course i wasnt paying attention about what files it was overriding and when i rebooted, it reboots insanely fast, everything that used to load it still says [ ok ] next to but it just flys by all of them, even eth0, so obviously some of my configs died. i copied all my files from backup back into /etc and its still not working. any ideas or need to see any config files? btw /etc/dhcpc/net-eth0.info looks fine.

EDIT: In the end all i had to do was dhcpcd eth0 and it reconfigured itself correctly (network worked right off install)


Last edited by Bar on Sat Jul 05, 2003 5:44 am; edited 1 time in total
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Fri Jul 04, 2003 10:33 pm    Post subject: Reply with quote

When I do an env-update I _never_ let it overwrite my config files. I always remove the new files, unless I'm completely sure I want the new file. The problem that you seem to have is that you backed-up only /etc's config files, but not others that are inside directories of /etc... You lost thos files!!! You have to reconfigure them again. :(
Back to top
View user's profile Send private message
Bar
n00b
n00b


Joined: 21 Jun 2003
Posts: 73

PostPosted: Fri Jul 04, 2003 10:34 pm    Post subject: Reply with quote

good point, ill go hunt them down, thanks
Back to top
View user's profile Send private message
gnoodle
n00b
n00b


Joined: 06 Jun 2003
Posts: 45
Location: Los Angeles, California

PostPosted: Sat Jul 05, 2003 5:43 am    Post subject: Reply with quote

i use "tar -zcvf" and "cp -r" for my back up needs.

you might already know this, but for those who come across this and don't know, here are some of the commands i use to backup my "/etc" directory. note: these should all be done as the "root" user, in order to properly traverse all subdirectories regardless of permissions.

the following will create a gzipped tarball of the "/etc" directory:
Code:

tar -zcvf my_etc_archive.tar.gz /etc
mv my_etc_archive.tgz /root



the following will restore a gzipped tarball into the "/root" directory, recreating the "/etc" directory and ending up with "/root/etc"
Code:

tar -zxvf my_etc_archive.tar.gz -C /root



or for the really adventurous and supremely confident, you can recreate the contents of the gzipped tarball directly into the "/etc" directory...not recommended though:
Code:

tar -zxvf my_etc_archive.tar.gz -C /



in order to relocate a directory and all its contents including subdirectories:
Code:

mv /root/etc/* /etc     # moves everything in /root/etc into /etc
cp -r /root/etc/* /etc   # copies everything in /root/etc into /etc
cp -ar /root/etc/* /etc  # copies everything and preserve permissions



i know, you could just say "cp -r /root/etc /" but the paranoid in me likes to really spell things out

[/code]
_________________
Gnoodle's Not Only an Open source Devoted Linux Enthusiast

Linux: the choice of a GNU generation
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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