df command and free/available space.

techlists at phpcoderusa.com techlists at phpcoderusa.com
Fri Nov 11 09:20:50 MST 2022


Hi,

I've gotten VirtualBox working and installed just the Ubuntu plain 
server 20.04 with the goal of creating a LAMP setup that will be used 
for a tiny bit of PHP testing.

I allocated 10GB of space for this VM instance.

I want to allocate a limited amount of disk space because I think this 
is static and will count as disk usage on the host even when my virtual 
machine is not running.

I ran "df -h" and here is the output:

keith at plain-ubuntu20-lamp:~$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
udev                               948M     0  948M   0% /dev
tmpfs                              199M  1.1M  198M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  8.1G  3.6G  4.0G  48% /
tmpfs                              992M     0  992M   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              992M     0  992M   0% /sys/fs/cgroup
/dev/loop0                          68M   68M     0 100% /snap/lxd/22753
/dev/sda2                          1.7G  106M  1.5G   7% /boot
/dev/loop1                          47M   47M     0 100% 
/snap/snapd/16292
/dev/loop2                          62M   62M     0 100% 
/snap/core20/1611
tmpfs                              199M     0  199M   0% /run/user/1000
keith at plain-ubuntu20-lamp:~$

I assume the line :  "/dev/mapper/ubuntu--vg-ubuntu--lv  8.1G  3.6G  
4.0G  48% /" is root.

So a minimal install of the Ubuntu server 20.04lts is 3.6G?  Yikes is 
this correct?  So I have 4G free?  I can live with 4G free.  Yikes I 
have yet to install PHP/MySql/Apache.

Is this correct?

Thank you for your input!!

Keith





More information about the PLUG-discuss mailing list