# Resize vm disk

- Resize disk in the vm's hardware tab using proxmox webUI
- Find disk's name (usually for us sda)
- launch parted `parted /dev/sda`
- use `print` to print the current partition table (replace sda with disk's name)
- resize your taget partition with `resizepart <PART's ID>  100%`
- Finally, `quit` parted and run `resize2fs /dev/sda{PART's ID}`

<span style="color: rgb(0, 0, 0);">Useful : [https://stackoverflow.com/questions/57302142/why-df-h-and-lsblk-show-different-sizes-of-my-one-and-only-xvda1](https://stackoverflow.com/questions/57302142/why-df-h-and-lsblk-show-different-sizes-of-my-one-and-only-xvda1)</span>

<span style="color: rgb(0, 0, 0);">Source :</span>

<span style="color: rgb(224, 62, 45);">DON'T DO PART 2 **AND** 3, do only one of them</span>  
Part 3 is a replacement or part 2.  
[https://pve.proxmox.com/wiki/Resize\_disks](https://pve.proxmox.com/wiki/Resize_disks)