Booting stops after kernel starts
Hi,
I'm new to gentoo - I simply want to try it. After getting through the installation (Version 20110520) I got the following problem: I restarted the system and everything works find up to the init-process: I could start the kernel (if I enter the kernel option init=/bin/bash - it works) but after that, the system hangs -> It seems like the init script is not started. So I search around and found that gentoo merged to baselayout-2. I checked it: I have baselayout2 and openrc installed. Does anybody know how I could make gentoo start? Greetings ToK |
Sounds like you have the kernel, modules, and initrd, but not the root filesystem. I presume it's throwing a kernel panic?
It's reliant on the kernel, the root=details on the command line, and /sbin/init & the root tree, and the initrd or kernel to have modules enough to run your box. Post more details or check. |
OK, here is what I did and have in detail:
I followed the Instruction for gentoo amd64 in german (although they aren't explain the configuration of the baselayout 2 - for example there is mentioned to configure /etc/conf.d/clock not /etc/conf.d/hwclock). I configured my kernel by myself and installed syslog-ng, logrotate and mlocate. Afterwards I installed and configured grub. My grub gentoo entry is the following: Code:
root (hd0,7) Code:
kjournald starting. commit interval 5 seconds If I append init=/bin/bash at the boot menu the following additional messages appear: Code:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device Code:
rootfs / rootfs rw 0 0 I checked : baselayout 2.0.2 is installed openrc-0.8.2-r1 is installed sysvinit-2.88-r1 is installed executing dispatch-conf (as mentioned in Baselayout and OpenRC Migration Guide) shows Code:
PORTAGE_BZIP2_COMMAND setting is invalid: 'bzip2' If I invoke shutdown -h now the following message appears: Code:
shutdown: /dev/initctl: No such file or directory and rebooted somehow - nothing changed: the system stops after the kernel booted... :confused: Any Ideas? |
Quote:
check this push that return You overwrote your internal (often the only) ram completely. Somebody got that exact error in Gentoo booting 64bit on a 32bit kernel. Is everything OK there? If so, there's CONFIG_DEBUG_STACK_USAGE in the kernel hacking menu. |
Ok
I run a 64bit kernel (Processor Type Core2/New Xeon - or how do I select a 64bit kernel) on a 64bit system. I copied arch/x86_64/boot/bzImage to /boot/kernel-2.6.38-gentoor6. My kernel is already compiled with CONFIG_DEBUG_STACK_OVERFLOW. How do I access the debugging Information? ToK |
Quote:
On CONFIG_DEBUG_STACK_OVERFLOW, I don't know. It's in kernel hacking, and there's at least one doc in the kernel documentation. You may have to install kernel docs or make xmldocs. It's a reluctant Rusty Writing, so I wouldn't expect loads. I might google '+CONFIG_DEBUG_STACK_OVERFLOW +usage' first on google/linux With init=/bin/bash, Nothing is run: No $PATH; Nothing started; dmesg is still in ram; Nothing logged. To get going there, laziest thing is . /etc/profile.d/*.sh /sbin/init 3 Just wildly guessing, you've just dropped 700k of kernel stuff because it wasn't needed. If cleanup isn't great, and that could be the source of extra processes & stacks. Likewise extra modules in the initrd if you have one. There is an mtrr cleanup setting, and you set how many registers to clean up. There's a thread here making sense of mtrr_cleanup when some guy asked, then figured it and posted. You may be able to get round this with some boot parameter also |
I have the exact same problem as described in post #3.
As this is not my first gentoo install, I also noticed that the English manual does not yet reflect the baselayout2/OpenRC changes. /dev isn't populated so booting with grub "init=/sbin/init 3" doesn't do anything. Well, except for printing out the following. Code:
/dev/initctl: No such file or directory Here is how to fix the problem described in post #3: (The problem being missing device nodes in /dev before /dev is mounted) Boot from a LiveCD and chroot into your system. Create the needed device nodes with the following commands. Code:
cd ~ OpenRC does not start udev by default at system startup. Make sure it is started at boot: Code:
rc-update add udev sysinit |
Thanks! Great! That's it!
It should be mentioned that you should not mount dev before entering the chroot environment. In my case there was already a normal file called null. Greetings ToK |
thank you
well done! you saved my weekend :)
|
All times are GMT -5. The time now is 01:02 PM. |