LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   GENTOO - "init=/linuxrc" (/linuxrc: not found | kernel panic!!) (https://www.linuxquestions.org/questions/linux-distributions-5/gentoo-init%3D-linuxrc-linuxrc-not-found-%7C-kernel-panic-277359/)

halo14 01-13-2005 11:29 AM

GENTOO - "init=/linuxrc" (/linuxrc: not found | kernel panic!!)
 
I'm finishing up my stage 3 install.. it's so wonderful to see it all start coming together..i hope to do a stage 1 at home once i get more comfortable.. this is on my notebook, that's why i did a stage 3...

anyways.. i have finished setting up grub and everything.. it comes up with both Gentoo and Windows.. and selecting gentoo starts loading the kernel.. then I get errors about /linuxrc not being found and whatnot..

i didn't do anything with that other than add "init=/linuxrc" to the kernel loader in grub.conf

i was following the x86-quickinstall guide..and i also looked through the handbook and couldn't figure what i need to do..

someone please help, or point me to the necessary docs..

it's not a big dealto fix becausei can just chroot into it using the liveCD.. i just need to kow if there's something i need to emerge or what?

comprookie2000 01-13-2005 08:33 PM

What did you write down?Form the handbook
Code:

genkernel all

Once genkernel completes, a kernel, full set of modules and initial root disk (initrd) will be created. We will use the kernel and initrd when configuring a boot loader later in this document. Write down the names of the kernel and initrd as you will need it when writing the bootloader configuration file. The initrd will be started immediately after booting to perform hardware autodetection (just like on the Live CD) before your "real" system starts up.

Also if you could post your /boot/grub/grub.conf that would help.Did you emerge hotplug and coldplug and add them to the default runlevel?
Also you need /dev/ram0 in your kernel line something like this for genkernel;
Code:

title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3
initrd /initrd-2.4.26-gentoo-r9


halo14 01-13-2005 08:40 PM

here's my grub.conf:
Code:

default 0
timeout 30
splashimage=(hd0,3)/grub/splash.xpm.gz

title=Gentoo
  root (hd0,3)
  kernel /kernel-2.6.10-gentoo-r4 root=/dev/ram0 init=/linuxrc real_root=/dev/hda4
  initrd /initrd-2.6.10-gentoo-r4

title=Windows
  rootnoverify (hd0,0)
  makeactive
  chainloader +1

No i did not emerge hotplug or coldplug.. actually I was just following the directions for the
x86-quickinstall... which will get a booting system up.. which is all i want.. then I'll do
everything else..

comprookie2000 01-13-2005 08:56 PM

I would cd /usr/src/linux make menuconfig and select * for your filesystem and drives (compile support directly into the kernel and select M for your soundcard and ethernet card and anything else you want then make && make_modules install then make install.The kernel will be vmlinuz then I emerge udev emerge hotplug and emerge coldplug and add them to the default runlevel rc-update add hotplug default then rc-update add coldplug default,that is if you can't get genkernel to boot.I have never used genkernel so can't help much,good luck

Ryujin 01-13-2005 09:16 PM

I had the same prob, if worse comes to worse try a stage 1, fixed it for me. It isn't hard at all, you just have like 3 more lines of code and one more file to config.

halo14 01-14-2005 08:06 AM

doesn't a stage 1 take like well over a week?? I tried a stage 2 a few months back.. but got too busy with work to keep going.. I spent like 3 days on it...

I don't know, perhaps I will try a stage 1 later... I just really would like to get this working... thanks for the help...

halo14 01-14-2005 01:03 PM

i fixed it.. the "real_root" section should have been going towards /dev/hda2 rather than hda4...

I am now booted up, and currently compiling Xorg.. thanks for the help guys..


All times are GMT -5. The time now is 12:27 AM.