LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2004, 05:22 PM   #1
enigma82
Member
 
Registered: Sep 2004
Location: Fagaras, Romania
Distribution: Mandrake 10.0
Posts: 48

Rep: Reputation: 15
Silly but init is giving me a headache!


I feel very silly to bother you with this problem but somehow I managed to delete my /initrd (I assume) since it gives me a
kernel panic: Try passing init= option to kernel. Can somebody please tell me how to solve this?. I REALLY don't want to lose my OS, because I have some valuable data on it.
 
Old 09-27-2004, 05:33 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Are you missing your initrd or or your init? The initrd is a small filesystem containing drivers and such to be loaded into your kernel on boot. The init program is the first user space (non kernel) program run when your system starts. It is responsible for starting services, calling the program that provides the login prompts, etc.

In any case, did you change anything in your machine? Add a new disk? Try to install a new kernel? If so, tell us all about it, as it is likely your problem is related to that. Otherwise, your best bet is to boot off rescue media and reinstall the appropriate package -- your kernel, if it is the initrd that's missing, and the SysVinit packages if it's init itself that's missing.

edited to add:

Also, why don't you post a few lines of output above that error message. it will help us see more of what's going on.
 
Old 09-28-2004, 07:14 PM   #3
enigma82
Member
 
Registered: Sep 2004
Location: Fagaras, Romania
Distribution: Mandrake 10.0
Posts: 48

Original Poster
Rep: Reputation: 15
there are no hardware changes in my system, and no recompiled kernel. From what I could figure out myself the /initrd dir is needed by the system in order to boot corectly. I was forced to login as root and I might have deleted it by mistake.
Anyway I might be wrong so here it is the output from my system (MDK10.0 default):


Mounting root filesystem
mount: error 6 mounting ext3 flags default
well, retrying without the option flag
mount: error 6 mounting ext3
well, retrying read-only without any flag
mount: error 6 mounting ext3
pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed: 2
Remount devfs at correct location if necessary
mounted devfs on /dev
Freeing unused kernel memory: 272k freed
Kernel panic: No init found. Try passing init= option to kernel.



And this is the output of my system booting into failsafe option in Lilo:

....................
VFS: cannot open root device "306" or unknown-block (3,6)
Please append a correct "root=" boot option
Kernel panic: VFS: unable to mount root fs on unknown-block(3,6)


I surely didn't modify any boot scripts! I had no reason to do so! my root partition is /dev/hda6.
How do I pass those options in Lilo? After I press Esc it gives me the Lilo with no GUI, I type my boot option and.... simply write the kernel option? I never had to do this before.
 
Old 09-28-2004, 07:37 PM   #4
kamransoomro84
Member
 
Registered: Feb 2004
Location: Pakistan
Distribution: OpenSUSE 10.2
Posts: 241

Rep: Reputation: 30
No offense dude but I think you're in trouble. I had the same problem a while back with Slackware 9.1. I posted here n everything but I couldn't find a solution for it. In the end I had to reformat and reinstall Linux.
 
Old 09-28-2004, 08:03 PM   #5
enigma82
Member
 
Registered: Sep 2004
Location: Fagaras, Romania
Distribution: Mandrake 10.0
Posts: 48

Original Poster
Rep: Reputation: 15
yeap, I know.

I reinstalled my system a couple of times before because of this error but now...
Besides I need that data (which I could retrieve using Total Commander with a plugin for ext2 - works for ext3 too) but it must exist a way to solve this, and wouldn't hurt to know how to deal with it next time I encounter it!
 
Old 09-29-2004, 07:36 PM   #6
enigma82
Member
 
Registered: Sep 2004
Location: Fagaras, Romania
Distribution: Mandrake 10.0
Posts: 48

Original Poster
Rep: Reputation: 15
I finally had time to take a look and from what I saw I didn't delete /initrd after all. Any other ideas? Posible problem? or even a solution.
 
  


Reply


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
this opera is giving me a headache boxerboy Ubuntu 12 10-05-2005 06:44 AM
Slackware 10.0 install giving me a headache GeneralChaos Slackware - Installation 17 07-02-2005 08:53 PM
Maildrop is giving me a headache LiquidKernel Linux - Software 2 09-15-2004 07:53 AM
samba giving me a headache DAChristen29 Linux - Networking 14 07-03-2003 11:34 AM
Need Help PORTFW is giving me a headache. cenci Linux - Networking 1 02-17-2003 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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