LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-09-2009, 04:58 PM   #1
bcage
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora 11
Posts: 22

Rep: Reputation: 16
How can you debug a system hang during shutdown?


My Feodora 11 AMD 64 system has begun hanging when I shutdown. It drops the window manager and goes to a blank screen. Sometimes there is a blinking cursor in the upper left hand corner, but mostly it is a dark grey screen and then sits.

I have gone through syslog/messages to see if I can decipher anything, with no luck (don't really know precisely what to look for).

How do you debug something like this?

The system is fairly clean. I am running samba and mdadm (for a raid 5 disk configuration), but nothing else other than desktop type apps. I do have the NVIDIA driver installed and the various codecs for video/audio playback.

Any ideas will be appreciated.
 
Old 07-09-2009, 05:56 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,451
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
Hi,

What about your 'Xorg' log?
 
Old 07-09-2009, 07:15 PM   #3
bcage
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora 11
Posts: 22

Original Poster
Rep: Reputation: 16
Thanks for the reply. Xorg.log doesn't give any clues. That log appears to be rewritten on boot since the only content is from startup. I was hoping for a log similar to boot.log, but for shutdowns to be able to see which line fails or hangs, but that doesn't seem to exist.
 
Old 07-09-2009, 08:55 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
What you could do is log in as root at the console then use /sbin/shutdown and see if anything scrolls past. If that fails try again but 'telinit 1' first, then shutdown. If no seemingly useful information is shown you could try and pinpoint the moment when this behaviour started. Knowing the approximate time could help in listing logs around that time, kernel and configuration changes and installed or removed software.
 
Old 07-11-2009, 02:49 PM   #5
bcage
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora 11
Posts: 22

Original Poster
Rep: Reputation: 16
Thanks for your suggestions... looks like whatever was causing the hang has disappeared. The problem is not completely gone. If I shutdown now, I get the grey screen without text, but the system ultimately does shutdown. Must be something related to the NVIDIA driver or X during shutdown.
 
Old 07-11-2009, 05:18 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Try editing /boot/grub/menu.lst
Remove the quiet and splash options from your kernel boot line.
Then, maybe, you'll find out where it hangs.
 
Old 07-12-2009, 01:34 PM   #7
bcage
LQ Newbie
 
Registered: Jun 2005
Distribution: Fedora 11
Posts: 22

Original Poster
Rep: Reputation: 16
As sometimes happens with me, I managed to screw up plenty of other things and decided to rebuild the box... Problem Solved! Thanks for all the suggestions.
 
  


Reply

Tags
fedora, hang, shutdown


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10.1 Shutdown causes system to hang craigs80 Suse/Novell 6 07-16-2006 11:51 PM
howto debug X crash from kdm shutdown? johnpipe Linux - General 0 06-11-2004 01:27 AM
shutdown hang during eth0 shutdown kurtisw Linux - Networking 5 10-30-2003 03:49 PM
RH8: System Hang with shutdown -r now then Linux - Distributions 4 12-22-2002 02:07 PM
PC seems to hang after shutdown. eNTi Slackware 2 09-09-2002 01:35 AM


All times are GMT -5. The time now is 08:37 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration