Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.