Results 1 to 7 of 7
Hi. I have a booting problem. I compile kernel 2.4.22 and no problem had seen
while compiling. but when I try to boot. it gives this errror
unable to open ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-24-2004 #1Just Joined!
- Join Date
- Dec 2004
- Posts
- 4
Kernel panic: no init found
Hi. I have a booting problem. I compile kernel 2.4.22 and no problem had seen
while compiling. but when I try to boot. it gives this errror
unable to open an initial console
Kernel panic: no init found. Try passing init= option to kernel
help me plaeaseee.
----------------
My OS is Fedora Core 1
----------------
- 12-28-2004 #2Linux Guru
- Join Date
- May 2004
- Location
- forums.gentoo.org
- Posts
- 1,814
Boot the computer. When the GRUB splashscreen comes up, press the down arrow to stop the count-down clock before GRUB boots the default OS. Read everything on the screen, select the kernel you want to boot and then press e to edit that script. This is what my Fedora Core 1 looks like:
I don't know if the file names "vmlinuz-2.4.22-1.2115.nptl" and "initrd /initrd-2.4.22-1.2115.nptl.img" will exactly match yours, but your GRUB must point to valid file names. You can edit them in the GRUB editing screen, using tab completion to get the exact name right. (Read the instructions on the screen) Changes made in the GRUB editor will not be permanent. Once you get your system booted, you will need to edit your /boot/grub/grub.conf to make it work automatically.Code:root (hd0,6) kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hda8 rhgb initrd /initrd-2.4.22-1.2115.nptl.img
Does this help, at all?/IMHO
//got nothin'
///this use to look better
- 01-03-2005 #3Just Joined!
- Join Date
- Dec 2004
- Posts
- 4
thanks but my problem was booting with new kernel, taht is I installed a new kernel and I can not boot with it. I can boot with my default kernel. I solve my problem by installing without a boot partition.
- 02-20-2005 #4Just Joined!
- Join Date
- Feb 2005
- Posts
- 2
Still witrh problems..kernel panic
Hi I would appreciate a lot your help, I have 1TB server stopped by this cause, when the server boots it always stop with "kernel panic : no init found : try passing init=option to kernel"
I enterred into the grub command line and with tab i choose the file i want the OS to load but always gives me the same message error. any other idea of what could be the solution.
thanks an advance.
- 02-20-2005 #5Just Joined!
- Join Date
- Feb 2005
- Posts
- 2
Still witrh problems..kernel panic
Hi I would appreciate a lot your help, I have 1TB server stopped by this cause, when the server boots it always stop with "kernel panic : no init found : try passing init=option to kernel"
I enterred into the grub command line and with tab i choose the file i want the OS to load but always gives me the same message error. any other idea of what could be the solution.
thanks an advance.
- 02-21-2005 #6Linux Guru
- Join Date
- May 2004
- Location
- forums.gentoo.org
- Posts
- 1,814
Re: Still witrh problems..kernel panic
Hoping that the reason the preceding did not help is that it was not adequately detailed, let me try again:
Originally Posted by jmlgonzalez
1. Boot computer. As soon as Grub splash screen comes up, hit up or down arrow key to stop the clock.
2. Press "c" to get the Grub command line like this: grub>
3. Type:where <tab> is the 'tab' key. You should get a list of valid drives. If Grub does not list the drive or partition where you think your /boot directory or partition is, either assume Grub knows better or check your hardware.Code:root (<tab>
4. Press the next character corresponding to the drive OR partition where your /boot directory is and then press <tab>
5. Repeat step 4 until you have completed the line so it looks likewhere x and y are correct drive (x) and partition (y) where your /boot directory is. You should know already that Grub counts drives and partitions starting with zero for the first primary partition and 4 for the first extended partition.Code:root (hdx,y)
6. If you do not have a separate /boot partition, type:If you do have a separate /boot partition, do not enter the /boot and instead, justCode:kernel /boot/vmlin<tab>
In either case, when you hit <tab>, Grub will complete the filename, or list possible files ONLY if you have correctly entered all other information. If Grub says something like "no files found", go back and correct your error.Code:kernel /vmlin<tab>
7. Repeat step 6 until you have a complete filename but do not press enter yet.
8. Following the kernel filename, on the same line, add ro so the filesystems will be initially mounted read only so that integrity checks may be made without adding corruption, and add information telling Grub where your top level root partition is: / so that the line looks something like this:where, instead of "hda8" you have the correct drive and partition where your / partition is. If you make a mistake here, Grub will not complain. Instead, you will get the message saying there was no init found.Code:kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hda8
8a. If you want to boot in single user mode, without a graphic display, you should add the word single to the end of the line. When the line is complete, press enter.
9. If you do not have a separate /boot partition, type:If you do have a separate /boot partition, do not enter the /boot and instead, justCode:initrd /boot/initrd<tab>
In either case, when you hit <tab>, Grub will complete the filename, or list possible files ONLY if you have correctly entered all other information. If Grub says something like "no files found", go back and correct your error.Code:initrd /initrd<tab>
10. Repeat step 9 until you have a complete filename.
11. Press "enter".
12. Finally, if the system doesn't boot automatically, type: boot and press enter.
If the system doesn't boot completely, please say what messages were seen. Some OSs require additional parameters to be entered on the "kernel" line. If you can boot into your system and find the grub.conf or menu.lst that was created during the system install (if necessary, by using a "live CD"), you should see the additional required parameters. Take careful notes so that you will be able to edit your grub.conf or menu.lst with the correct information. If I have overlooked anything or mis-spoken above, please let me know./IMHO
//got nothin'
///this use to look better
- 02-22-2005 #7Just Joined!
- Join Date
- Feb 2005
- Location
- Europe, Macedonia
- Posts
- 12
The most frequent issue i had in the past
) ok the problem occures when you compile something or in my cases do nothing
) the problem is the following:
in /etc/lilo.conf somehow the / partition is changed to /dev/hdXX and is not the root partition, exp> /dev/hda1 > changed /dev/hda5 so this means you are not booting the root partiotion but someone else.
All I did was go into rescue mode and changed in /etc/lilo.conf or grub.conf,
/dev/hda1 > my root partiotion
but I dont know how and in my fstab my root partition was chaged also, so you can see if there any changes there also and correct them corresponding to your /dev/hdXX
Regards Zoran.


Reply With Quote
