1 |
Am 03.07.2012 20:00, schrieb David Kuhl: |
2 |
> I'm so stuck with this Gentoo laptop. It started with a standard |
3 |
> update which was the first in three months. Then when the X didn't |
4 |
> run due to xorg-server getting upgraded, the 3.3.8 gen kernel was |
5 |
> suppose to be built with KSM. That failed due to mkfs_ext2.h. The a |
6 |
> beta of genkernel was used and which built the kernel and initramfs, |
7 |
> but the rest of the machine looks like it's gone. All the LVM2 |
8 |
> partitions are broke: /home /var /opt /usr. What's the best way to |
9 |
> get this back without loosing the system? Thanks |
10 |
> |
11 |
|
12 |
Step one: Do a full disk backup. Boot to a live-CD, then back everything |
13 |
up with dd or -- if available -- ddrescue. |
14 |
|
15 |
Step two: Replace broken partitions with `mount --bind` versions from |
16 |
the live-CD. Then chroot into your system. Refer to the Gentoo Handbook |
17 |
for details. |
18 |
|
19 |
Step three: Do you still have /etc? In that case, you can try to restore |
20 |
the LVM metadata from backups that are automatically created by certain |
21 |
operations. |
22 |
|
23 |
Try `vgcfgrestore --list <volume group>` from a to see what is available. |
24 |
|
25 |
Step four: Post more info. |
26 |
|
27 |
Regards, |
28 |
Florian Philipp |