I get this error when I was trying to install java in my virtual machine -- "vagrant no space left on device". My virtual machine is debian, and the computer is mac.
root@web1:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.2G 9.2G 0 100% /
udev 10M 0 10M 0% /dev
tmpfs 403M 5.4M 397M 2% /run
tmpfs 1006M 12K 1006M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1006M 0 1006M 0% /sys/fs/cgroup
home_vagrant_builtinx 465G 175G 290G 38% /home/vagrant/builtinx
So I found my vm instance debian-jessie-disk1.vmdk, and tried to resize it with command:
sudo VBoxManage modifyhd --resize 40000 'debian-jessie-disk1.vmdk'
It said this format is not supported. The I followed the steps at vagrant no space left on device, and cloned the disk to debian-jessie-disk1.vdi, and successfully resized the cloned disk.
I followed everything until steps: "create a new partition (again logged on as super user su -)"
My command line says pvs, pvcreate are not found commands, and I googled a bit about these commands, and didn't find something useful about how to install these packages.
Then I open "VM VirtualBox Manager" UI tool, and assign the new disk debian-jessie-disk1.vdi to virtual machine's storeage Controller, and remove the old one, and save.
Now the storage disk information screen says
Type(Format): Normal(VDI)
Virtual Size: 39.06 GB
Actual Size: 9.75 GB
Details: Dynamically allocated storage
However, I goto the VM, and do
root@web1:~# df -h
The same result is returned. I think the space is somehow not freed. Do I miss something here? Thanks for your help :)