infrastructure:proxmox_mount_lvm_disk
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
infrastructure:proxmox_mount_lvm_disk [2018/08/01 15:16] – créée ronan | infrastructure:proxmox_mount_lvm_disk [2019/01/10 15:24] (Version actuelle) – rguyader | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | | + | <code bash> |
- | lvchange -a y $LVMPATH | + | export LVMPATH="/ |
- | /sbin/fdisk -lu $LVMPATH | + | lvchange -a y $LVMPATH |
- | losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition | + | /sbin/fdisk -lu $LVMPATH |
- | mkdir /mnt/tmp | + | losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition |
- | mount /dev/loop0 /mnt/tmp | + | mkdir /mnt/tmp |
+ | mount /dev/loop0 /mnt/tmp | ||
+ | </ | ||
+ | |||
+ | # do | ||
| | ||
- | # do | + | <code bash> |
- | + | cd | |
- | | + | umount /mnt/tmp |
- | umount /mnt/tmp | + | losetup -d / |
- | losetup -d / | + | lvchange -a n $LVMPATH |
- | lvchange -a n $LVMPATH | + | </ |
infrastructure/proxmox_mount_lvm_disk.1533136594.txt.gz · Dernière modification : 2018/08/01 15:16 de ronan