Last active
January 17, 2023 12:21
-
-
Save Taurolyon/9d1c13bfff849bdfe13f02d019ae95e9 to your computer and use it in GitHub Desktop.
Rescue mode LVM mount script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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