infrastructure:proxmox_mount_lvm_disk
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| infrastructure:proxmox_mount_lvm_disk [2019/01/10 15:23] – rguyader | infrastructure:proxmox_mount_lvm_disk [2019/01/10 15:24] (Version actuelle) – rguyader | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| <code bash> | <code bash> | ||
| - | | + | export LVMPATH="/ |
| - | lvchange -a y $LVMPATH | + | lvchange -a y $LVMPATH |
| - | /sbin/fdisk -lu $LVMPATH | + | /sbin/fdisk -lu $LVMPATH |
| - | losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition | + | losetup /dev/loop0 $LVMPATH -o $((XXXXX * 512)) # replace XXXXX by the offset of the partition |
| - | mkdir /mnt/tmp | + | mkdir /mnt/tmp |
| - | mount /dev/loop0 /mnt/tmp | + | mount /dev/loop0 /mnt/tmp |
| </ | </ | ||
| - | | + | # do |
| | | ||
| <code bash> | <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.1547133811.txt.gz · Dernière modification : 2019/01/10 15:23 de rguyader