It helps to reduce the capacity of a hard disk of a virtual machine. I need to recite the hard disk capacity that was assigned to a virtual machine. It has a capacity of 600 gigabytes; lsblk NAME MAJ: MIN RM SIZE RO TYPE MOUNTPOINT sda 8: 0 0 600G 0 disk ├─sda1 8: 1 0 118G 0 part / ├─sda2 8: 2 0 1K 0 part └─sda5 8: 5 0 4G 0 part [SWAP] sr0 11: 0 1 175M 0 rom After an analysis that decided to reduce the capacity of 125G, for that I used the GPARTED tool, my problem is that I can not find the way to carry the real capacity of 125G of the disk, so that it does not occupy so much space. df -h File system size used Avail Use% Assembled / dev / sda1 117G 60G 51G 55% / udev 8,9G 4,0K 8,9G 1% / dev tmpfs 1.8G 300K 1.8G 1% / run none 5.0M 0 5.0M 0% / run / block none 8.9G 0 8.9G 0% / running / shm In the different procedures I found, one of them was oriented to work directly on the proxmox server, using the resize2fs command. With the virtual machine turned off and with the resize2fs command "/var/lib/vz/images/100/vm-100-disk-1.raw" 125G, this error appears: resize2fs 1.43.4 (31-Jan-2017) resize2fs: : ~ # resize2fs "/var/lib/vz/images/100/vm-100-disk-1.raw" 125G resize2fs 1.43.4 (31-Jan-2017) resize2fs: Bad magic number in super-block while trying to open /var/lib/vz/images/100/vm-100-disk-1.raw Could not find valid filesystem superblock. I need to know how to proceed to make an effective reduction of the hard disk of the VM.