Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm a command line noob but I think this one's stuck. I never get passed etc. Any ideas?

enter image description here

share|improve this question
    
I guess your problem is not related to Putty. Have you tried if this also happens if you log in locally? –  Gurken Papst Jul 24 '12 at 19:08
    
@GurkenPapst I have no access to it physically, I am renting a VPS. –  IMB Jul 24 '12 at 19:42

2 Answers 2

up vote 5 down vote accepted

I don't think it is stuck. It is just taking a really long time to compute the disk usage for the next directory. How long have you waited for it to finish?

Or there is something wrong with the linux system, such as the kernel trying to read bad disk blocks.

share|improve this answer
    
Hmm, during the first attempts it's taking really long then it disconnects. Then at one point it still took really long but it finished. Do you think there's a bad disk block, sign of dying HDD? –  IMB Jul 24 '12 at 17:33
2  
PuTTY has a keepalive option that will prevent drop outs due to inactivity. du has to go through each file to tally usage so if you have a lot of files it can take awhile. –  ultrasawblade Jul 24 '12 at 19:01
    
@IMB: run dmesg and check the output for a hard drive error message. –  jftuga Jul 25 '12 at 12:47

I'd see what all your volumes are with mount, then do 'du' on those individually. One will probably take a while.

If you were at a work setting, id assume there was an NFS/Network drive issue. At home, without a Network Drive, id assume you have a bad volume and you should fsck it.

share|improve this answer

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.