NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

m1chsh's avatar
m1chsh
Aspirant
Dec 13, 2021

System volume root's usage is 88%. This condition should not occur under normal conditions.

Hello!

I have checked the other threads.

 My firmware version is 6.10.6, I don't have clamav .tmp files but i see too much logs.

How Can I delete it safely?

So, Shall I do it? 

What happens if the root partition reaches 100%?

 

 

root@nas:/mnt/data/rsyslog# ls -lhS
total 1.2G
-rw-r----- 1 root adm 437M Dec 13 16:20 syslog
-rw-r----- 1 root adm 410M Dec 13 08:00 kern.log
-rw-r----- 1 root adm 256M Dec 13 08:00 messages
-rw-r----- 1 root adm 19M Dec 13 16:18 auth.log
-rw-r----- 1 root adm 16M Dec 13 16:20 daemon.log
-rw-r----- 1 root adm 1.2M Dec 13 02:05 debug
-rw-r----- 1 root adm 17K Nov 25 08:31 user.log
drwxr-xr-x 2 root root 4.0K Feb 19 2018 news
-rw-r----- 1 root adm 0 Feb 19 2018 lpr.log
-rw-r----- 1 root adm 0 Feb 19 2018 mail.err
-rw-r----- 1 root adm 0 Feb 19 2018 mail.info
-rw-r----- 1 root adm 0 Feb 19 2018 mail.log
-rw-r----- 1 root adm 0 Feb 19 2018 mail.warn
root@nas:/mnt/data/rsyslog#

.

