Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Last active March 24, 2023 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gmolveau/fb7225b300c99b9e9c82a9c50c381844 to your computer and use it in GitHub Desktop.
Save gmolveau/fb7225b300c99b9e9c82a9c50c381844 to your computer and use it in GitHub Desktop.
linux/lvm mount external USB LVM partition
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