Skip to content

Instantly share code, notes, and snippets.

@Taurolyon
Last active January 17, 2023 12:21
Show Gist options
  • Save Taurolyon/9d1c13bfff849bdfe13f02d019ae95e9 to your computer and use it in GitHub Desktop.
Save Taurolyon/9d1c13bfff849bdfe13f02d019ae95e9 to your computer and use it in GitHub Desktop.
Rescue mode LVM mount script
#!/bin/sh
volume=$(lvm vgscan | grep -oP '"\K[^"\047]+(?=["\047])')
vgchange -a y $volume
mount /dev/$volume/root /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment