Resize Disk

Juliano Silva

Well-Known Member
Oct 15, 2017
186
3
58
40
Hi

How to resolve, my disk does not show total free space


[root@srv ~]# fdisk -l

Disk /dev/sda: 751.6 GB, 751619276800 bytes, 1468006400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0005ddd0

Device Boot Start End Blocks Id System
/dev/sda1 2048 1040187392 520092672+ 83 Linux
/dev/sda2 1040187393 1048575999 4194303+ 82 Linux swap / Solaris

Disk /dev/loop0: 4294 MB, 4294967296 bytes, 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes




[root@srv ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 489G 323G 144G 70% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 8.7M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/loop0 3.9G 39M 3.6G 2% /tmp
tmpfs 783M 0 783M 0% /run/user/0
[root@srv ~]#
 
root@s115341:/vz/images/106# du -h vm-106-disk-1.raw
491G vm-106-disk-1.raw


[root@srv ~]# fdisk -l

Disk /dev/sda: 751.6 GB, 751619276800 bytes, 1468006400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0005ddd0

Device Boot Start End Blocks Id System
/dev/sda1 2048 1040187392 520092672+ 83 Linux
/dev/sda2 1040187393 1048575999 4194303+ 82 Linux swap / Solaris

Disk /dev/loop0: 4294 MB, 4294967296 bytes, 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes