LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-03-2016, 05:08 PM   #1
plafratt
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
Booting with SYSLINUX on Loopback Device: Kernel Panic - Where to Start?


Hello,

I was able to install SYSLINUX on a disk image and get the kernel I built to start booting Linux with QEMU pointing to a loopback device associated with the disk image. However, at some point far into the boot process, I get a kernel panic. I can't read the beginning of the error messages that the kernel prints, because the errors run off the screen.

I copied the bzImage onto the disk image, and I'm not sure where to go from there. Is the next step to build the initrd image? I don't yet know how to get the kernel to mount a device so it can find the root file system.

Any help is appreciated.

Patrick
 
Old 03-04-2016, 05:32 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by plafratt View Post
I get a kernel panic. I can't read the beginning of the error messages that the kernel prints, because the errors run off the screen.
The kernel boot messages are in /var/log/dmesg. I suggest that you start by looking through the /var/log/dmesg file that your SYSLINUX kernel uses.

------------------------
Steve Stites
 
Old 03-14-2016, 05:11 PM   #3
plafratt
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you for the response, Steve. I was actually not yet at the point where the kernel was able to log messages to disk. In the boot process, I don't believe the kernel had yet made the switch from the ramdisk over to the root filesystem on disk.

On another post, some members informed me that my initial question here was too vague. They said I should follow the guidelines given at "Welcome to LQ". The first bullet point there says, "You should include the distribution and version you're using..." However, at this point, I'm not interested in using a distribution. So I did some Google searching on the topic of using Linux without a distro and came across LinuxFromScratch.org. I believe that site provides the information for which I was looking to get me started on building a lightweight root file system that I can use for booting.

The other problem I mentioned in my original post was that I don't know what to do when error messages during boot run off the screen. Someone pointed me to this post at Stack Overflow when having this problem while using QEMU, which has worked for me. I still am not sure how to deal with it when not using an emulator (i.e. booting on real hardware). Someone recommended to me netconsole, but I still need to look into that.

Thanks,
Patrick

Last edited by plafratt; 03-14-2016 at 05:13 PM.
 
  


Reply

Tags
boot, kernel panic, qemu



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
Booting hang up after mounting root device, no kernel panic? eicher16ps Linux From Scratch 1 11-17-2011 02:15 PM
kernel panic while booting my own built kernel in fedora13 using grub RajuLinux Linux - Newbie 2 03-05-2011 09:57 PM
[SOLVED] Syslinux Kernel Panic When Launching Puppy Linux lryoung Linux - Software 3 10-06-2010 09:22 AM
networking level 2 redirecting packets to the loopback device 2.6.24.2 linux kernel patattack Linux - Kernel 1 10-07-2008 12:07 PM
compiling kernel error - could not open loopback device _invader Linux - Newbie 3 10-08-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:50 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
Open Source Consulting | Domain Registration