LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-09-2009, 06:22 AM   #1
Dims
Member
 
Registered: Feb 2009
Posts: 151

Rep: Reputation: 15
What log file reflects boot hang reason?


I have system boot hang in specific hardware configuration. What log files should I analyse to determine hang reason?

I am booting the system two times. First time with "bad" config and having hang, second time with "good" config to be able to inspect logs.

Looking "messages" and "dmesg" files I see no messages belonging to bad boot (as I think). Do they stored somewhere or dropped due hang?

Thanks.

P.S. My distro is Fedora 9 and a hang occures before "starting udev" message.
 
Old 06-09-2009, 06:27 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
"boot" is sometimes ambiguous.....to some it mean the entire startup process, but to others is mean only the process leading up to handing control to the kernel.

For something like the GRUB bootloader, I don't think there are any error logs. Once the kernel takes over and runs "init", logs are written to /var/log.

In your case, something around "starting udev" should be in the logs.
 
Old 06-09-2009, 06:29 AM   #3
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
dmesg should indicate the failure. Mind posting the output? Also, what changed on the machine since the last boot?
 
Old 06-09-2009, 07:35 AM   #4
Marko Hyvärinen
LQ Newbie
 
Registered: May 2009
Posts: 24

Rep: Reputation: 15
maby boot.msg etc, SuSE have it, does Fedora ?
 
Old 06-09-2009, 07:54 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,627

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Dims,

Try analyse /var/log/syslog, Xorg.0.log, and /var/log/debug. There, at least whatever failed when kernel took over control it could be inferred easily.

By the way what were the messages when the bad config failed to boot?

We need more info regarding your problem so that we can provide help.

Goodluc.
 
Old 06-09-2009, 08:07 AM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by Dims View Post
I am booting the system two times. First time with "bad" config and having hang, second time with "good" config to be able to inspect logs.
Do you have a working liveCD?

If I were diagnosing a problem like that, I would want to preserve as much as possible of the hang, rather then have anything overwritten by the next startup. So after the hang, I would boot a liveCD and use that to look at any remains on the hard drive from the startup that failed.
 
Old 06-09-2009, 09:27 AM   #7
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
I am trying to make graphicsless computer node. The situation specific is described here: http://www.linuxquestions.org/questi...onsole-730413/

Since it was impossible to find the specific answer, I would like to find the more general answer now: how to determine hardware responsible for hang in Linux?
 
Old 06-09-2009, 09:31 AM   #8
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by malekmustaq View Post
Try analyse /var/log/syslog,
Absent.

Quote:
Xorg.0.log,
I am not starting X11.

Quote:
and /var/log/debug.
Absent.

Quote:
By the way what were the messages when the bad config failed to boot?
I am looking at messages vis serial console and see some corrupted words during processors initializing.

The tail is

Code:
console [tty0] enabled
console [ttyS0] enabled
Checking aperture...
No AGP bridge found
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing software IO TLB between 0x20000000 - 0x24000000
Memory: 6118344k/8388608k available (2852k kernel code, 164020k reserved, 1588k data, 1268k init)
SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
Calibrating delay loop (skipped), value calculated using timer frequency.. 5306.65 BogoMIPSIche hash tabl ns
subsyspuacct
U  Node
CPU: PhysiCcore ID: 0
CPU0:n hreads.
ExtINT Detected 8.29Iled: passed.
Bosor 2/Initializinr ic ro0 passed.
BootingInitializing CPU#3
Calibrating delayInitializing C007 new 0 passed.
Initializing CPU#5
p passed.
Booting priInitializing CPU#Initializing CPU#7
Calibratinae: redinterface drr:00:: PME# suppor0:ci 0000:00:1c, e ASPM for dI->A: PIC IRQ :
Quote:
We need more info regarding your problem so that we can provide help.
Thank you very much, would hope to find the cause with your help!
 
Old 06-09-2009, 09:34 AM   #9
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Admiral Beotch View Post
dmesg should indicate the failure.
It seems to me that it shows data about last boot only. Since it is successful, I see no keys about hang.

Quote:
Also, what changed on the machine since the last boot?
I am trying to boot without graphics card. Boot hangs whet I take it out.
 
Old 06-09-2009, 09:37 AM   #10
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
Once the kernel takes over and runs "init", logs are written to /var/log.

In your case, something around "starting udev" should be in the logs.
It looks like hang occures before init but after kernel starts booting. Boot don't reach starting udev message.

Am I right thinking that this is a first init message?
 
Old 06-09-2009, 10:42 AM   #11
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Quote:
Originally Posted by Dims View Post
It seems to me that it shows data about last boot only. Since it is successful, I see no keys about hang.

Look in /var/log, you should have multiple dmesg logs. Look at the relevant one
 
Old 06-09-2009, 01:43 PM   #12
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
I have two one: dmesg and dmesg.old. The size of them is similiar. Is it possible to store dmesg of each log?
 
Old 06-09-2009, 01:49 PM   #13
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
What do you mean store? They are stored, thats what those are, files.
 
Old 06-09-2009, 02:14 PM   #14
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,796

Rep: Reputation: 213Reputation: 213Reputation: 213
?

What about trying to edit the boot process eliminating loading the kernel module that is looking for the graphics that aren't there?

Last edited by thorkelljarl; 06-09-2009 at 02:25 PM.
 
Old 06-09-2009, 03:51 PM   #15
Dims
Member
 
Registered: Feb 2009
Posts: 151

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jamescondron View Post
What do you mean store? They are stored, thats what those are, files.
Sorry I ment store dmesg of each boot. I booted 100 times but have only 2 files.
 
  


Reply


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
finding hang reason arunachalam Linux - Software 3 09-15-2007 08:14 AM
FC3 boot hang: Read-only file system error? batard Fedora 2 04-05-2005 06:28 AM
system hang reason of soundcard ajishcheeran Linux - Hardware 1 04-17-2004 02:33 PM
GeForce, Hang on boot, hang on X ctrl-alt-bspace bigearsbilly Linux - Hardware 0 03-01-2004 07:56 AM
File-system check on boot fails-- ALSA hang vivalinux Mandriva 6 11-25-2003 08:24 AM


All times are GMT -5. The time now is 07:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration