Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DF and DU different results

Featured Replies

hi, 

i have a problem with these commands..and /var/log folder

if i use DF -h i receive this output

 

root@LordbyeNas:~# df -h 
Filesystem                        Size  Used Avail Use% Mounted on
rootfs                             16G  2.4G   14G  15% /
tmpfs                              32M  1.1M   31M   4% /run
/dev/sda1                          15G  990M   14G   7% /boot
overlay                            16G  2.4G   14G  15% /lib/firmware
overlay                            16G  2.4G   14G  15% /lib/modules
devtmpfs                          8.0M     0  8.0M   0% /dev
tmpfs                              16G     0   16G   0% /dev/shm
cgroup_root                       8.0M     0  8.0M   0% /sys/fs/cgroup
tmpfs                             384M   71M  314M  19% /var/log
tmpfs                             1.0M     0  1.0M   0% /mnt/disks
tmpfs                             1.0M     0  1.0M   0% /mnt/remotes
tmpfs                             1.0M     0  1.0M   0% /mnt/addons
tmpfs                             1.0M     0  1.0M   0% /mnt/rootshare

-----

Instead with Du 

 

root@LordbyeNas:~# du -h -c /var/log/
0       /var/log/pwfail
128K    /var/log/unraid-api
0       /var/log/swtpm/libvirt/qemu
0       /var/log/swtpm/libvirt
0       /var/log/swtpm
0       /var/log/samba/cores/rpcd_winreg
0       /var/log/samba/cores/rpcd_classic
0       /var/log/samba/cores/rpcd_lsad
0       /var/log/samba/cores/samba-dcerpcd
0       /var/log/samba/cores/winbindd
0       /var/log/samba/cores/nmbd
0       /var/log/samba/cores/smbd
0       /var/log/samba/cores
236K    /var/log/samba
0       /var/log/plugins
0       /var/log/pkgtools/removed_uninstall_scripts
4.0K    /var/log/pkgtools/removed_scripts
12K     /var/log/pkgtools/removed_packages
16K     /var/log/pkgtools
4.0K    /var/log/nginx
0       /var/log/nfsd
28K     /var/log/libvirt/qemu
0       /var/log/libvirt/ch
128K    /var/log/libvirt
752K    /var/log/
752K    total

 

Where can i find the difference?

thanks

 

Solved by Lordbye

47 minutes ago, Lordbye said:

Where can i find the difference?

You should use du -sh /var/log:

root@Tower:~# du -sh /var/log
9.4M	/var/log

 

 

root@Tower:~# df -h /var/log
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           128M  9.4M  119M   8% /var/log

 

As you can see both values are the same on my server.

 

 

Do you maybe have any symlinks manually made which are pointing to /var/log? Please also include your Diagnostics for further help.

  • Community Expert

You could also try:

ls -l /var/log

so you see files directly stored under /var/log rather than in folders

  • Author

i'll try to trim these files

tnx

 

root@LordbyeNas:/var/log# ls -lh
total 244K
-rw------- 1 root   root  768 May  8 09:34 btmp
-rw-r--r-- 1 root   root    0 Apr 28  2021 cron
-rw-r--r-- 1 root   root    0 Apr 28  2021 debug
-rw-r--r-- 1 root   root  71K May  6 00:14 dmesg
-rw-r--r-- 1 root   root  17K May 12 07:01 docker.log
-rw-r--r-- 1 root   root 6.9K May  6 00:14 faillog
-rw-r--r-- 1 root   root   56 May 12 15:20 gitcount
-rw-r--r-- 1 root   root  14K May 12 15:20 gitflash
-rw-r--r-- 1 root   root  63K May  6 00:14 lastlog
drwxr-xr-x 4 root   root  140 May 11 03:00 libvirt/
-rw-r--r-- 1 root   root  784 May  6 16:32 maillog
-rw-r--r-- 1 root   root    0 May  6 00:14 mcelog
-rw-r--r-- 1 root   root    0 Apr 28  2021 messages
drwxr-xr-x 2 root   root   40 Aug 10  2022 nfsd/
drwxr-x--- 2 nobody root   60 May  6 00:15 nginx/
lrwxrwxrwx 1 root   root   24 Nov 20 22:24 packages -> ../lib/pkgtools/packages/
drwxr-xr-x 5 root   root  100 May  6 00:14 pkgtools/
drwxr-xr-x 2 root   root  980 May 11 16:45 plugins/
drwxr-xr-x 2 root   root   40 May 12 11:03 pwfail/
lrwxrwxrwx 1 root   root   25 Nov 20 22:26 removed_packages -> pkgtools/removed_packages/
lrwxrwxrwx 1 root   root   24 Nov 20 22:26 removed_scripts -> pkgtools/removed_scripts/
lrwxrwxrwx 1 root   root   34 May  6 00:14 removed_uninstall_scripts -> pkgtools/removed_uninstall_scripts/
drwxr-xr-x 3 root   root  340 May 12 15:17 samba/
-rw-r--r-- 1 root   root   33 Dec 31  2019 scan
lrwxrwxrwx 1 root   root   23 Nov 20 22:24 scripts -> ../lib/pkgtools/scripts/
-rw-r--r-- 1 root   root    0 Apr 28  2021 secure
lrwxrwxrwx 1 root   root   21 Nov 20 22:24 setup -> ../lib/pkgtools/setup/
-rw-r--r-- 1 root   root    0 Apr 28  2021 spooler
drwxr-xr-x 3 root   root   60 Sep 27  2022 swtpm/
-rw-r--r-- 1 root   root 100K May  6 01:00 syslog
drwxr-xr-x 2 root   root   80 May 10 21:00 unraid-api/
-rw-r--r-- 1 root   root    0 May  6 00:14 vfio-pci
-rw-r--r-- 1 root   root  587 May  6 00:14 wg-quick.log
-rw-rw-r-- 1 root   utmp 6.8K May  6 00:15 wtmp

 

 

Edited by Lordbye

  • Author
3 hours ago, ich777 said:

You should use du -sh /var/log:

root@Tower:~# du -sh /var/log
9.4M	/var/log

 

 

root@Tower:~# df -h /var/log
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           128M  9.4M  119M   8% /var/log

 

As you can see both values are the same on my server.

 

 

Do you maybe have any symlinks manually made which are pointing to /var/log? Please also include your Diagnostics for further help.

 

 

i try


root@LordbyeNas:~# du -sh /var/log
772K    /var/log

root@LordbyeNas:~# df -h /var/log
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           384M   73M  312M  19% /var/log

i have not any symlinks (or better, not manually made by me....) 

Edited by Lordbye

  • 2 weeks later...
  • Author
  • Solution

i rebooted and now du and df has same total...i'll wait

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.