i need to get the entire size of /storage, but using du -sh times out after about an hour! is there another way to get the entire directory size?
Asked
Active
Viewed 430 times
1 Answers
2
Is /storage
mounted as a separate filesystem? If so, you can simply type df /storage
and that should work.
The fact that the command is timing out suggests that it's a network filesystem. If so, what filesystem type is it? What's it provided by and how are you mounting it?

mattdm
- 6,600
- 1
- 26
- 48
-
you were right htank you, df worked! – Andrew Fashion Dec 02 '10 at 18:36
-
how can i make it display in human readable format like MB and GB? – Andrew Fashion Dec 02 '10 at 18:36
-
and i dont know how to tell the filesystem type, how do i do that? – Andrew Fashion Dec 02 '10 at 18:36
-
`df -h` should make it human-readable. `df -T` will tell you the filesystem type. You can combine the two: `df -hT`. And `man df` will tell you more options. – mattdm Dec 02 '10 at 18:38
-
okay awesome, looks like 135GB of images and ext3 file system. – Andrew Fashion Dec 02 '10 at 18:47
-
how do i mount another harddrive to /storage on my new server? – Andrew Fashion Dec 02 '10 at 18:48
-
@Andrew Fashion, one question per **Question** please. – Zoredache Dec 02 '10 at 18:54
-
@Andrew Fashion -- A lot of this basic stuff may be better suited for the http://unix.stackexchange.com/ site. – mattdm Dec 02 '10 at 18:55