LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-15-2009, 04:12 PM   #1
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Rep: Reputation: 15
`df -h` locks my ssh session


After executing `df -h` my SSH session hangs and doens't return prompt back.

Anybody had similar problem?

Centos 5.3 i386
 
Old 05-15-2009, 04:24 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Can you run `df` without the -h? What do you have mounted (any remote mountpoints)?
 
Old 05-15-2009, 05:37 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ctrl+C or Ctrl+Z it.

You likely have a stale NFS mount. Restore the NFS server it is looking for, or reboot. If /etc/mnttab exists, cat it or open it in an editor for possible clues.
 
Old 05-15-2009, 11:03 PM   #4
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Original Poster
Rep: Reputation: 15
Ctrl+C and Ctrl+Z doesn't work, but yes I had trouble mounting NFS share from this machine earlier that day which I totally forgot.

Thanks AlucardZero for pointing that out!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH concurrent session limit and idle session time out lasygsd Linux - Newbie 3 10-30-2014 07:56 AM
ssh -> perl -> spawn background proces hangs ssh session rhoekstra Programming 2 04-25-2006 01:05 AM
Telnet session locks up on ls command rgutendorfjr Linux - Networking 2 10-08-2003 01:37 PM
Machine locks up starting KDE session mjmuscato Linux - General 1 08-20-2003 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration