← Back to team overview

openstack team mailing list archive

Difference between df and fdisk when using root disk.

 

Hi, list.

I observed very strange things. Disk usage and partition size is different.
I made a instance using cirros.img and it has 2GB RAM, 1VCPU, 20GB Disk.
But I could just use 9.2M in 20GB.
Could anyone explain this? How can I use whole 20GB Root disk?


$ mount
/dev/vda1 on / type ext3

$ fdisk -l /dev/vda1
Disk /dev/vda1: 21.5 GB, 


$ fdisk -l /dev/vda1
Disk /dev/vda1: 21.5 GB,

   Device Boot   Start      End       Blocks  Id   System
/dev/vda1   *    16065  41929649   20956792+  83   Linux


$ df -h
Filesystem        Size      Used    Available   Use%   Mounted on
/dev/vda1        23.2M     12.9M         9.2M    58%   /



Follow ups