Running df -h
returns:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.9G 3.7G 1.8M 100% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 396M 880K 395M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 76K 2.0G 1% /run/shm
none 100M 48K 100M 1% /run/user
For some reason Ubuntu says I only have 4GB hard drive space, but in VirtualBox, under Storage > Controller: SATA it says I have Ubuntu.vdi (Normal, 11.72 GB).
I've tried running resize2fs
as well, and it returns:
sudo resize2fs /dev/sda1
resize2fs 1.42.9 (4-Feb-2014)
The filesystem is already 1048320 blocks long. Nothing to do!
Running fdisk returns:
sudo fdisk -l
Disk /dev/sda: 12.6 GB, 12582912000 bytes
255 heads, 63 sectors/track, 1529 cylinders, total 24576000 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 identifier: 0x000ac43a
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 8388607 4193280 83 Linux
/dev/sda2 8390654 16775167 4192257 5 Extended
/dev/sda5 8390656 16775167 4192256 82 Linux swap / Solaris
How do I increase disk space of my VM?
sudo fdisk -l
and see what the actual partition scheme is and whether you have any free space at all. – Thomas Ward Jan 29 '15 at 15:51Disk /dev/sda: 12.6 GB, 12582912000 bytes
and/dev/sda1 * 2048 8388607 4193280 83 Linux
– ccnokes Jan 29 '15 at 15:54