Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc is missing files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fobius
n00b
n00b


Joined: 18 Jan 2005
Posts: 20
Location: California

PostPosted: Sat Jan 07, 2006 7:13 pm    Post subject: /etc is missing files Reply with quote

Hi,

I was trying to remove /var/tmp/portage/....openoffice because I had run out of space trying to build OO2.0 on there but accidentally added /etc to that line as well. I stopped it before the command could finish execution, but there are some files missing from /etc now and the result is that my system has been crippled. Directories such as /etc/pam.d are missing and I tried to rescue it to the best of my ability, and got emerge to start up but it fails complaining about file "arch.list not being able to be found, missing portage tree" when arch.list is in /usr/portage/profiles. How would I get Portage to recognize this?

Also, I am assuming that if I can emerge --sync and rebuild world, then all configuration files will be replaced in /etc. Does anyone see a problem with this?

In the worst case, I might have to reinstall. Is it ok to use my existing partitions during the reinstall?

Thanks
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sat Jan 07, 2006 7:31 pm    Post subject: Re: /etc is missing files Reply with quote

fobius wrote:
Hi,

I was trying to remove /var/tmp/portage/....openoffice because I had run out of space trying to build OO2.0 on there but accidentally added /etc to that line as well. I stopped it before the command could finish execution, but there are some files missing from /etc now and the result is that my system has been crippled. Directories such as /etc/pam.d are missing and I tried to rescue it to the best of my ability, and got emerge to start up but it fails complaining about file "arch.list not being able to be found, missing portage tree" when arch.list is in /usr/portage/profiles. How would I get Portage to recognize this?


Also, I am assuming that if I can emerge --sync and rebuild world, then all configuration files will be replaced in /etc. Does anyone see a problem with this?

In the worst case, I might have to reinstall. Is it ok to use my existing partitions during the reinstall?

Thanks

Your make.profile link might have been erased. That is why portage cant reach that file. You need to recreate it. It will be something like "ln -s /usr/portage/profiles/<insert your profile here> /etc/make.profile". Then you can just "emerge -e world".
Back to top
View user's profile Send private message
nectarboi
n00b
n00b


Joined: 07 Jan 2006
Posts: 12
Location: Orange County, CA

PostPosted: Sat Jan 07, 2006 7:47 pm    Post subject: Reply with quote

Hello.
Sounds like the link of: "/etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.1/" was deleted. A emerge sync will fix that, but since you can't sync try downloading a portage snapshot. For other files you should be able to find them in the stage3 install file. The world file is "/var/lib/portage/world" so that should still be there.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Jan 07, 2006 7:50 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
Not an installing gentoo problem. Gentoo is installed... though slightly uninstalled at the moment.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
fobius
n00b
n00b


Joined: 18 Jan 2005
Posts: 20
Location: California

PostPosted: Sat Jan 07, 2006 8:27 pm    Post subject: Reply with quote

thanks for the suggestions, but I did check the make.profile link but emerge --sync still fails because portage can't find arch.list. Could it be that I'm missing some system configuration files as well?

this is what my /etc looks like:
Code:

