Page 1 of 1

How to find out the HDD space distribution

Posted: Thu Nov 18, 2010 11:49 am
by imcon
I didi not find answer on my question in other topics therefore I ask here.

The questions seems to be simple: how to find-out how the disc space is distributed between different directories? In other words: how to find out which directory eats the most space from the HDD?

I runned out of space on one of my synology stations and I'd like to learn which directory is mostly responsible for it. Is it Surrvillance station? Or the Backup directory and which backup? Or is it because of load of photos?
I'm looking for tool similar to WinDirStat (ported from Linux to Win - probably the best tool available!) or any other similar tool.

Answer can be: go to the File station, select subfolders in each folder and let the Filestation calculate the disk space of the directory. However - this does not work. FileStation is not able to calculate the space for the most space hungry folders. It simply shows - Not available after long calculation.

How to get an owerview about the disk space distribution on Synology NAS ?

Thank you for your help and experience.

Re: How to find out the HDD space distribution

Posted: Thu Nov 18, 2010 1:28 pm
by maxxfi
I'm "old school" and so I propose a command line solution:
- login with telnet/ssh (possibly as root)
- type command "cd /"
- type command "du -ks *"

This will report for each top-level directory how much space it will occupy.
Probably after that you'll want to move to /volume1 ("cd /volume1") and repeat the du command.
For more detail just descend the directory tree and run the du command again.

Re: How to find out the HDD space distribution

Posted: Fri Nov 19, 2010 4:18 am
by Senorpablo
It would be a great feature to add this to one of the existing apps, status, file manager, etc.

Re: How to find out the HDD space distribution

Posted: Wed Dec 08, 2010 1:37 pm
by A2Z
ever tried TDP Xray? I like it a lot and its blazing fast
http://www.tdp.cz/downloads/en/xray-lite

Senorpablo wrote:It would be a great feature to add this to one of the existing apps, status, file manager, etc.

Re: How to find out the HDD space distribution

Posted: Wed Dec 08, 2010 11:06 pm
by imcon
[quote="A2Z"]ever tried TDP Xray? I like it a lot and its blazing fast
http://www.tdp.cz/downloads/en/xray-lite

Nice progamm from my country but I did not try it. Similar way of disc usage utilization works on Linux but I prefer WinDirStat. Anyway How you want to use TDP Xtray (or WinDisStat) for checking Syno disc? You need something witch work on Syno operating system. Not all the folders are shared, not all are accesible etc...

I tryed du command what maxxfi recommended but without good result. The command "du -ks *" works long time without any answer (maybe I need to wait longer..., I've no time to wait so long).

Re: How to find out the HDD space distribution

Posted: Thu Dec 09, 2010 9:08 am
by maxxfi
imcon wrote: I tryed du command what maxxfi recommended but without good result. The command "du -ks *" works long time without any answer (maybe I need to wait longer..., I've no time to wait so long).
The system doesn't keep any index on real disk space used (I'm not talking about disk blocks, but real files), so there is no other option than run a command that goes recursively in all directories and counts up all the files (in short, you have to wait :D )

P.S. Consider that is not your quad-core, turbo-charged, liquid-cooled :wink: desktop CPU to do the file scan and the calculation, but the limited h/w in the NAS, so it may require a bit more time to complete the task that you would normally expect.

Re: How to find out the HDD space distribution

Posted: Mon Dec 13, 2010 6:40 pm
by imcon
Thanks!

It takes hours to calculate but I can see at least part of the story...
I can reccomend to use command

"du -ksh *"

which is better to read.

Re: How to find out the HDD space distribution

Posted: Sat Apr 23, 2016 7:19 am
by MikeEEE
Hello... is this possible now? I am doing disk cleanup and it is saying that 6TB of data is being consumed... but where? It would be nice to see how this is distributed. I am also a newb and allergic to CLI. :P