LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-09-2021, 04:01 PM   #1
linux_789
LQ Newbie
 
Registered: Apr 2021
Posts: 4

Rep: Reputation: Disabled
How to fix Low Disk Space on "Filesystem root"


I am running Ubuntu under Virtual Box 6.1.22. I am getting "Low Disk Space on "Filesystem root"".

user1@Ubuntu-VB:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal


user1@Ubuntu-VB:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 394M 1.5M 393M 1% /run
/dev/sda5 9.3G 8.4G 475M 95% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop1 56M 56M 0 100% /snap/core18/2074
/dev/loop0 56M 56M 0 100% /snap/core18/1997
/dev/loop4 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop3 65M 65M 0 100% /snap/gtk-common-themes/1514
/dev/loop2 132M 132M 0 100% /snap/docker/796
/dev/loop6 52M 52M 0 100% /snap/snap-store/518
/dev/loop5 219M 219M 0 100% /snap/gnome-3-34-1804/66
/dev/loop8 51M 51M 0 100% /snap/snap-store/547
/dev/loop7 219M 219M 0 100% /snap/gnome-3-34-1804/72
/dev/loop9 33M 33M 0 100% /snap/snapd/11402
/dev/loop10 33M 33M 0 100% /snap/snapd/12398
/dev/sda1 511M 4.0K 511M 1% /boot/efi
VM_Share 222G 167G 55G 76% /media/sf_VM_Share
tmpfs 394M 28K 394M 1% /run/user/1000
/dev/sr0 59M 59M 0 100% /media/user1/VBox_GAs_6.1.22

df -h output shows that / is 95%.

My original VM setup for storage (ubuntu.vdi) was 10G disk space and space is dynmaically allocated. The VM setting shows Virtual size of 10G and actual size of 9.5G

I used "VBoxManage modifyhd" command to increase the disk space from 10G to 30G and restart Ubuntu. Now the VM setting shows Virtual size of 30G and actual size of 8.99G.
I did some searching. I think I need to use repartition software to increase /dev/sda5. The search results I read was using fixed allocation for VM disk. I am not sure if Dynamic allocation works the same way. I need some help on if I should convert my disk to fix allocation first or I can stay with dynamic allocation and space will be acquired when I expand /dev/sda5.
 
Old 07-09-2021, 07:13 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
/dev/sda5 9.3G 8.4G 475M 95% /

That is almost full.

Boot to partition software in VM. Gparted or whatever Ubuntu ships with will be fine to see if you do have any free space in the Virtual Hard Drive. Don't manage root while booted, you need to boot to some other live media.
 
Old 07-09-2021, 07:50 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,721

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
In addition, the added space is at the end of the virtual drive but how to add it to /dev/sda5 depends how the drive is partitioned i.e MBR versus GPT and where is swap. Post the output of the command:

lsblk

Once the added space is adjacent i.e to the "right" of sda5 you can simply resize your / filesystem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] System shows "Low Disk Space" but "df -h" indicates it has space skyworld_chen Linux - Newbie 12 11-20-2019 10:36 AM
[SOLVED] Low disk space on “Filesystem root” 0 bytes disk remaining ApolloPT Debian 8 06-17-2019 05:37 AM
[SOLVED] Fedora 19 showing Low Disk Space on "filesystem root". oceanmbs Fedora 18 10-23-2014 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration