View previous topic :: View next topic |
Author |
Message |
Bar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Jun 2003 Posts: 73
|
Posted: Fri Jul 04, 2003 9:08 pm Post subject: etc-update whoopsies *solved* |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Deathwing00 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1140581890451d29047ad41.jpg)
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Fri Jul 04, 2003 10:33 pm Post subject: |
|
|
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. ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Bar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Jun 2003 Posts: 73
|
Posted: Fri Jul 04, 2003 10:34 pm Post subject: |
|
|
good point, ill go hunt them down, thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gnoodle n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1099728113f0635f31154f.png)
Joined: 06 Jun 2003 Posts: 45 Location: Los Angeles, California
|
Posted: Sat Jul 05, 2003 5:43 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|