1 |
On 14 Jun, Dru Kargin wrote: |
2 |
> On 06/14/10 12:19, Volker Armin Hemmann wrote: |
3 |
>> On Montag 14 Juni 2010, Helmut Jarausch wrote: |
4 |
>> |
5 |
>>> On 14 Jun, Volker Armin Hemmann wrote: |
6 |
>>> |
7 |
>>>> On Montag 14 Juni 2010, Helmut Jarausch wrote: |
8 |
>>>> |
9 |
>>>>> Hi, |
10 |
>>>>> |
11 |
>>>>> due to a disk crash I've lost my root partition. |
12 |
>>>>> Unfortunately, the backup version is 4 weeks old. |
13 |
>>>>> But my /usr partition is up-to-date and I have |
14 |
>>>>> binary build-pkgs. |
15 |
>>>>> What's the fastest way to restore the portage-relevant |
16 |
>>>>> data on the root partition? |
17 |
>>>>> |
18 |
>>>>> Many thanks for a hint, |
19 |
>>>>> Helmut. |
20 |
>>>>> |
21 |
>>>> if /var/db survived, you can grep for /bin /lib /sbin etc in /var/db and |
22 |
>>>> install the packages hit. |
23 |
>>>> |
24 |
>>> Thanks, but unfortunately /var was on the root partition. |
25 |
>>> |
26 |
>>> So, I have to emerge -k --update @world @system . |
27 |
>>> |
28 |
>>> Helmut. |
29 |
>>> |
30 |
>> except that without /var portage does now know what @system or @world is made |
31 |
>> off. |
32 |
>> |
33 |
>> |
34 |
> If you have a 4-week old version of /var/db, you can probably use that |
35 |
> for the sake of rebuilding/unpackaging system and world. Hopefully, |
36 |
> system and world won't have changed so much in four weeks that a |
37 |
> ground-up rebuild will be more efficient. |
38 |
|
39 |
Yes, I'm trying that. Though I've encountered some difficulties. |
40 |
E.g. the 'old' system had gcc-4.4.3-r2 in slot (4.4) while the /usr |
41 |
partition contained gcc-4.4.4. Trying to emerge gcc-4.4.4 (binary) |
42 |
portage went into a loop (at least it would have taken more than an hour |
43 |
on a fast machine). I had to fetch /etc/env.d/gcc from a similar machine |
44 |
here. The problem seems to be that during installation portage tries to |
45 |
remove a version which isn't installed anymore. |
46 |
Meanwhile I could reinstall gcc-4.4.4 which was the biggest corner |
47 |
(hopefully). |
48 |
|
49 |
Thanks, |
50 |
Helmut. |