Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-07-2006, 05:27 AM   #1
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
dmesg for an other kernel


i'm wondering if linux is logging dmesg like logs of kernels which do not run at the moment? E.g.: let's say i have kernel 2.6.9 running at the moment. I compile a new kernel (2.6.15) and test it, but the boot-up procedure with the new kernel is not successful. Now i'd like to see the dmesg output of the 2.6.15 kernel (since the only working kernel on the machine is 2.6.9 it has to be from this one).
Old 01-07-2006, 02:03 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68

I've never tried this, but it might give you what you are trying to get.

Boot the 2.6.15 kernel, let it fail, then throw in a Live CD (knoppix comes to mind). Then, once it's booted up, mount up your root partition and chroot in:
mount /mnt/hda1
chroot /mnt/hda1

Assuming /dev/hda1 is your normal root Then run:
And see what you get.

Your other options are to examine the /var/logs to see if any of them have info on why it's failing. Usually, why it failed is (a kernel panic is *usually* because the filesystem support wasn't added or /etc/fstab is not correct if devices change or something) more important than what dmesg is going to tell you. Try to write down what the error is when it actually fails to load.

Old 01-07-2006, 03:16 PM   #3
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Original Poster
Rep: Reputation: 35
Thank you!! Yeah, you brought me to an idea!! Why using a live CD, i can just use rescue CD or installation CD, which boots me into the single mode (like Slackware's CD No. 1) and follow the procedure you suggested!! ))) Heh, somethimes the solutions for problems are in front of you, you just need a little push into the right direction to find them! Thank you MasterC!

Writing down the error is always a good choice and i'm doing that, but sometimes i need to know about things which happened before the error and are not seen on the screen anymore.


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
kernel config and dmesg errors slinky2004 Linux - General 2 10-19-2005 12:30 PM
dmesg -What's it all mean? shilo Slackware 2 09-05-2004 04:58 AM
Kernel Boot Messages - Dmesg Problem LinuxGeek Linux - General 8 08-19-2004 10:35 AM
/bin/dmesg > /dmesg-boot not Working in Knoppix 3.4 suguru Debian 2 07-04-2004 05:21 PM
kernel 2.6.4 agpgrat error on dmesg bashrc2 Slackware 2 03-26-2004 09:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:12 AM.

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