3 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    m1chsh wrote:

     

    What happens if the root partition reaches 100%?

    As it fills, you can end up with damaged configuration files, since the NAS can't write anything to the partition. Sometimes that results in a NAS that can't be booted.

     


    m1chsh wrote:

     

    root@nas:/mnt/data/rsyslog# ls -lhS
    total 1.2G
    -rw-r----- 1 root adm 437M Dec 13 16:20 syslog
    -rw-r----- 1 root adm 410M Dec 13 08:00 kern.log
    -rw-r----- 1 root adm 256M Dec 13 08:00 messages
    -rw-r----- 1 root adm 19M Dec 13 16:18 auth.log
    -rw-r----- 1 root adm 16M Dec 13 16:20 daemon.log
    -rw-r----- 1 root adm 1.2M Dec 13 02:05 debug
    -rw-r----- 1 root adm 17K Nov 25 08:31 user.log
    

    .


     

    You must have installed rsyslog at at some point (as an app).  Does it show up in the installed apps section?

     

    How exactly did you mount on /mnt? Did you enter

    # mount --bind / /mnt

    If that is what you did, then /mnt/data should be an empty folder.  So you can delete everything in the folder, but don't delete /mnt/data itself.

     

    I've mounted the OS on /mnt on my own system (an RN526).  You can compare what you see when you enter du -csh /mnt/* on yours:

    root@NAS:~# du -csh /mnt/*
    0       /mnt/apps
    6.4M    /mnt/bin
    0       /mnt/boot
    0       /mnt/data
    24K     /mnt/dev
    11M     /mnt/etc
    30M     /mnt/frontview
    0       /mnt/ftp_ban.tbl
    0       /mnt/home
    4.0K    /mnt/homes
    33M     /mnt/lib
    4.0K    /mnt/lib64
    0       /mnt/media
    0       /mnt/mnt
    4.6M    /mnt/opt
    0       /mnt/proc
    36K     /mnt/root
    0       /mnt/run
    11M     /mnt/sbin
    0       /mnt/srv
    0       /mnt/sys
    0       /mnt/tmp
    297M    /mnt/usr
    681M    /mnt/var
    1.1G    total

    It won't be exactly the same, but it will help sort out what else needs to be deleted.

     

     

    • m1chsh's avatar
      m1chsh
      Aspirant

       

      You must have installed rsyslog at at some point (as an app).  Does it show up in the installed apps section?

      No, It doesn't. 

       

      I have no installed apps.

       

       

      How exactly did you mount on /mnt? Did you enter
      
      # mount --bind / /mnt

      Yes, I did.

       

       

      If that is what you did, then /mnt/data should be an empty folder. So you can delete everything in the folder, but don't delete /mnt/data itself.

       

       

      Shall I just delete it?

       

      root@nas:~# cd /mnt/data
      root@nas:/mnt/data# ls -lhS
      total 4.0K
      drwxr-xr-x 3 root root 4.0K Feb 19  2018 rsyslog
      root@nas:/mnt/var/lib# cd /mnt/data
      root@nas:/mnt/data# du -d1 -h
      1.2G    ./rsyslog
      1.2G    .
      root@nas:/mnt/data#

      The list of folders.

       

      root@nas:/mnt/data# du -csh /mnt/*
      0       /mnt/1
      4.0K    /mnt/apps
      6.2M    /mnt/bin
      4.0K    /mnt/boot
      1.2G    /mnt/data
      12K     /mnt/dev
      11M     /mnt/etc
      4.0K    /mnt/Files
      31M     /mnt/frontview
      0       /mnt/ftp_ban.tbl
      4.0K    /mnt/home
      0       /mnt/homes
      28M     /mnt/lib
      16K     /mnt/lost+found
      36K     /mnt/media
      8.0K    /mnt/mnt
      6.2M    /mnt/opt
      4.0K    /mnt/proc
      4.0K    /mnt/Reserve
      60M     /mnt/root
      4.0K    /mnt/run
      11M     /mnt/sbin
      4.0K    /mnt/selinux
      4.0K    /mnt/srv
      4.0K    /mnt/sys
      48K     /mnt/tmp
      376M    /mnt/usr
      1.6G    /mnt/var
      3.2G    total
      
      



      root@nas:/mnt/var/lib# du -d1 -h
      4.0K    ./update-rc.d
      4.0K    ./urandom
      4.0K    ./insserv
      4.0K    ./replisync
      14M     ./dpkg
      854M    ./mysql
      32K     ./connman
      136K    ./systemd
      8.0K    ./mdadm
      24K     ./nfs
      136K    ./ucf
      4.0K    ./initscripts
      73M     ./apt
      4.0K    ./misc
      4.0K    ./libuuid
      2.6M    ./samba
      8.0K    ./logrotate
      28K     ./pam
      24K     ./snmp
      421M    ./clamav
      4.0K    ./nut
      8.0K    ./vim
      32K     ./php5
      4.0K    ./dbus
      1.4G    .
      
      

       

       

       

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        m1chsh wrote:

         

        I have no installed apps.

         


        Not now perhaps. But there clearly was stuff installed (either as an app or via ssh) before.  Rsyslog didn't get there on its own.  There are also signs of mysql and php5.  Maybe some other stuff too. 

         

        Do you recall what was on there in the past?

         


        m1chsh wrote:

         

        Shall I just delete it?

         

        root@nas:~# cd /mnt/data
        root@nas:/mnt/data# ls -lhS
        total 4.0K
        drwxr-xr-x 3 root root 4.0K Feb 19  2018 rsyslog
        root@nas:/mnt/var/lib# cd /mnt/data
        root@nas:/mnt/data# du -d1 -h
        1.2G    ./rsyslog
        1.2G    .

         


        As I tried to say before:  Don't delete /mnt/data. It is a mount point, so it needs to exist in the system.  Do delete /mnt/data/rsyslog

         


        m1chsh wrote:

         

        root@nas:/mnt/var/lib# du -d1 -h
        854M    ./mysql
        

         


        Here's the other large folder that doesn't normally exist on a ReadyNAS.  Not sure if this was part of php5 (which appears to have installed at some point), or something else.

         

        You could just delete the /mnt/var/lib/mysql folder.  You could also copy it to a share on the data volume (/data/...  - not /mnt/data) first.

         

        Deleting both of these folders should bring the free space in OS partition up to where it should be.