ehowton (ehowton) wrote,
ehowton
ehowton

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

Tags: linux
Subscribe

Recent Posts from This Journal

  • Query a List of Hostnames to Create /etc/hosts File

    for x in `cat hostnames`; do echo $(nslookup $x | grep -e Address | sed -n 2p | sed -r 's/.{9}//') $x ; done >> hostfile Or, add SHORTNAME…

  • Speeding in Reverse, Pt. VII

    Two dreams, a week apart (or there about). First dream, I was Mormon. It was weird to be sure, but the girls were hot and I was working the room…

  • Indian Burial Ground

    Its been two years we've been in this house. Two excruciating years atop a deeply buried curse, due to the imagined Indian burial ground mere feet…

  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments