LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-11-2008, 09:41 AM   #1
lfs_rocks
Member
 
Registered: Jan 2008
Distribution: BOSS (Bharat Operating System Solutions)
Posts: 37

Rep: Reputation: 15
Unable to boot LFS... Kernel Panic - not syncing


Hi all

i have succesfully installed LFS 6.3 and was able to boot into it when my host system was BOSS(Bharat operating system solutions - debian based system) ...

now i have installed debian 4.0 etch in the place of BOSS...and added the LFS option to the boot loader....when i tried to boot LFS iam getting the following error...

Code:
Freeing unused kernel memory: 296k freed
Warning: unable to open an initial console
Failed to execute 1. Attempting defaults...
Kernel panic - not syncing : No init found. Try passing init= option
to kernel.
Please see this link in which screen capture of the error is given...

http://www.zshare.net/image/103829355a6b3a62/

I have tried giving the option init=1 to the kernel parameters....but no use..i also tried re installing the kernel...(last step of LFS...)
Still i am getting same error ...

Please help me to resolve this as soon as possible

THANKS IN ADVANCE
 
Old 04-12-2008, 03:38 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
init= needs to point to a valid program that can start up the system like /sbin/init or you can point to a script or you can point to a shell.
 
Old 04-12-2008, 05:11 AM   #3
lfs_rocks
Member
 
Registered: Jan 2008
Distribution: BOSS (Bharat Operating System Solutions)
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by datopdog View Post
init= needs to point to a valid program that can start up the system like /sbin/init or you can point to a script or you can point to a shell.
Thanks for your reply..

I have tried giving the option init=/sbin/init to the kernel parameters... i have also tried init=/bin/bash ..
but i am getting the same error with one more line before kernel panic

Code:
Freeing unused kernel memory: 296k freed
Warning: unable to open an initial console
Failed to execute /sbin/init . Attempting defaults...
Kernel panic - not syncing : No init found. Try passing init= option
to kernel.
Code:
Note :

I was able to boot the same when i was using BOSS(host system using which i have built LFS...)
Now i have installed another OS...Debian 4.0 etch in place of BOSS....

It is not booting after installing Debian...What has been affected due to installation...
it  was fine before installation of debian...


Please help me to boot LFS...

Thanks in advance

Last edited by lfs_rocks; 04-12-2008 at 05:12 AM.
 
Old 04-12-2008, 07:42 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
its seems like you dont have the correct root= option as well you need to set that and also did you create the /dev/console device file as i see that error too
 
Old 04-12-2008, 08:32 AM   #5
lfs_rocks
Member
 
Registered: Jan 2008
Distribution: BOSS (Bharat Operating System Solutions)
Posts: 37

Original Poster
Rep: Reputation: 15
thanks for lot your reply...

i have wrongly given the root= option ....now i am able to boot LFS...

Is it possible to copy the contents of root partition of LFS...in to an USB drive and boot it in another comp...?

Quote:
How to make the LFS that i have built Portable...?
Please suggest a way so that i can show it to others....

Last edited by lfs_rocks; 04-12-2008 at 08:44 AM.
 
Old 04-13-2008, 02:37 AM   #6
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Yes it is possible, you could also squash fs it to make it smaller. To run on usb you may have to consider redesigning your startup scripts to operate in a read-only setup.
 
  


Reply



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 panic - not syncing: VFS: Unable to mount root fs on unknown-block bijit1709 Slackware 11 06-08-2007 04:38 PM
Kernel panic - not syncing: VFS: unable to mount root.... nelad Ubuntu 2 04-14-2007 12:42 PM
kernel panic - not syncing: VFS: Unable to mount root fs on unknown ... nelad Ubuntu 1 04-13-2007 02:20 AM
Kernel Panic - Not Syncing VFS: unable to mount root file system push Slackware 8 08-28-2006 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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