After modifyhd --resize, fdisk -l still shows old disk size
Posted: 10. Aug 2012, 12:39
I'm running CentOS 6.1 as guest on a Mac Snow Leopard host, using Virtual Box 4.1.18. Since I recently ran out of disk space in my guest, I decided to grow its disk, using
In fact, Virtual Box' GUI confirms that disk size has indeed doubled from 50 GB to 100 GB.
However, when I log in to CentOS and run fdisk -l as root, I still get
Note that /dev/sda's, my only disk's, size is still reported as 53.7 GB. Indeed, booting my VM into Parted Magic and using its Partition Editor I do not have any unallocated space available for creating new partitions.
From extensively searching the internet I got the impression that fdisk -l as well as gparted -l should show me the new available disk space immediately after resizing my vdi file. Isn't that correct? What did I do wrong?
Regards,
Olaf
Code: Select all
vboxmanage modifyhd centos6.1.vdi --resize 102400
However, when I log in to CentOS and run fdisk -l as root, I still get
Code: Select all
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006702c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 256000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 32 6528 52171776 8e Linux LVM
From extensively searching the internet I got the impression that fdisk -l as well as gparted -l should show me the new available disk space immediately after resizing my vdi file. Isn't that correct? What did I do wrong?
Regards,
Olaf