You are not logged in.

#1 2017-07-22 13:32:24

Stephen2
Member
Registered: 2012-03-21
Posts: 6

[SOLVED] df showing disk very full, but ncdu shows much less used?

Hi, thanks for helping me understand this.

Filesystem                      Size  Used Avail Use% Mounted on
dev                             3.9G     0  3.9G   0% /dev
run                             3.9G  1.3M  3.9G   1% /run
/dev/sda3                       154G  132G   15G  91% /
tmpfs                           3.9G   12K  3.9G   1% /dev/shm
tmpfs                           3.9G     0  3.9G   0% /sys/fs/cgroup
//freenas.pittman.local/public  9.9T  5.6T  4.4T  57% /mnt/nas
tmpfs                           3.9G  2.0M  3.9G   1% /tmp
/dev/sda1                        92M   46M   40M  54% /boot
tmpfs                           798M     0  798M   0% /run/user/1000

sda3 showing 132G used, but ncdu only shows 7G worth of stuff??

Trying to clean up some more free space

Last edited by Stephen2 (2017-07-22 17:28:29)

Offline

#2 2017-07-22 13:50:55

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] df showing disk very full, but ncdu shows much less used?

Unmount /mnt/nas and run ncdu again, do you get the same result?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-07-22 14:46:45

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: [SOLVED] df showing disk very full, but ncdu shows much less used?

Alternatively, create another mountpoint for your root partition.

e.g.

# mkdir /mnt/root
# mount /dev/sda3 /mnt/root
# ncdu /mnt/root

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2017-07-22 17:19:10

Stephen2
Member
Registered: 2012-03-21
Posts: 6

Re: [SOLVED] df showing disk very full, but ncdu shows much less used?

Thanks very much.

These suggestions made it clear what was wrong.  The "/mnt/nas" had failed to mount at some point, and software had written files into the filesystem inside this folder, instead of to the NAS

Should be an easy fix now.

Offline

#5 2017-07-22 17:26:28

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] df showing disk very full, but ncdu shows much less used?

This has happened to me with a backup script once. Now I always make sure that the destination is a mount point. Anyway, please mark the thread as solved.

Offline

Board footer

Powered by FluxBB