LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-18-2006, 06:26 AM   #1
raklo
Member
 
Registered: Apr 2006
Posts: 143

Rep: Reputation: 15
/sbin/init is not called by the kernel


hi all,
i need to get an x86 based sbc boot from linux,wherein im using kernel 2.6.11.1.I m using GRUB bootloader whrein all the commands of grub

root (hd1,0)
kernel /boot/vmlinux ro root=/
initrd /boot/initrd.img

are called but after the kernel decompresses itself and the initrd,it does not call /sbin/init

As a result of which my init scripts are not called and none of the daemons are initialized which makes my system paralyzed as i cant do ssh and telnet to the system.

i do get the login prompt.

if any more details are required,kindly inform
any input is appreciated

regards
rakesh
 
Old 09-18-2006, 03:40 PM   #2
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
In an initrd, I believe the kernel expects a file called /linuxrc (which will do whatever is necessary to boot up (load modules, configure eth0 etc), then exec /sbin/init). If you don't need to do anything (that is, you're running the system from the initrd), you could probably just symlink /linuxrc to /sbin/init (though I've never done that myself).
 
Old 09-19-2006, 05:31 AM   #3
raklo
Member
 
Registered: Apr 2006
Posts: 143

Original Poster
Rep: Reputation: 15
hi,
thanx a lot for the response/

i did wot u said,i.e create a symlink of linuxrc to /sbin/init,but that doesnt work.

The point is that my system reacts the same way even if there is no file called inittab in /etc.The /sbin/init is not called.
let me tell u one thing,the root file system that i have used also uses busybox,so is it possible that busybox doest not know how to call /sbin/init or linuxrc/.
if this is the problem how shud it be solved?

regards
rakesh
 
  


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
/sbin/init: error 80 241comp Linux - Software 2 06-08-2006 01:54 PM
Chkroot scan - /sbin/init & /sbin/ifconfig INFECTED bicoba Linux - Security 4 06-07-2006 09:16 AM
FC4 kernel panic /sbin/init failed markelo Fedora 3 02-16-2006 04:54 PM
why would kernel not start /sbin/init liyuheu Linux - Newbie 5 09-03-2004 12:13 AM
How can i overwrite /sbin/init? poboy Linux - Newbie 3 08-28-2004 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:46 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