System-Rettung
Zugriff auf das System mittels Boot-CD
Für Wartungsarbeiten (Neuinstallation, Update, Rettung bei fehlerhaften Booten) kann der Zugriff auf das System nur mittels bootfähiger CD erfolgen. Dies wird im Folgenden anhand der SysResc-CD beschrieben.
- Booten des Systems mit der SysResc-CD. Am Bootprompt sollte der passende Kernel (32 oder 64 Bit) ausgewählt werden.
- Aufschließen der verschlüsselten Partition:
root@sysresccd /root % cryptsetup luksOpen /dev/sda2 cryptlvm
Damit wird die
Enter LUKS passphrase:
key slot 0 unlocked.
Command successful. - Zugriff auf das Physical Volume:
root@sysresccd /root % pvscan
xvxycv
PV /dev/dm-0 VG system lvm2 [133.51 GB / 35.51 GB free]
Total: 1 [133.51 GB] / in use: 1 [133.51 GB] / in no VG: 0 [0 ]
root@sysresccd /root % vgchange -a y
4 logical volume(s) in volume group "system" now active - Anzeige der vorhandenen Logical Volumes:
root@sysresccd /root % lvdisplay
xgx
--- Logical volume ---
LV Name /dev/system/lvroot
VG Name system
LV UUID v3nR76-xqrS-UaS5-TIU8-XD8o-YAGk-GjsKU1
LV Write Access read/write
LV Status NOT available
LV Size 20.00 GB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/system/lvportage
VG Name system
LV UUID njx2s2-EpdF-EdYr-3PEW-163j-ACT3-3VQbs3
LV Write Access read/write
LV Status NOT available
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/system/lvswap
VG Name system
LV UUID LWlI9m-vuAa-8NHn-zx9p-TfQy-CKK0-lcQWrf
LV Write Access read/write
LV Status NOT available
LV Size 8.00 GB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Name /dev/system/lvhome
VG Name system
LV UUID 4lq3L1-Tgpb-6Dj9-wq8G-PRl5-XAYt-EM4rdH
LV Write Access read/write
LV Status NOT available
LV Size 15.00 GB
Current LE 3840
Segments 1
Allocation inherit
Read ahead sectors auto - Aktivieren der Logical Volumes:
root@sysresccd /root % vgscan
Reading all physical volumes. This may take a while...
Found volume group "system" using metadata type lvm2
root@sysresccd /root % vgchange -ay
5 logical volume(s) in volume group "system" now active - Mounten des gewünschten Logical Volume:
root@sysresccd /root % mount /dev/system/lvroot /mnt/gentoo
aagfadsf
root@sysresccd /root % mount /dev/system/lvportage /mnt/gentoo/usr/portage
afasdf - sdgf
Artikelaktionen