Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help! world file of portage is lost, need emerge everything.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
wangxiaohu
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 248

PostPosted: Fri Nov 05, 2004 10:58 pm    Post subject: Help! world file of portage is lost, need emerge everything. Reply with quote

During an upgrade of portage (the program), it crashed and accidentally delete my /var directory. So the most important file for the portage, which is /var/lib/portage/world is lost.

Now I cannot do emerge -uD world anymore, unless I want to compile everything from scratch.

How to solve?

Here is my emerge --info
Quote:
$ emerge --info
Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r2 i686)
=================================================================
System uname: 2.6.9-gentoo-r2 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.5
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers: sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -pipe -mmmx -msse -m3dnow -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe -mmmx -msse -m3dnow -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2 --quiet"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X acpi alsa avi bitmap-fonts cdr cjk cups eds esd fbcon foomaticdb freetype gif gmail gnome gpm gstreamer gtk gtk2 hal imap javascript jpeg libg++ libwww mmx mmx2 moznomail ncurses network nls nomalloccheck nptl nptlonly nvidia opengl operanom2 pdflib png ppds python quicktime sdl sse ssl truetype usb userlocales x86 xprint xv xvmc zlib"
Back to top
View user's profile Send private message
embobo
Guru
Guru


Joined: 19 May 2003
Posts: 311

PostPosted: Sat Nov 06, 2004 1:11 am    Post subject: Reply with quote

Everything in /var is gone? I think you may be SOL. Time to restore from backup.
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sat Nov 06, 2004 1:32 am    Post subject: Reply with quote

You could try "emerge --regen "
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
wangxiaohu
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 248

PostPosted: Sun Nov 07, 2004 2:31 am    Post subject: Reply with quote

1. emerge --regen does not get the world file back
2. There is no backup.

What to do next?
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Sun Nov 07, 2004 3:55 am    Post subject: Reply with quote

regenworld?

https://forums.gentoo.org/viewtopic.php?t=136627
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Sun Nov 07, 2004 4:01 am    Post subject: Reply with quote

i've been trying to remember that command for half a week. thanks. :D
Back to top
View user's profile Send private message
wangxiaohu
Apprentice
Apprentice


Joined: 15 Nov 2003
Posts: 248

PostPosted: Sun Nov 07, 2004 6:43 am    Post subject: Reply with quote

The problem is, I lost my /var totally....qpkg cannot find /var/log/emerge.log

I tested again, by creating ./var directory under /usr/portage, which is mounted from a reiserfs partition, and link -s this ./var to /var, that is, under root directory.

Then, I did an emerge sync, and it crashes saying cannot find /var directory. And the /var is totally deleted. Not the symbolic link, but the actual /usr/portage/var

This is a serious bug I think.....
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sun Nov 07, 2004 4:59 pm    Post subject: Reply with quote

Heres are my portage related /var dirs.
/var/db
/var/cache/edb/dep
/var/log/portage <---- optional You have to make this, particularly in your
case:wink: Then enable it in make.conf
If all this fails you could get a portage tarball. I belive this would make the directories for you again. Your real prob is that even doing this portage isnt going to know waht you have installed.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Sun Nov 07, 2004 9:41 pm    Post subject: Reply with quote

Moved from Portage & Programming, please follow-up to this topic:

https://forums.gentoo.org/viewtopic.php?t=171015
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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