View previous topic :: View next topic |
Author |
Message |
redwood Guru
Joined: 27 Jan 2006 Posts: 306
|
Posted: Thu Jun 04, 2009 3:00 pm Post subject: [SOLVED] Kernel panic -- not syncing: No init found: |
|
|
I have a server running 2.6.26-r4
I'm trying to upgrade to 2.6.29-r5.
So I copied my old config and ran make oldconfig and selected most of the suggested
defaults for any new options. This has always worked for me in the past. But this time
I get a kernel panic when booting:
Quote: |
raid1: raid set md1 active with 2 out of 2 mirrors
md: ... autorun DONE
md3: unknown partition table
ReiserFS: md3: found reiserfs format "3.6" with standard journal
: using ordered data mode
: journal params: device md3, size 8192, journal first block 18, max trans len 1024,
max batch 900, max commit age 30, max trans age 30
: checking transaction log (md3)
: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly on device 9:3
Freeing unused kernel memory: 668k freed
Kernel panic --- not syncing: No init found: Try passing init= option to kernel
|
My grub.conf
Quote: |
default 0
timeout 30
passwd --md5 ***
title=Gentoo Linux-2.6.26-r4
root(hd1,0)
kernel /boot/kernel-2.6.26-r4 root=/dev/md3 vga=792
title=Gentoo Linux-2.6.29-r5 (TESTING)
root(hd1,0)
kernel /boot/kernel-2.6.29-r5 root=/dev/md3 vga=792
title=Memtest86Plus
root (hd1,0)
kernel /boot/memtest86plus/memtest.bin
|
I have 3 SATA drives connected to a 4-port Promise TX4 Controller card.
The Gigabyte mb also has an onboard pair of nvidia SATA ports (with no drives connected)
Excerpt from "lspci -vvk"
Quote: |
02:09.0 Mass storage controller: Promise Technology, Inc. PDC40718 (SATA 300 TX4) (rev 02)
Subsystem: Promise Technology, Inc. PDC40718 (SATA 300 TX4)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 72 (1000ns min, 4500ns max), Cache Line Size: 4 bytes
Interrupt: pin A routed to IRQ 17
Region 0: I/O ports at a000 [size=128]
Region 2: I/O ports at a400 [size=256]
Region 3: Memory at fb024000 (32-bit, non-prefetchable) [size=4K]
Region 4: Memory at fb000000 (32-bit, non-prefetchable) [size=128K]
[virtual] Expansion ROM at c4020000 [disabled] [size=32K]
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: sata_promise
00:0a.0 IDE interface: nVidia Corporation nForce3 Serial ATA Controller (rev a2) (prog-if 85 [Master SecO PriO])
Subsystem: Giga-byte Technology Device b002
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0 (750ns min, 250ns max)
Interrupt: pin A routed to IRQ 22
Region 0: I/O ports at 09f0 [size=8]
Region 1: I/O ports at 0bf0 [size=4]
Region 2: I/O ports at 0970 [size=8]
Region 3: I/O ports at 0b70 [size=4]
Region 4: I/O ports at dc00 [size=16]
Region 5: I/O ports at e000 [size=128]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: sata_nv
00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller (v2.5) (rev a2) (prog-if 8a [Master SecP PriP])
Subsystem: Giga-byte Technology Device 5002
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0 (750ns min, 250ns max)
Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
Region 4: I/O ports at f000 [size=16]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: AMD_IDE
|
I have 3 harddrives: /dev/{sda,sdb,sdc}
with sda & sdb each partitioned identically into 4 partitions
and configured as RAID devices for /boot, swap, root, and lvm:
My /proc/mdstat
Quote: |
Personalities : [raid0] [raid1]
md1 : active raid1 sdb1[1] sda1[0]
96256 blocks [2/2] [UU]
md3 : active raid1 sdb3[1] sda3[0]
4883648 blocks [2/2] [UU]
md4 : active raid1 sdb4[1] sda4[0]
149356224 blocks [2/2] [UU]
unused devices: <none>
|
And parts of my /etc/fstab
Quote: |
/dev/sda2 none swap sw,pri=1 0 0
/dev/sdb2 none swap sw,pri=1 0 0
/dev/md1 /boot ext2 noauto,noatime 1 2
/dev/md3 / reiserfs defaults,noatime 0 1
# lvm partitions
/dev/main/usr /usr reiserfs defaults,noatime 0 2
/dev/main/portage /usr/portage ext3 defaults,noatime 0 2
/dev/main/var /var reiserfs defaults,noatime 0 2
/dev/main/vartmp /var/tmp ext2 defaults,noatime 0 2
/dev/main/opt /opt reiserfs defaults,noatime 0 2
/dev/main/home /home reiserfs defaults,noatime,user_xattr,acl 0 2
/dev/main/archives /archives reiserfs defaults,noatime,noauto 0 2
/dev/extra/backup /root/.snapshots reiserfs defaults,auto,noatime 0 2
localhost:/root/.snapshots /mnt/backups nfs ro,auto 0 0
/dev/extra/distfiles /usr/portage/distfiles ext2 defaults,noatime 0 2
/dev/extra/music /mnt/mp3 ext3 defaults,users,noatime 0 2
/dev/extra/images /mnt/images ext2 defaults,noauto,users
|
I've built RAID into my kernel:
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=m
CONFIG_MD_RAID456=m
CONFIG_MD_RAID5_RESHAPE=y
CONFIG_MD_MULTIPATH=m
With drivers for sata_nv and sata_promise
CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_NV=y
CONFIG_SATA_PROMISE=y
And some amd stuff:
CONFIG_CPU_SUP_AMD=y
CONFIG_X86_MCE_AMD=y
CONFIG_MICROCODE_AMD=y
CONFIG_PATA_AMD=y
CONFIG_AMD8111_ETH=y
CONFIG_HW_RANDOM_AMD=m
CONFIG_AGP_AMD64=y
CONFIG_KVM_AMD=m
And REISERFS stuff
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
CONFIG_REISERFS_PROC_INFO=y
CONFIG_REISERFS_FS_XATTR=y
CONFIG_REISERFS_FS_POSIX_ACL=y
# CONFIG_REISERFS_FS_SECURITY is not set
I guess I could run genkernel and let it compile every module
or run "make defconfig" then "make menuconfig" to add my options
But I was hoping somebody may have a clue as to what could be causing
the "init not found" panic. I've been running gentoo for 4 years and have
always been able to upgrade kernels by just copying my working .config
and running make oldconfig.
Thanks for any suggestions.
Last edited by redwood on Fri Aug 28, 2009 2:15 am; edited 1 time in total |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9882 Location: almost Mile High in the USA
|
Posted: Thu Jun 04, 2009 10:12 pm Post subject: |
|
|
It looks like most of your MD RAID arrays started up. And it looks like it mounted /dev/md3. However are you sure the /dev/md3 on the new kernel is the same as before? Tried some other /dev/mdX devices to see if your root partition changed names somehow?
Just a guess... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Jupiler n00b
Joined: 29 Jul 2003 Posts: 16
|
Posted: Wed Jun 17, 2009 9:13 pm Post subject: |
|
|
Hmm i must say i have exact the same problem. also when upgrading from 26-r4 to 29-r5
and also a promise sata controller but no raid or lvm
Quote: | 00:0b.0 Mass storage controller: Promise Technology, Inc. PDC20318 (SATA150 TX4) (rev 02)
Subsystem: Promise Technology, Inc. PDC20318 (SATA150 TX4)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 96 (1000ns min, 4500ns max), Cache Line Size: 576 bytes
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at d200 [size=64]
Region 1: I/O ports at d000 [size=16]
Region 2: I/O ports at ce00 [size=128]
Region 3: Memory at efffc000 (32-bit, non-prefetchable) [size=4K]
Region 4: Memory at effc0000 (32-bit, non-prefetchable) [size=128K]
Expansion ROM at effb0000 [disabled] [size=16K]
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: sata_promise
|
the kernel does find the disk but panic's anyway with
Kernel panic --- not syncing: No init found: Try passing init= option to kernel
my grub.conf
Quote: |
title Gentoo Linux Router
root (hd0,0)
kernel /boot/bzImage root=/dev/sda5
title Gentoo Linux Router Backup
root (hd0,0)
kernel /boot/bzImage.old root=/dev/sda5
|
it boots just fine if i use my old kernel
I did in first instance just the same copy old config ran it with make oldconfig going mostly with the defaults. since that didn't work out i tried to just use the old config but that gives me exactly the same. |
|
Back to top |
|
|
redwood Guru
Joined: 27 Jan 2006 Posts: 306
|
Posted: Fri Aug 28, 2009 2:55 am Post subject: Update |
|
|
I finally got around to fixing this.
I had a half dozen gentoo computer all stuck at around gentoo-2.6.26-r4 which wouldn't upgrade to newest kernel without kernel panic using my standard procedure
Code: |
cp /usr/src/linux-old/.config /usr/src/linux-new/
make oldconfig && make prepare
make -jX && make modules_install
|
Anyhow, I had an old i386 scanner server which needed to be rebooted. But upon rebooting all my raid and lvm devices were gone. Apparently, udev had been upgraded from 141 to 145 and no longer worked with older kernels. So all my /dev nodes were missing (and MAKEDEV was gone too). So I had to boot from a rescue cd, chroot and downgrade udev to get a functioning system.
I decided to upgrade to latest stable kernel 2.6.30-r4 from a clean start
Code: |
rm /usr/src/linux-2.6.30-r4/.config
make defconfig
make menuconfig (and select needed drivers0
make -jX && make modules_install
|
I listed all my needed drivers
Code: |
lspci -vvv | grep Kernel
lsmod
|
I ran into a slight problem with my i810 onboard video card. It hung during probing the monitor. After eliminating EDID as the cause, I traced the problem back to the option DDC, which I disabled.
I also decided to go pure sata instead of old ata ide.
So I modified my fstab to use /dev/disk/by-uuid/X instead of /dev/hdX
so that I could boot either old or new kernel:
Code: |
title linux 2.6.30-r4
root (hd0,0)
kernel /boot/linux-x86-2.6.30-gentoo-r4 root=/dev/sdb1
title linux-2.6.26-r4
root (hd0,0)
kernel /boot/linux-2.6.26-r4 root=/dev/hdb1
|
Also, the defconfig compiled in some NETFILTER options which previously I had as modules.
Then my /etc/rc.firewall (guarddog firewall script) had a fatal error regarding a couple conntrack modules which were missing (now compiled in). So the fix was to simply comment out the offending modprobe lines in rc.firewall.
Finally I got a shiny new 2.6.30-r4 kernel. While all this was still fresh in my mind, I decided to upgrade the other half dozen systems (a mix of newer amd opterons and older pIIIs) Starting out with a fresh defconfig worked like a charm for all these disparate systems. Never figured out why the "make oldconfig" was able to upgrade kernel without kernel panic -- probably too many changes for it to handle. The only (tedious) solution for me was starting from scratch. |
|
Back to top |
|
|
|
|
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
|
|