Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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?

share|improve this answer
you were right htank you, df worked! – Andrew Fashion Dec 2 '10 at 18:36
how can i make it display in human readable format like MB and GB? – Andrew Fashion Dec 2 '10 at 18:36
and i dont know how to tell the filesystem type, how do i do that? – Andrew Fashion Dec 2 '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 2 '10 at 18:38
okay awesome, looks like 135GB of images and ext3 file system. – Andrew Fashion Dec 2 '10 at 18:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.