Take the 2-minute tour ×
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        2610    20860402+  8e  Linux LVM

I run it in the vmware,but I checked from win7 that the vm files only takes 7GB,why /dev/sda shows 21GB here?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Did you use a copy-on-write image ("Sparse" in VMWare parlance, and also the default, I believe)? If so, fdisk might be showing the maximum possible size that you specified when you created the image, while the image file itself would only be as large as it needs to be to contain the data stored in it (+ metadata)

share|improve this answer

Vmware lies to the operating system about how big the disk is.
It then expands the actual container disk as data is written to it.

share|improve this answer

Your Answer


