Answers to: How to gather troubleshooting information during startup?http://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startup<p>I am trying to get linux installed on an older laptop. Some of the time it starts up and runs just fine. But most attempts of at starting the laptop gets through BIOS and starts linux. Then during the time when /dev is being populated the laptop abruptly powers off.</p> <p>I do not have any information about what is going wrong on the failed startups. Is there a way to get some logging information out of one of these failed startup attempts? Is there some other troubleshooting technique I should be using?</p>enSun, 25 Jul 2010 17:15:11 -0400Answer by craigevilhttp://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startup/1141<p>Try using bootlogd. <a href="http://wiki.debian.org/bootlogd" rel="nofollow">http://wiki.debian.org/bootlogd</a> In Debian and Debian based distros it is part of initscripts.</p> <p>You might also try running memtest to test the ram.</p>craigevilSun, 25 Jul 2010 17:15:11 -0400http://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startup/1141Answer by pcardouthttp://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startup/854<p>Ron gave you an excellent first-order answer. Every user should know to go to <strong>/var/log</strong> or <strong>dmesg</strong> as a first line of defense. All those messages that go by too fast when you boot a Linux machine can be seen by looking at <strong>dmesg</strong>. </p> <p>Another diagnostic worth knowing about is <strong>lshw</strong>. Gives great detail on every component of your system if you think you might have some issue with some of your chipsets. (lshw is generally not installed by default, but is definitely in the Debian &amp; Ubuntu repositories, and almost certainly is available for other major distros as well.)</p> <p>Your problem is going to be difficult to solve given what you've said so far. Maybe you'll be lucky and find some helpful error messages in <strong>dmesg</strong>. </p> <p>Frankly, it sounds like hardware ... possibly as simple as a battery approaching end of life. If your laptop is fully charged and you boot it -- does it go all the way? Does it matter if the adapter is plugged in too?</p>pcardoutTue, 15 Jun 2010 06:53:19 -0400http://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startup/854Answer by Ronhttp://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startup/814<p>Yes.</p> <p>You can look at the logs stored in /var/log</p> <pre><code> cd /var/log ls cat /var/log log-name-here </code></pre> <p>You can also dmesg item | less</p> <p>Such as for example: dmesg eth0 | less</p> <p>There are many different logs, ways of viewing them, etc. You can also try from the top panel menu in Gnome: System > Administration > Log File Viewer -- and look there.</p> <p>The above suggestions are just the starting point, not all-inclusive.</p> <p>This may also be of interest to you as well: <a href="http://www.linux-mag.com/id/7789" rel="nofollow">http://www.linux-mag.com/id/7789</a></p>RonWed, 09 Jun 2010 17:38:29 -0400http://linuxexchange.org/questions/812/how-to-gather-troubleshooting-information-during-startup/814