Resizing root partions in VMWare

Just a quick script to resize a root partition in linux live so I can remember. I’ll be writing up a explanation of all the steps later this week.

echo “1” > /sys/class/scsi_device/0\:0\:0\:0/device/rescan
echo “1” > /sys/class/scsi_device/2\:0\:0\:0/device/rescan
fdisk /dev/sda
partx -l /dev/sda
partx -v -a /dev/sda
vgextend /dev/vg_00 /dev/sda3
lvextend -l +100%FREE -r /dev/vg_00/lv_root

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *