May 19th, 2020

Switzerland, neutrality

Rescue Mode Mapping


tty1:Rescue# mount /dev/sda1 /mnt

- else -

tty1:Rescue# pvs (sometimes lvm pvscan)
tty1:Rescue# vgs (sometimes lvm vgscan)
tty1:Rescue# lvs (sometimes lvm lvscan) (sometimes lvm lvs --all)

tty1:Rescue# vgchange -a y [vg]

tty1:Rescue# mount /dev/system/rootlv /mnt
tty1:Rescue# mount /dev/system/usrlv /mnt/usr
tty1:Rescue# mount /dev/system/optlv /mnt/opt
tty1:Rescue# mount /dev/system/varlv /mnt/var (optional)

For more programs to run, keep going:

tty1:Rescue# mount /dev/sxx1 /mnt/boot

tty1:Rescue# mount --bind /dev /mnt/dev
tty1:Rescue# mount --bind /proc /mnt/proc
tty1:Rescue# mount --bind /sys /mnt/sys
tty1:Rescue# mount --bind /run /mnt/run

chroot /mnt