Last active
March 24, 2023 23:19
-
-
Save gmolveau/fb7225b300c99b9e9c82a9c50c381844 to your computer and use it in GitHub Desktop.
linux/lvm mount external USB LVM partition
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
sudo vgscan | |
# note vg name | |
sudo vgchange -ay <VG-NAME> | |
sudo lvdisplay | |
# note `LV Path` | |
sudo mkdir -p /media/usb/lvm_usb | |
sudo mount <LV-PATH> /media/usb/lvm_usb | |
# to automount this partition | |
sudo nano /etc/fstab | |
#add this line | |
<LV-PATH> /media/usb/lvm_usb ext4 defaults 0 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment