Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[**SOLVED**] Kernel panic - not syncing: No init found.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Odd_Bloke
n00b
n00b


Joined: 06 Feb 2006
Posts: 26

PostPosted: Sat Feb 11, 2006 2:07 pm    Post subject: [**SOLVED**] Kernel panic - not syncing: No init found. Reply with quote

This is the same problem as found in https://forums.gentoo.org/viewtopic-p-3103202.html. I'm hoping there might be someone here who could shed light on the problem.

Whenever I attempt to boot a 2.6.15 kernel, I get the following output:
Code:

powernow-k8: Found 1 AMD Athlon 64/Opteron processors (version 1.50.4)
powernow-k8: BIOS error - no PSB or ACPI _PSS objects
ACPI wakeup devices:
PCI0 PS2K UARI AC97 USB1 USB2 USB3 USB4 EHCI PWRB SLPB
ACPI: (supports S0 S1 S3 S4 S5)
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 180k freed
Kernel panic - not syncing: No init found. Try passing init= option to kernel.


I have also noticed that whenever I try passing an init= option to the kernel, through GRUB at start-up, there is an additional line that reads much like this, placed before the 'Kernel panic' line (assuming I have passed 'init=/sbin/init'):
Code:

Failed to execute /sbin/init. Trying defaults...


This is made more puzzling by the fact that I am able to boot a 2.6.12 kernel, on which I am currently running. I have udev set up and both my disk controller and my filesystem drivers are compiled into the kernel. I am currently running on a recompile of 2.6.12 (my third grub.conf entry) to ensure that my kernel configuration wasn't at fault, which it appears not to be.

Cheers,
Dan

/etc/fstab:
Code:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1      /boot      ext2      noauto,noatime   1 2
/dev/sda3      /      ext3      noatime      0 1
/dev/sda2      none      swap      sw      0 0
/dev/cdroms/cdrom0   /mnt/cdrom   auto      noauto,ro   0 0
/dev/fd0      /mnt/floppy   auto      noauto      0 0

/dev/sdb1      /mnt/backup   ext3      noauto,noatime   0 0

# NOTE: The next line is critical for boot!
proc         /proc      proc      defaults   0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0


/boot/grub/grub.conf:
Code:

default 1
timeout 3

title=Gentoo Linux 2.6.15
root (hd0,0)
kernel /boot/linux-2.6.15-gentoo-r4 root=/dev/sda3

title=Gentoo Linux 2.6.12
root (hd0,0)
kernel /boot/linux-2.6.12-gentoo-r6 root=/dev/sda3

title=Gentoo Linux 2.6.12 Recompile
root (hd0,0)
kernel /boot/linux-2.6.12-recompile root=/dev/sda3

title=GenKernel
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.15-gentoo-r1 root=/dev/sda3 initrd=/boot/initramfs-genkernel-x86_64-2.6.15-gentoo-r1


Last edited by Odd_Bloke on Mon Feb 13, 2006 7:31 am; edited 1 time in total
Back to top
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Sat Feb 11, 2006 5:14 pm    Post subject: Reply with quote

Try to launch /bin/bash as init. When it fails (not with 'not found' error, but something like 'failed to execute') check whether you have compiled ELF support into kernel - you may have accidentially turned it off. I Guess, that if your binaries are in ELF format kernel without support for ELF will not be able to launch them.
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
Odd_Bloke
n00b
n00b


Joined: 06 Feb 2006
Posts: 26

PostPosted: Mon Feb 13, 2006 7:30 am    Post subject: Reply with quote

Thanks smerf, that was exactly the problem. I'm feeling fairly stupid right now... :P

Dan
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sat Apr 01, 2006 12:47 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Duplicate Threads.

Crosspost of https://forums.gentoo.org/viewtopic-t-430881-highlight-kernel+panic+syncing+init.html

Please, if you need to have a thread move, ask for it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum