Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Problems with loss space

  1. #1
    Join Date
    Nov 2021
    Beans
    6

    Problems with loss space

    Hello

    I have a problem that I don't understand. When I use the disk usage analyzer I can see that the drive on which I have Ubuntu 18 installed has a total capacity of 52.6 GB and that I only have 5.4 GB available.
    When I click on that drive to see where the files that occupy the space are located, the system tells me that there is only 16.1 GB used of the root.
    I don't know where the 36.5GB is and what is occupying it.

    If I use the command "df -h" in the terminal. It shows me that /dev/sda1 is 49GB in size and 95% used. But I can't find the files that occupy it. I do not understand what's happening.
    The system is mounted on a virtual drive with VirtualBox with a size of 50GB.

    Greetings and thanks for the help.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Problems with loss space

    Less attempts at describing and more facts, please.

    df -Th Post that wrapped in 'code-tags' so the columns line up.
    Https://ubuntuforums.org/misc.php?do=bbcode#code <--- fixed line - thanks deadflowr

    And lsblk -e 7 -o name,size,type,fstype,mountpoint posted, also in 'code-tags' will be helpful.
    Last edited by TheFu; November 23rd, 2021 at 04:46 PM. Reason: removed wiki notation added by mistake.

  3. #3
    Join Date
    Nov 2021
    Beans
    6

    Re: Problems with loss space

    Code:
    Filesystem      Size  Used Avail Use% Mounted on
    udev            1.9G     0  1.9G   0% /dev
    tmpfs           395M  1.6M  393M   1% /run
    /dev/sda1        49G   44G  2.6G  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/loop0       66M   66M     0 100% /snap/gtk-common-themes/1515
    /dev/loop1       56M   56M     0 100% /snap/core18/2246
    /dev/loop2       62M   62M     0 100% /snap/core20/1169
    /dev/loop3      1.0M  1.0M     0 100% /snap/gnome-logs/100
    /dev/loop4      640K  640K     0 100% /snap/gnome-logs/106
    /dev/loop5       66M   66M     0 100% /snap/gtk-common-themes/1519
    /dev/loop6      219M  219M     0 100% /snap/gnome-3-34-1804/72
    /dev/loop7       62M   62M     0 100% /snap/core20/1242
    /dev/loop9      100M  100M     0 100% /snap/core/11743
    /dev/loop8       56M   56M     0 100% /snap/core18/2253
    /dev/loop10     2.5M  2.5M     0 100% /snap/gnome-calculator/826
    /dev/loop11     141M  141M     0 100% /snap/gnome-3-26-1604/100
    /dev/loop12     141M  141M     0 100% /snap/gnome-3-26-1604/104
    /dev/loop13     218M  218M     0 100% /snap/gnome-3-34-1804/60
    /dev/loop14     244M  244M     0 100% /snap/gnome-3-38-2004/39
    /dev/loop16     768K  768K     0 100% /snap/gnome-characters/726
    /dev/loop15     100M  100M     0 100% /snap/core/11993
    /dev/loop17     165M  165M     0 100% /snap/gnome-3-28-1804/161
    /dev/loop18     243M  243M     0 100% /snap/gnome-3-38-2004/76
    /dev/loop19     2.7M  2.7M     0 100% /snap/gnome-system-monitor/174
    /dev/loop20     2.5M  2.5M     0 100% /snap/gnome-calculator/884
    /dev/loop21     163M  163M     0 100% /snap/gnome-3-28-1804/145
    /dev/loop22     2.7M  2.7M     0 100% /snap/gnome-system-monitor/169
    /dev/loop23     128K  128K     0 100% /snap/bare/5
    /dev/loop24     768K  768K     0 100% /snap/gnome-characters/761
    VB_Ubuntu       200G  156G   44G  79% /media/sf_VB_Ubuntu
    tmpfs           395M   28K  395M   1% /run/user/121
    tmpfs           395M   48K  395M   1% /run/user/1000
    Last edited by deadflowr; November 22nd, 2021 at 09:44 PM. Reason: fixed proper code tags.

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,444
    Distro
    Ubuntu

    Re: Problems with loss space

    I fixed the code tags for you.
    Not sure why TheFu posted a sort of half link which only points to the smiley/emoji section of the forum.
    Proper code tag is here: https://ubuntuforums.org/misc.php?do=bbcode#code
    Quick and easy howto and why use code tags are found in this thread here:: https://ubuntuforums.org/showthread....8#post12776168
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #5
    Join Date
    Nov 2021
    Beans
    6

    Re: Problems with loss space

    lsblk:

    Code:
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    loop0    7:0    0  65.1M  1 loop /snap/gtk-common-themes/1515
    loop1    7:1    0  55.5M  1 loop /snap/core18/2246
    loop2    7:2    0  61.9M  1 loop /snap/core20/1169
    loop3    7:3    0   956K  1 loop /snap/gnome-logs/100
    loop4    7:4    0   548K  1 loop /snap/gnome-logs/106
    loop5    7:5    0  65.2M  1 loop /snap/gtk-common-themes/1519
    loop6    7:6    0   219M  1 loop /snap/gnome-3-34-1804/72
    loop7    7:7    0  61.9M  1 loop /snap/core20/1242
    loop8    7:8    0  55.5M  1 loop /snap/core18/2253
    loop9    7:9    0  99.3M  1 loop /snap/core/11743
    loop10   7:10   0   2.5M  1 loop /snap/gnome-calculator/826
    loop11   7:11   0 140.7M  1 loop /snap/gnome-3-26-1604/100
    loop12   7:12   0 140.7M  1 loop /snap/gnome-3-26-1604/104
    loop13   7:13   0 217.9M  1 loop /snap/gnome-3-34-1804/60
    loop14   7:14   0 243.9M  1 loop /snap/gnome-3-38-2004/39
    loop15   7:15   0  99.4M  1 loop /snap/core/11993
    loop16   7:16   0   704K  1 loop /snap/gnome-characters/726
    loop17   7:17   0 164.8M  1 loop /snap/gnome-3-28-1804/161
    loop18   7:18   0 242.4M  1 loop /snap/gnome-3-38-2004/76
    loop19   7:19   0   2.5M  1 loop /snap/gnome-system-monitor/174
    loop20   7:20   0   2.5M  1 loop /snap/gnome-calculator/884
    loop21   7:21   0 162.9M  1 loop /snap/gnome-3-28-1804/145
    loop22   7:22   0   2.5M  1 loop /snap/gnome-system-monitor/169
    loop23   7:23   0     4K  1 loop /snap/bare/5
    loop24   7:24   0   704K  1 loop /snap/gnome-characters/761
    sda      8:0    0    50G  0 disk 
    └─sda1   8:1    0    50G  0 part /
    sr0     11:0    1  1024M  0 rom

  6. #6
    Join Date
    Dec 2014
    Beans
    1,905

    Re: Problems with loss space

    To see what uses your space you wouldn't use df (disk free) but du (disk used). More specifically you'd start at the root and use
    Code:
    du --max-depth=1 --one-file-system /
    Discarding the various errors about directories you don't have access to (/root,/lost+found,some subdirs of /tmp and /var; you can either hide these error by adding a redirection of standard error with '2>/dev/null' at the end of the command to get cleaner output or run the command with 'sudo' so it can access all the directories it complains about) you'll get a good idea what is taking up space. You can refine this by using the same command but giving another directory instead of '/', for example 'du --max-depth=1 --one-file-system /usr/share/' would show you how much space is taken up by the various directories full of shared data of various programs. For dirs with lots of subdirs adding a pipe to 'sort -g' at the end of the command might be helpful ('du --max-depth=1 --one-file-system /usr/share|sort -g') ...

    Holger
    Last edited by Holger_Gehrke; November 22nd, 2021 at 10:24 PM.

  7. #7
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Problems with loss space

    I am uneducated about many things but there are a few things that I do not understand about this problem. Knowing the answers might shed some light on the situation allowing others to solve the mystery.

    Have you installed Ubuntu Core 18? That would explain why you have snap apps without having snapd or snap-store installed. I am comparing the printout of lsblk on my Ubuntu 20.04 install.

    Have you installed Ubuntu 18 in a VM? What OS is hosting the VM? Are you running Disk Analyzer from the OS that is hosting the VM or from the OS installed in the VM?

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  8. #8
    Join Date
    Nov 2021
    Beans
    6

    Re: Problems with loss space

    Thanks for the information.

  9. #9
    Join Date
    Nov 2021
    Beans
    6

    Re: Problems with loss space

    If I use:
    Code:
     
    sudo du --max-depth=1 --one-file-system /
    Then i get the following:

    Code:
    64    /snap
    4    /cdrom
    232    /root
    911940    /lib
    4955388    /opt
    3364884    /var
    11252    /sbin
    4    /mnt
    149560    /boot
    12416    /bin
    4    /srv
    12    /media
    12880    /etc
    16    /lost+found
    4    /lib64
    31365412    /home
    5208    /tmp
    3166504    /usr
    46052948    /

  10. #10
    Join Date
    Nov 2021
    Beans
    6

    Re: Problems with loss space

    The version of ubuntu I have installed is
    Code:
    ubuntu18@ubuntu18-VirtualBox:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID:    Ubuntu
    Description:    Ubuntu 18.04.1 LTS
    Release:    18.04
    Codename:    bionic
    It's a Virtual Machine in VirtualBox. My PC has installed Windows 10.
    I don't really understand the last question: "Are you running Disk Analyzer from the OS that is hosting the VM or from the OS installed in the VM"

    Thank you

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •