Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3093  / 2 Years ago, sat, february 5, 2022, 4:42:50

Need help figuring out why Ubuntu is mis-reporting disk capacity on a VM. Just installed Ubuntu 12.04 Server LTS 64 bit on a Virtualbox (version 4.2.10) virtual machine. I also installed the Ubuntu desktop on this server.



I created the virtual disk (VDI option) as 8GB with the Dynamically allocated option. Virtualbox currently reports the actual size at 1.7GB



Virtualbox



The Ubuntu Disk Usage Analyzer shows the drive has a total capacity of 4.2GB which makes no sense.



Disk Usage Analyzer



I pulled this info from the command line and it doesn't match the GUI report. It adds up to just under 8GB which is right. I'm unclear about why "udev" and "tmpfs" both are allocated at 2GB since this a new install.



Command line



I installed GParted and it shows the extended partition correctly to be be 7.6GB.



GParted



So why is the Gui misreporting drive capacity and how do I fix this? I can't install anything else because I'm getting warnings in the desktop about there only being 25MB of space left. I already ran 'sudo apt-get clean' and it did nothing. I also tried resizing the VDI disk itself from the my hosts command line but an error:



c:VBoxManage modifyhd ozzman2.vdi --resize 20000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize hard disk operation for this format is not implemented yet!

More From » 12.04

 Answers
6

You have 4GB space used as virtual memory aka swap.



You will probably want to assign more disk for storage. There are a couple of choices but the simplest and most expedient is usually to recreate the installation with a larger size. Alternatives include:




  1. Resize the disk within VirtualBox, extend the physical extent, then the logical extend, then the ext4 file system afterwards.

  2. Add a new disk to the virtual host and add that to LVM as a new physical volume and extend the root logical volume to use that space, subsequently extend the ext4 file system to use the new space.

  3. Add a new disk and mount somewhere new e.g. /opt and use that as desired.



Random article on Google that may assist:



http://www.joomlaworks.net/blog/item/168-resizing-the-disk-space-on-ubuntu-server-vms


[#31814] Sunday, February 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
;