How to find out the HDD space distribution

An update to DSM3.0, supporting Windows® roaming users profile, and 99 more IP cameras, along with other enhancements.
User avatar
imcon
Experienced
Experienced
Posts: 118
Joined: Fri Jan 30, 2009 12:10 pm
Location: Czech Republic

How to find out the HDD space distribution

Postby imcon » Thu Nov 18, 2010 11:49 am

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.
RT2600at / DS715 /DS210+ / DS209+II / DS107
User avatar
maxxfi
Compiler
Compiler
Posts: 6794
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: How to find out the HDD space distribution

Postby maxxfi » Thu Nov 18, 2010 1:28 pm

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.
DS-106j > DS-210j > DS-411
Senorpablo
Trainee
Trainee
Posts: 15
Joined: Sat Oct 30, 2010 3:29 am

Re: How to find out the HDD space distribution

Postby Senorpablo » Fri Nov 19, 2010 4:18 am

It would be a great feature to add this to one of the existing apps, status, file manager, etc.
A2Z
Trainee
Trainee
Posts: 10
Joined: Wed Dec 01, 2010 12:59 pm

Re: How to find out the HDD space distribution

Postby A2Z » Wed Dec 08, 2010 1:37 pm

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.
User avatar
imcon
Experienced
Experienced
Posts: 118
Joined: Fri Jan 30, 2009 12:10 pm
Location: Czech Republic

Re: How to find out the HDD space distribution

Postby imcon » Wed Dec 08, 2010 11:06 pm

[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).
RT2600at / DS715 /DS210+ / DS209+II / DS107
User avatar
maxxfi
Compiler
Compiler
Posts: 6794
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: How to find out the HDD space distribution

Postby maxxfi » Thu Dec 09, 2010 9:08 am

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.
DS-106j > DS-210j > DS-411
User avatar
imcon
Experienced
Experienced
Posts: 118
Joined: Fri Jan 30, 2009 12:10 pm
Location: Czech Republic

Re: How to find out the HDD space distribution

Postby imcon » Mon Dec 13, 2010 6:40 pm

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.
RT2600at / DS715 /DS210+ / DS209+II / DS107
MikeEEE
I'm New!
I'm New!
Posts: 7
Joined: Sat Dec 14, 2013 11:39 am

Re: How to find out the HDD space distribution

Postby MikeEEE » Sat Apr 23, 2016 7:19 am

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

Return to “DiskStation Manager 3.0 - 1354”

Who is online

Users browsing this forum: No registered users and 1 guest