-rw-r--r--  1 root root   4073 Aug 16 22:11 DIR_COLORS
drwxr-xr-x  3 root root   4096 Aug 18 19:59 acpi/
-rw-r--r--  1 root root    152 Jan  7 10:50 blkid.tab
-rw-r--r--  1 root root     76 Jan  7 10:22 blkid.tab.old
drwxr-xr-x  2 root root   4096 Aug 17 13:44 bonobo-activation/
drwxr-xr-x  2 root root   4096 Aug 18 12:02 cron.daily/
drwxr-xr-x  2 root root   4096 Mar 10  2005 cron.monthly/
drwxr-xr-x  2 root root   4096 Aug 16 21:27 cron.weekly/
-rw-r--r--  1 root root   1776 Jan  1 12:09 csh.env
drwxr-xr-x  5 root root   4096 Dec 27 00:11 cups/
drwxr-xr-x  2 root root   4096 Aug 18 18:02 default/
drwxr-xr-x  5 root root   4096 Dec 28 10:51 env.d/
-rw-r--r--  1 root root   1669 Nov 12 08:28 etc-update.conf
-rw-r--r--  1 root root   1490 Dec 25 22:53 fam.conf
-rw-r--r--  1 root root   1246 Dec 26 21:59 fdprm
-rw-r--r--  1 root root    400 Aug 24 16:31 filesystems
drwxr-xr-x  2 root root   4096 Aug 17 10:44 fonts/
-rw-r--r--  1 root root   1404 Aug 31 12:44 fstab
drwxr-xr-x  4 root root   4096 Jan  7 09:38 gconf/
-rw-r--r--  1 root root  10793 Aug 17 13:37 gnome-vfs-mime-magic
-rw-r--r--  1 theo users   741 Jan  7 11:13 group
-r--------  1 root root    618 Dec  1 23:19 gshadow
drwxr-xr-x  2 root root   4096 Aug 25 13:09 gtk/
drwxr-xr-x  2 root root   4096 Nov  1 17:40 gtk-2.0/
-rw-r--r--  1 root root   1302 Oct  6 21:23 host.conf
drwxr-xr-x  2 root root   4096 Dec 12 23:31 init.d/
-rw-r--r--  1 root root     30 Aug 24 16:31 issue
-rw-r--r--  1 root root  51608 Jan  7 10:19 ld.so.cache
-rw-r--r--  1 root root     73 Jan  7 10:06 ld.so.conf
-rw-r--r--  1 root root    602 Aug 16 21:08 locales.build
drwxr-xr-x  2 root root   4096 Dec  1 22:58 mail/
-rw-r--r--  1 root root   2235 Dec  1 22:58 mailcap
-rw-r--r--  1 root root   1130 Jan  7 11:15 make.conf
-rw-r--r--  1 root root  16174 Dec 26 21:54 make.conf.example
lrwxrwxrwx  1 root root     48 Aug 16 12:09 make.profile -> ../usr/portage/profiles/default-linux/x86/2005.0
-rw-r--r--  1 root root   4575 Aug 16 21:27 man.conf
-rw-r--r--  1 root root  20310 Nov 30 22:34 mime.types
-rw-r--r--  1 root root   5957 Jan  3 23:35 modprobe.conf
-rw-r--r--  1 root root   5957 Jan  3 23:35 modprobe.conf.old
drwxr-xr-x  2 root root   4096 Sep 27 18:24 modules.autoload.d/
-rw-r--r--  1 root root   4293 Jan  3 23:35 modules.conf
-rw-r--r--  1 root root   4293 Jan  3 23:35 modules.conf.old
drwxr-xr-x  2 root root   4096 Sep 21 22:42 modules.d/
-rw-r--r--  1 root root   3688 Nov  8 19:45 mplayer.conf
-rw-r--r--  1 root root    372 Jan  7 11:22 mtab
drwxr-xr-x  2 root root   4096 Dec 13 00:12 mysql/
-rw-r--r--  1 root root    503 Oct  6 21:23 nsswitch.conf
-rw-r--r--  1 root root    206 Aug 28 16:43 ntp.conf
-rw-r--r--  1 root root    181 Nov  7 21:04 opera6rc
-rw-r--r--  1 root root     58 Nov  7 21:04 opera6rc.fixed
drwxr-xr-x  2 root root   4096 Mar 10  2005 opt/
-rw-r--r--  1 root root   1903 Dec  1 23:19 passwd
-rw-------  1 root root   1829 Aug 28 12:47 passwd-
-rw-r--r--  1 root root    680 Dec 28 13:22 pear.conf
drwxr-xr-x  6 root root   4096 Dec  3 01:43 php/
drwxr-xr-x  2 root root   4096 Jan  7 11:44 portage/
-rw-r--r--  1 root root   2053 Aug 24 16:31 profile
drwxr-xr-x  2 root root   4096 Aug 17 20:54 profile.d/
-rw-r--r--  1 root root   1778 Jan  1 12:09 profile.env
-rw-r--r--  1 root root   1636 Aug 28 15:04 rc.conf
-rw-r--r--  1 root root     87 Jan  6 18:54 resolv.conf
-rw-r--r--  1 root root     64 Jan  2 20:28 resolv.conf-eth0.sv
lrwxrwxrwx  1 root root     13 Aug 16 21:18 rmt -> /usr/sbin/rmt
drwxr-xr-x  6 root root   4096 Mar 10  2005 runlevels/
drwxr-xr-x  2 root root   4096 Aug 28 18:10 scim/
-rw-r--r--  1 root root   1719 Oct 19 17:59 scsi_id.config
-rw-r--r--  1 root root  29366 Aug 24 16:31 services
drwxr-xr-x  2 root root   4096 Aug 17 15:59 sgml/
drwxr-xr-x  2 root root   4096 Aug 17 20:54 skel/
drwxr-xr-x  2 root root   4096 Oct 20 18:15 ssh/
drwxr-xr-x  5 root root   4096 Aug 16 21:50 ssl/
drwxr-xr-x  2 root root   4096 Aug 17 16:02 svgalib/
drwxr-xr-x  5 root root   4096 Aug 31 11:58 udev/
drwxr-xr-x  2 root root   4096 Aug 17 16:02 vga/
drwxr-xr-x  2 root root   4096 Dec 12 00:26 vhosts/
drwxr-xr-x  2 root root   4096 Nov 11 21:43 vim/
drwxr-xr-x  2 root root   4096 Oct 19 19:18 wget/
drwxr-xr-x  3 root root   4096 Aug 18 17:29 xdg/
drwxr-xr-x  2 root root   4096 Dec  8 23:53 xinetd.d/
drwxr-xr-x  2 root root   4096 Aug 17 16:06 xml/
-rw-r--r--  1 root root   1587 Dec 26 22:21 xpdfrc
-rw-r--r--  1 root root     29 Aug 28 16:43 yp.conf


I had some stuff in /etc/portage but that seemed to be wiped out. I'm not sure what else I might be missing since I had to manually recreate /etc/group and /etc/ld.so.conf since those were wiped out too. Any other ideas?
Back to top
View user's profile Send private message
fobius
n00b
n00b


Joined: 18 Jan 2005
Posts: 20
Location: California

PostPosted: Sun Jan 08, 2006 3:12 am    Post subject: Reply with quote

I'm thinking a reinstall should be the way to go...can I use my existing partitions during the reinstall?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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