View previous topic :: View next topic |
Author |
Message |
legit Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/173205023243c05d1560c8f.gif)
Joined: 04 Jan 2006 Posts: 216 Location: Denver, CO
|
Posted: Sun Jan 20, 2008 8:26 pm Post subject: no init found [SOLVED] |
|
|
hey all,
So i just finished installing gentoo, everything went fine until i boot.
while booting i get the error:
" not syncing, no init found. Try passing init= to kernel"
Any ideas on what i need to do?
thanks,
- legit
Last edited by legit on Sun Jan 20, 2008 11:41 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Bzub Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 25 Dec 2004 Posts: 89 Location: Belgium
|
Posted: Sun Jan 20, 2008 9:09 pm Post subject: |
|
|
init is the process that loads right after the kernel.
so something is probably wrong with your /etc/inittab.
I you have grub try this:
(grub splash) goto you gentoo to start. press e
goto the line with kernel; /boot/kernel/ ...
press e again. at the end add this ro init=/bin/bash
if you can boot and get a shell promp then post your /etc/inittab.
or you can try adding
init=/etc/inittab ( same way as above ) if it works make in last in your grub.conf file.
bootparam man for more info.. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Sun Jan 20, 2008 9:42 pm Post subject: |
|
|
legit,
You probably used genkernel or the binary kernel from the install CD, if your grub.conf needs to include on the kernel line. The kernel line really is one very long line too. Line breaks are not permitted. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
legit Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/173205023243c05d1560c8f.gif)
Joined: 04 Jan 2006 Posts: 216 Location: Denver, CO
|
Posted: Sun Jan 20, 2008 9:53 pm Post subject: |
|
|
well i couldn't get grub to boot by adding that but i booted the livecd and got my etc/inittab
also, theres an error message right before the init one that say: cannot open initial console.
Code: |
#
# /etc/inittab: This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@cistron.nl>
# Modified by: Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
# Modified by: Daniel Robbins, <drobbins@gentoo.org>
# Modified by: Martin Schlemmer, <azarah@gentoo.org>
#
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab,v 1.5 2005/12/22 02:03:23 vapier Exp $
# Default runlevel.
id:3:initdefault:
# System initialization, mount local filesystems, etc.
si::sysinit:/sbin/rc sysinit
# Further system initialization, brings up the boot runlevel.
rc::bootwait:/sbin/rc boot
l0:0:wait:/sbin/rc shutdown
l1:S1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
l6:6:wait:/sbin/rc reboot
#z6:6:respawn:/sbin/sulogin
# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
# SERIAL CONSOLES
#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now
# Used by /etc/init.d/xdm to control DM startup.
# Read the comments in /etc/init.d/xdm for more
# info. Do NOT remove, as this will start nothing
# extra at boot if /etc/init.d/xdm is not added
# to the "default" runlevel.
x:a:once:/etc/X11/startDM.sh
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Sun Jan 20, 2008 9:58 pm Post subject: |
|
|
legit,
If you have an initrd, its the init script in the initrd thats used, not the one from your hard drive.
Can we see the content of your /boot/grub/gub.conf please.
Get back into your system like this so you can post /boot/grub/gub.conf (or /mnt/gentoo/boot/grub/gub.conf from outside the chroot) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
legit Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/173205023243c05d1560c8f.gif)
Joined: 04 Jan 2006 Posts: 216 Location: Denver, CO
|
Posted: Sun Jan 20, 2008 9:58 pm Post subject: |
|
|
NeddySeagoon wrote: |
You probably used genkernel or the binary kernel from the install CD
|
I used the emerged gentoo-sources, not genkernel. I did try adding the init=/initrc and it didn't work either though. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54831 Location: 56N 3W
|
Posted: Sun Jan 20, 2008 10:03 pm Post subject: |
|
|
legit,
Code: | emerge gentoo-sources | gets the kernel source tree into /usr/src for you to configure, build and install.
It does not do those steps for you.
genkernel is a tool to help with the configure, build and install steps. If you did not use it, you must of done your own kernel.
You certainly have a kernel, as grub loads it successfully. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
legit Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/173205023243c05d1560c8f.gif)
Joined: 04 Jan 2006 Posts: 216 Location: Denver, CO
|
Posted: Sun Jan 20, 2008 10:08 pm Post subject: |
|
|
NeddySeagoon wrote: | If you did not use it, you must of done your own kernel.
You certainly have a kernel, as grub loads it successfully. |
Yes, this is what i did. I've done it plenty before, first time I've had this problem though.
here is my grub.conf:
Code: |
default 0
timeout 30
title=Gentoo Linux
root (hd0,0)
kernel /boot/kernel-2.6.23-gentoo-r3 root=/dev/sda1
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
legit Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/173205023243c05d1560c8f.gif)
Joined: 04 Jan 2006 Posts: 216 Location: Denver, CO
|
Posted: Sun Jan 20, 2008 11:41 pm Post subject: |
|
|
hmmm.... re-emerged grub. everything works fine now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|