Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk spac

  1. #1
    Join Date
    Jun 2007
    Beans
    264
    Distro
    Ubuntu 20.04 Focal Fossa

    Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk spac

    About a week ago installed a fresh Ubuntu 20.04.1 Did make a backup of the 2GB SSD stick use as the OS. It was 18.04.3 or something like that. Took me over a day to get it back how it was copied the /etc/fstab and made links how I had them. Restored the database.

    When I installed it I said to install some things. I guess one thing was snap. It seems like that was filling up a lot so I removed it. With a apt remove snap command.

    Copied and deleted a log file made a link to it were I copied it to a 2TB hard drive.

    On the old 18 I had like 80% free space on the boot 2TB SSD.

    Here is some commands I did to try and find out what is using the space.

    Code:
    root@rayday:~# du -h --max-depth=1 /
    2.9M    /run
    2.7G    /usr
    4.0K    /dev
    0       /sys
    110M    /boot
    40T     /media
    du: cannot access '/proc/5228/task/5228/fd/4': No such file or directory
    du: cannot access '/proc/5228/task/5228/fdinfo/4': No such file or directory
    du: cannot access '/proc/5228/fd/3': No such file or directory
    du: cannot access '/proc/5228/fdinfo/3': No such file or directory
    0       /proc
    4.0K    /srv
    11M     /etc
    16K     /lost+found
    4.0K    /opt
    4.0K    /mnt
    4.0K    /cdrom
    20G     /var
    60K     /tmp
    40T     /
    root@rayday:~# du -h --max-depth=1 /var
    4.0K    /var/local
    211M    /var/cache
    18M     /var/webmin
    1.7G    /var/log
    20K     /var/www
    344K    /var/crash
    18G     /var/lib
    4.0K    /var/mail
    9.9M    /var/spool
    2.0M    /var/backups
    4.0K    /var/opt
    36K     /var/tmp
    20G     /var
    root@rayday:~# du -h --max-depth=1 /var/log
    792K    /var/log/installer
    8.0K    /var/log/dbconfig-common
    4.0K    /var/log/dist-upgrade
    268K    /var/log/apt
    20K     /var/log/letsencrypt
    32K     /var/log/unattended-upgrades
    4.0K    /var/log/private
    28K     /var/log/mysql
    3.7M    /var/log/samba
    4.0K    /var/log/landscape
    152K    /var/log/squeezeboxserver
    628K    /var/log/apache2
    1.6G    /var/log/journal
    1.7G    /var/log
    root@rayday:~# du -h --max-depth=1 /var/lib
    4.0K    /var/lib/boltd
    4.0K    /var/lib/plymouth
    428K    /var/lib/phpmyadmin
    8.0K    /var/lib/sudo
    276K    /var/lib/cloud
    20K     /var/lib/alsa
    40K     /var/lib/polkit-1
    504K    /var/lib/fwupd
    4.0K    /var/lib/mysql-upgrade
    36K     /var/lib/PackageKit
    12K     /var/lib/AccountsService
    17G     /var/lib/plexmediaserver
    96M     /var/lib/apt
    4.0K    /var/lib/dbus
    32K     /var/lib/letsencrypt
    608K    /var/lib/usbutils
    4.0K    /var/lib/unattended-upgrades
    4.0K    /var/lib/mysql-keyring
    4.0K    /var/lib/private
    4.0K    /var/lib/mysql-files
    8.0K    /var/lib/vim
    512K    /var/lib/systemd
    28K     /var/lib/pam
    651M    /var/lib/mysql
    8.0K    /var/lib/shim-signed
    2.2M    /var/lib/samba
    3.0M    /var/lib/command-not-found
    36K     /var/lib/php
    4.0K    /var/lib/landscape
    39M     /var/lib/dpkg
    4.0K    /var/lib/misc
    284K    /var/lib/ucf
    4.0K    /var/lib/ubuntu-release-upgrader
    4.0K    /var/lib/ubuntu-advantage
    4.0K    /var/lib/python
    12K     /var/lib/postfix
    4.0K    /var/lib/tpm
    4.0K    /var/lib/dhcp
    16K     /var/lib/grub
    4.0K    /var/lib/git
    169M    /var/lib/squeezeboxserver
    20K     /var/lib/update-notifier
    36K     /var/lib/apache2
    8.0K    /var/lib/os-prober
    91M     /var/lib/mecab
    8.0K    /var/lib/logrotate
    4.0K    /var/lib/man-db
    8.0K    /var/lib/initramfs-tools
    12K     /var/lib/update-manager
    18G     /var/lib
    root@rayday:~#
    Got allmost 700 MiB free after a long time trying to make room. At lest the Database works again now. Because it did not there was 0 space left on filesystem.

    What else can I do to show what it using all the space?

    -Raymond Day
    Last edited by ajgreeny; September 29th, 2020 at 07:28 PM. Reason: Code tags

  2. #2
    Join Date
    Sep 2020
    Beans
    27
    Distro
    Ubuntu

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    This one may help
    1. wget https://raw.githubusercontent.com/jabarihunt/Ubuntu-Cleanup-Script/master/clean.sh
    2. nano clean.sh (remove what you wouldn't want)
    3. bash clean.sh
    4. ???????
    5. Profit!
    Last edited by agvantibo; September 29th, 2020 at 11:50 AM. Reason: mismatched url

  3. #3
    Join Date
    Jun 2007
    Beans
    264
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    I did this:

    Code:
    root@rayday:~# wget https://raw.githubusercontent.com/jabarihunt/Ubuntu-Cleanup-Script/master/clean.sh
    --2020-09-29 09:26:12--  https://raw.githubusercontent.com/jabarihunt/Ubuntu-Cleanup-Script/master/clean.sh
    Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.76.133
    Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.232.76.133|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1200 (1.2K) [text/plain]
    Saving to: ‘clean.sh.2’
    
    clean.sh.2                       100%[=======================================================>]   1.17K  --.-KB/s    in 0s
    
    2020-09-29 09:26:13 (29.1 MB/s) - ‘clean.sh.2’ saved [1200/1200]
    
    root@rayday:~#
    The file at clean.sh looks like this:

    Code:
    #!/bin/bash
    ###############################################################################
    # This script removes unneeded files and libraries, including log files and snaps.
    # I originally created it to combat the /var directory filling up (when on a
    # seperate partition). I know there is redundency with apt vs apt-get commands,
    # but I alsways seem to have more drive space after running both!
    #
    # I created this for Ubuntu 18.04 (Desktop), but it should run on other distros
    # based on Ubuntu without issue.
    #
    # To run this script from anywhere, place it in your /usr/local/bin directory
    #
    # To list your partition sizes run: df -Th | sort
    ###############################################################################
    
    # Remove apt / apt-get files
    sudo apt clean
    sudo apt -s clean
    sudo apt clean all
    sudo apt autoremove
    sudo apt-get clean
    sudo apt-get -s clean
    sudo apt-get clean all
    sudo apt-get autoclean
    
    #Remove Old Log Files
    sudo rm -f /var/log/*gz
    
    # Remove Thumbnail Cache
    rm -rf ~/.cache/thumbnails/*
    
    # Remove old snaps
    set -eu
    snap list --all | awk '/disabled/{print $1, $3}' |
        while read snapname revision; do
            sudo snap remove "$snapname" --revision="$revision"
        done
    How do I edit that?

    Then the next command you said to do looked like this:

    Code:
    root@rayday:~#  bash clean.sh
    Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
    Del /var/lib/apt/lists/partial/*
    Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
    Del /var/lib/apt/lists/partial/*
    Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    clean.sh: line 34: snap: command not found
    root@rayday:~#
    Then this code still says 100% full:

    Code:
    root@rayday:~# df -h /
    Filesystem                         Size  Used Avail Use% Mounted on
    /dev/mapper/ubuntu--vg-ubuntu--lv  196G  186G  656M 100% /
    root@rayday:~#
    -Raymond Day

  4. #4
    Join Date
    Jun 2007
    Beans
    264
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    I looked at that file and made one like it said in /usr/local/bin/ named it drive-full.sh chmod 755 on it and this is how it looked:

    Code:
    root@rayday:~# /usr/local/bin/drive-full.sh
    Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
    Del /var/lib/apt/lists/partial/*
    Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*
    Del /var/lib/apt/lists/partial/*
    Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    /usr/local/bin/drive-full.sh: line 19: snap: command not found
    root@rayday:~# df -Th | sort
    /dev/mapper/ubuntu--vg-ubuntu--lv ext4      196G  186G  656M 100% /
    /dev/sda1                         ext4      916G  427G  443G  50% /media/WD-3D-NAND-Stick
    /dev/sdb1                         vfat      511M  7.8M  504M   2% /boot/efi
    /dev/sdb2                         ext4      976M  104M  805M  12% /boot
    /dev/sdc1                         ext4       11T  6.2T  4.2T  60% /media/12TB_replace_5
    /dev/sdd1                         ext4       11T  7.0T  3.4T  68% /media/12TB-backup
    /dev/sde2                         ext4      1.8T  134G  1.6T   8% /media/3TB-Black-laptop-size
    /dev/sdf1                         ext4      2.7T  1.9T  694G  74% /media/3TB_USB
    /dev/sdg1                         ext4      458G  121G  314G  28% /media/500GB-blue-ssd
    /dev/sdh1                         ext4      458G  5.3G  429G   2% /media/500GB-3D-NAND
    /dev/sdi1                         ext4      916G  860G  9.9G  99% /media/WD-1TB
    /dev/sdj1                         ext4      9.1T  6.1T  2.6T  71% /media/WD-10TB-2
    /dev/sdk1                         ext4      9.1T  6.2T  2.5T  72% /media/WD-10TB-3
    /dev/sdl1                         ext4      9.1T  5.6T  3.0T  66% /media/WD-10TB
    /dev/sdm1                         ext4      9.1T  5.7T  3.0T  66% /media/WD-10TB-4
    Filesystem                        Type      Size  Used Avail Use% Mounted on
    tmpfs                             tmpfs      16G     0   16G   0% /sys/fs/cgroup
    tmpfs                             tmpfs      16G  4.0K   16G   1% /dev/shm
    tmpfs                             tmpfs     3.2G     0  3.2G   0% /run/user/0
    tmpfs                             tmpfs     3.2G  2.9M  3.2G   1% /run
    tmpfs                             tmpfs     5.0M  4.0K  5.0M   1% /run/lock
    udev                              devtmpfs   16G     0   16G   0% /dev
    root@rayday:~#
    Seems like it made a little more room but on my webmin info the top still says this:

    Warning! The 195.86 GiB filesystem mounted at / has only 655.66 MiB of free disk space

    I could boot a desktop Ubuntu 20.04 from a USB stick. I think there is a way to show it in a pie type graph then and maybe that will help not sure.

    Wow maybe I should just install this fresh again and not fill any checks to install other things. I think I did 3 more things when I installed it about a week ago now. My old one just would not upgrade over itself.

    -Raymond Day

  5. #5
    Join Date
    Jan 2008
    Location
    Netherlands
    Beans
    305
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    what does sudo df -h report?
    edit. Oh sorry, you already did.

  6. #6
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    You seem to have 40TB in /media. Is there a way to stop the process using that data and unmount the disks/share you have there?

    The point is you need to unmount that disk and take a look at the media folder on /.

    If something continued to write data in /media while you didn't have the disk mounted there, it would write in the folder media in /, thus filling up space in / which is not what you expect.

    The rest of the du -h command looks good. I would focus on /media, it's the only path with huge amount of data.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  7. #7
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    PS. I just noticed in your post #4. You have way too many HDDs to make this manageable. You need to reconsider how you attach and use storage on your server.

    If only one of those disks fails to mount at /media then your apps will start filling up your root volume. It's as simple as that, and I think that might be what happened.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  8. #8
    Join Date
    Jun 2007
    Beans
    264
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    I got a lot of drives on USB 3.0 on it. Have Plex server on it and a lot of videos. Music too.

    Have it set up the same way about when I had Ubuntu 18 server and like I said it only used about 20% of the 2GB space on the boot SSD. I had that SSD for over a year I think and it worked like that.

    It did have swap.img on the root folder and I have a swap partition on a drive and it put that in /etc/fstab like this:

    Code:
    #/swap.img	none	swap	sw	0	0
    UUID=5f09c29a-1209-481b-bb8c-c36f37413f72	swap			swap	sw,pri=-1	0	0
    Deleted the swap.img because that took up all the space on the 2TB SSD.

    Then the next day it filled it up with something else that I don't know what.

    All them same hard drives I had on Ubuntu server 18.04 and it never filled up the boot SSD. I got them mounted the same and I know because all is working the same as it did. But don't know why it's filling up the boot SSD.

    -Raymond Day
    Last edited by Raymond Day; September 29th, 2020 at 03:43 PM.

  9. #9
    Join Date
    Jun 2007
    Beans
    264
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    The new 20.04 server made a OS looks like on:

    Code:
    /dev/mapper/ubuntu--vg-ubuntu--lv ext4
    That is what is full. On 18.04 I know it was not mounted in this way.

    -Raymond Day

  10. #10
    Join Date
    Jun 2007
    Beans
    264
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Warning! The 195.86 GiB filesystem mounted at / has only 656.12 MiB of free disk

    This my show more info to help:

    Code:
    root@rayday:~# lsblk
    NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda                         8:0    0 931.5G  0 disk
    └─sda1                      8:1    0 931.5G  0 part /media/WD-3D-NAND-Stick
    sdb                         8:16   0   1.8T  0 disk
    ├─sdb1                      8:17   0   512M  0 part /boot/efi
    ├─sdb2                      8:18   0     1G  0 part /boot
    └─sdb3                      8:19   0   1.8T  0 part
      └─ubuntu--vg-ubuntu--lv 253:0    0   200G  0 lvm  /
    sdc                         8:32   0  10.9T  0 disk
    └─sdc1                      8:33   0  10.9T  0 part /media/12TB_replace_5
    sdd                         8:48   0  10.9T  0 disk
    └─sdd1                      8:49   0  10.9T  0 part /media/12TB-backup
    sde                         8:64   0   2.7T  0 disk
    ├─sde1                      8:65   0   512M  0 part
    └─sde2                      8:66   0   1.8T  0 part /media/3TB-Black-laptop-size
    sdf                         8:80   0   2.7T  0 disk
    └─sdf1                      8:81   0   2.7T  0 part /media/3TB_USB
    sdg                         8:96   0 465.8G  0 disk
    └─sdg1                      8:97   0 465.8G  0 part /media/500GB-blue-ssd
    sdh                         8:112  0 465.8G  0 disk
    └─sdh1                      8:113  0 465.8G  0 part /media/500GB-3D-NAND
    sdi                         8:128  0 931.5G  0 disk
    └─sdi1                      8:129  0 931.5G  0 part /media/WD-1TB
    sdj                         8:144  0   9.1T  0 disk
    └─sdj1                      8:145  0   9.1T  0 part /media/WD-10TB-2
    sdk                         8:160  0   9.1T  0 disk
    └─sdk1                      8:161  0   9.1T  0 part /media/WD-10TB-3
    sdl                         8:176  0   9.1T  0 disk
    └─sdl1                      8:177  0   9.1T  0 part /media/WD-10TB
    sdm                         8:192  0   9.1T  0 disk
    └─sdm1                      8:193  0   9.1T  0 part /media/WD-10TB-4
    root@rayday:~#
    -Raymond Day

Page 1 of 3 123 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
  •