export LVMPATH="/dev/vg-sdb/vm-130-disk-1" lvchange -a y $LVMPATH /sbin/fdisk -lu $LVMPATH losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition mkdir /mnt/tmp mount /dev/loop0 /mnt/tmp
# do
cd umount /mnt/tmp losetup -d /dev/loop0 lvchange -a n $LVMPATH