1 |
On Thu, Mar 22, 2007 at 08:42:35AM +0000, Penguin Lover Mick squawked: |
2 |
> You may find that a --fix-fixable does the trick and you don't have to |
3 |
> re-install - this usually only works if you keep your fingers crossed at the |
4 |
> same time. ;-) |
5 |
|
6 |
I wasn't so lucky. :( |
7 |
|
8 |
So now I am re-installing system. (Argh, I started an emerge -e system |
9 |
at 4 in the morning, and I completely forgot to reset my /var/tmp to |
10 |
the symlink that I usually used. This morning I woke up to see that it |
11 |
stopped on the second package because I ran out of space on /var). |
12 |
|
13 |
> > Let me be slightly more concrete. I plan to: |
14 |
> > |
15 |
> > download a stage3 tar ball |
16 |
> > unroll the tar ball on my ex-root partition |
17 |
> > (follow the handbook) |
18 |
> > chroot |
19 |
> > emerge --sync |
20 |
> > copy over my /etc from my backups |
21 |
> > rebuild toolchain |
22 |
> > mount my /var partition |
23 |
> > emerge -e world |
24 |
> > |
25 |
> > Is there any obvious flaws in that? |
26 |
> |
27 |
> The obvious flaw is that if the fs corruption is caused by hardware failure |
28 |
> you may be back to square one in the near future. OTH it may just be the |
29 |
> result of fs fragmentation because you keep your /usr/portage on the same |
30 |
> partition as /. I guess you can try moving your /usr into a new partition |
31 |
> and see how things evolve thereafter. Did I say make a back up? |
32 |
> |
33 |
|
34 |
Well, I hope not. I did run smartctl from the liveCD and the longtest |
35 |
didn't see anything wrong with the disc. The damage was all very |
36 |
localized to /. (in fact, /usr). |
37 |
|
38 |
It might have to do with a bump I gave the laptop: I was getting up to |
39 |
use the bathroom and in bringing the laptop from my lap to the coffee |
40 |
table, bumpped it on the armrest of my chair. I guess it could cause a |
41 |
hardware failure, but so far I am praying it isn't. |
42 |
|
43 |
On the other hand, my desktop has survived several guttings due to bad |
44 |
harddrives (once it was due to a flatmate who likes to slam his doors |
45 |
shut... the shock travels across the plaster wall, down my desk, and |
46 |
into my box), and I remember the symptoms of hardware failure to be |
47 |
not so quick acting and to have given different error messages. |
48 |
|
49 |
As to backups, I always keep backups of the data partition. I figured |
50 |
that whatever I can rebuild from the liveCD probably isn't worth the |
51 |
backup. I'll see whether this experience teaches me otherwise. |
52 |
|
53 |
Ah... and one flaw in my plan that I discovered: my /etc configs |
54 |
includes those for software I haven't yet rebuilt and those for stuff |
55 |
in system that has been revised many times since 2006.1. For example, |
56 |
after just copying over my backup /etc, I discovered I cannot log in. |
57 |
The liveCD uses pam and I use shadow and some files were overwrote. |
58 |
Good that I was logged in at another console (something I learned from |
59 |
experience... that when fixing a computer never to log out completely |
60 |
until you're sure you can get back in) and emerged shadow. Another |
61 |
example is that portage complained about the overlays that exists in |
62 |
my make.conf but not on my filesystem. |
63 |
|
64 |
W |
65 |
-- |
66 |
If it weren't for the last minute, |
67 |
nothing would ever get done. |
68 |
Sortir en Pantoufles: up 104 days, 11:57 |
69 |
-- |
70 |
gentoo-user@g.o mailing list |