You are not logged in.

#1 2007-07-03 12:34:01

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

first boot fails with kernel panic

I tried to install arch, but after every install, at the first boot I get (last lines I see on the screen):

::Initramfs Completed - control passing to kinit
IP-config: no devices to configure
Waiting 0 s before mounting root device...
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
kinit: Mounted root (ext3 filesystem) readonly.
sh: root=/dev/sda2: No such file or directory
Kernel panic - ot syncing: Attempted to kill init

Initially I thought it has something to do with dm and I installed by mistake dm so I tried root=/dev/mapper/sda2
or root=/dev/discs/sda2. When I gave this, I get a minimal console and an error message saying that /dev/whatever/sda2 does not exist. When I go throughout the directories I found that /dev/sda2 (my root partition is there).

Any ideas on how to solve this?
Or how to install an old kernel ?

My computer is a Toshiba laptop with Core duo, and all the Intel chipsets from the Centrino platform.

Offline

#2 2007-07-03 13:01:18

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: first boot fails with kernel panic

What does your partition-layout look like?
Are you using dm for raid or lvm?
Did you put your root-partition in the raid or on a logical volume as well?
What does your kernel command-line look like?
Are you using all the right hooks in /etc/mkinitcpio.conf and was your initramfs properly build?

Also, please post the output of these command while in the minimal shell:

$ echo /dev/sda*
$ echo /dev/mapper/*

Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#3 2007-07-03 13:15:43

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

Noup, I am not using lvm or evms or raid or anything related.

My partitions are:

/dev/sda1 - windows
/dev/sda2 - / (ext3)
/dev/sda3 - swap
/dev/sda4 - data_partition (reiserfs)

All 4 partitions are primary partitions.

The answer is:

$echo /dev/sda*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4

/dev/mapper does not exist

kernel command line (I assume you refer to the line in /boot/grub/menu.lst):

root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro vga=773
initrd /boot/kernel26.img

The initramfs was build properly
The problem is I do not know which might be the right hooks in /etc/mkinitcpio.conf as I did not find any specific howto guide regarding my laptop mode. When I configured /etc/mkinitcpio.conf I left the installer decide for me.
As I remember the file contains ata_piix  and an other module.

Offline

#4 2007-07-03 13:55:26

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,545

Re: first boot fails with kernel panic

In /etc/mkinitcpio.conf, do you have "udev" in HOOKS? (What does HOOKS look like in general?)

Offline

#5 2007-07-03 18:45:07

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

the non-void entries in /etc/mkinitcpio.conf

MODULES="ata_generic ata_piix"
HOOKS="base udev autodetect scsi sata usbinput keymap filesystems"

Offline

#6 2007-07-03 23:15:21

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: first boot fails with kernel panic

So, you mentioned that you that dm might be an issue, but you're not using it at all, am i right?
Is it an sata or an ide harddisk that you're using?

Things to try:
- Make the MODULES-array empty in /etc/mkinitcpio.conf and rebuild your initramfs-image
- If you're using an ide disk, add "pata" to the hooks-array (if you're not using scsi or sata-disks, you can remove those two hooks) and rebuild your initramfs-image.

Although i don't think that's where the problem lies, seeing this:

tiberiur wrote:

EXT3-fs: mounted filesystem with ordered data mode.
kinit: Mounted root (ext3 filesystem) readonly.

and the fact that the device-files get created.


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#7 2007-07-04 04:13:40

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

The hardware is an laptop with only one SATA hard disk.

From what I see, at the boot  the  /dev nodes are created, yet when it is to mount the root partition it does not find it, although /dev/sda2 exists in /dev.

Hope someone has  an ideea about this as I reaaly wanted to have arch on my notebook.

Offline

#8 2007-07-04 07:35:38

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: first boot fails with kernel panic

Are you sure you need ata_piix as the module for your sata-controler?
Have you tried rebuilding the initramfs with an empty MODULES-array? If you leave ata-piix in the modules-array it gets loaded forcibly (is that a word?)
If you leave the modules-array blank, the autodetect-hook should include the correct drivers in the initramfs and the udev-hook should be able to load the correct driver while booting...


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#9 2007-07-04 08:45:59

Kenetixx
Member
From: /unvrs/mlkywy/earth/aust/home
Registered: 2006-09-09
Posts: 258
Website

Re: first boot fails with kernel panic

Dunno if it will help but i had the same thing after a fresh install the other night

root (hd0,1) * i had to chaneg this to hd0,0 to get it to boot
kernel /boot/vmlinuz26 root=/dev/sda2 ro vga=773
initrd /boot/kernel26.img

http://binaryritual.net

There is no spoon.......

Offline

#10 2007-07-04 09:01:05

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: first boot fails with kernel panic

Kenetixx wrote:

Dunno if it will help but i had the same thing after a fresh install the other night

root (hd0,1) * i had to chaneg this to hd0,0 to get it to boot
kernel /boot/vmlinuz26 root=/dev/sda2 ro vga=773
initrd /boot/kernel26.img

Nah... he's got windows on his first partition..., besides, the kernel loads...


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#11 2007-07-04 13:17:57

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

just rebuild the initramfs with

MODULES=""
HOOKS="base udev autodetect scsi sata usbinput keymap filesystems"

same result as earlier.
even the same output.

Offline

#12 2007-07-04 13:46:34

Login_Here
Member
Registered: 2007-06-27
Posts: 24

Re: first boot fails with kernel panic

I've managed to reproduce your error by creating an initramfs without the PATA module I need (I'm booting from an IDE hard drive, and I'm not using autodetect), and by specifying root=/dev/discs/sda3 to get to a CLI I've managed to see that all the nodes are created (even without the required PATA module), so it seems as if the kernel you're using isn't compiled with support for the SATA-controller in your notebook, specially since it doesn't work even when you're using autodetect.

Last edited by Login_Here (2007-07-04 13:48:33)

Offline

#13 2007-07-04 13:51:47

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: first boot fails with kernel panic

edit /etc/mkinitcpio to make HOOKS look like this

HOOKS="base udev autodetect pata usbinput keymap filesystems"

that's pata, not sata


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#14 2007-07-04 13:55:41

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

my harddisk is SATA, and it is the only one.
I believe that I had used that in one of the early attempts.
Can you explain why would I wanna do that ? (even post a link )
I've read the http://wiki.archlinux.org/index.php/Mkinitcpio, and what I've chosen seems correct.

Thank you for your advices

Last edited by tiberiur (2007-07-04 13:56:00)

Offline

#15 2007-07-05 00:57:26

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 692

Re: first boot fails with kernel panic

please post out put of

ls /dev/disk/by-id

Offline

#16 2007-07-05 09:16:15

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: first boot fails with kernel panic

tiberiur wrote:

my harddisk is SATA, and it is the only one.

Oops, my bad... Missed your post where you said it was an sata disk roll

Could you please boot from the livecd and post the ouput of "lsmod" and "lspci"?

btw which kernel are you using? The default arch-kernel?


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#17 2007-07-05 11:04:49

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

lsmod:

Module                  Size  Used by
ntfs                  219072  0 
reiserfs              233216  0 
ext3                  118536  0 
jbd                    54952  1 ext3
mbcache                 6916  1 ext3
isofs                  31040  0 
zlib_inflate           14976  1 isofs
dm_crypt               11528  0 
dm_mod                 49356  1 dm_crypt
raid10                 22400  0 
raid456               122128  0 
xor                    15752  1 raid456
raid1                  21376  0 
raid0                   7808  0 
multipath               7808  0 
linear                  5760  0 
md_mod                 69780  6 raid10,raid456,raid1,raid0,multipath,linear
sd_mod                 16640  0 
usbhid                 36256  0 
hid                    24448  1 usbhid
ff_memless              5256  1 usbhid
sr_mod                 14372  0 
cdrom                  34080  1 sr_mod
eth1394                16644  0 
pcmcia                 31404  0 
ohci1394               31664  0 
ieee1394               84184  2 eth1394,ohci1394
uhci_hcd               22032  0 
ehci_hcd               31116  0 
usbcore               111752  4 usbhid,uhci_hcd,ehci_hcd
yenta_socket           23180  1 
rsrc_nonstatic         11136  1 yenta_socket
pcmcia_core            32920  3 pcmcia,yenta_socket,rsrc_nonstatic
ppp_generic            23572  0 
slhc                    6272  1 ppp_generic
e1000                 116800  0 
ata_piix               11780  0 
ata_generic             5636  0 
libata                102164  2 ata_piix,ata_generic
snd_hda_intel         254104  0 
snd_pcm_oss            38816  0 
snd_pcm                68484  2 snd_hda_intel,snd_pcm_oss
snd_timer              19076  1 snd_pcm
snd_page_alloc          7816  2 snd_hda_intel,snd_pcm
snd_mixer_oss          14336  1 snd_pcm_oss
snd                    44388  5 snd_hda_intel,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               6496  1 snd
rtc_sysfs               3840  0 
rtc_proc                3844  0 
rtc_dev                 6792  0 
rtc_cmos                7188  0 
rtc_core                7684  4 rtc_sysfs,rtc_proc,rtc_dev,rtc_cmos
rtc_lib                 3456  2 rtc_sysfs,rtc_core
i2c_algo_bit            7304  0 
i2c_core               17664  1 i2c_algo_bit
agpgart                27608  0 
thermal                11656  0 
processor              24788  1 thermal
fan                     3972  0 
button                  6288  0 
battery                 8580  0 
ac                      4100  0

lspci:

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02)
01:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
02:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
03:0b.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
03:0b.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
03:0b.3 Generic system peripheral [0805]: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller

Yes, I am using the default kernel, as in the base install cd when I am to install a kernel there is one option.
the default arch-kernel

Offline

#18 2007-07-25 21:12:04

OssiR
Member
From: Finland
Registered: 2006-12-28
Posts: 39
Website

Re: first boot fails with kernel panic

I have same problem.

Whenever i reboot or start my computer first time i get exact same error message,
but if i reboot computer shortly after the error message everything works fine. Computer boots up normally.

It's just pretty annoying when u need to do double boot up neutral I hope to get somekind of solution for this.

I'm running basic Arch64 installation on SATA drive.

Last edited by OssiR (2007-07-26 00:15:48)

Offline

#19 2007-07-25 22:12:17

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

[offtopic]
maybe, just maybe someday, someone in kernel developement will address this issue.
It is very spooky what they are doing there; with 2.6.x works, and if you update (or are forced to update, or whatever) to 2.6.[x+1] the new kernel won't boot, or will break something, or something will go wrong...

During the last fall when I bought my laptop, I tried to install gentoo; the install cd didn't even boot;
The thing that I cannot possibly understand is how is it possible with the laptop market flooded with Intel Centrino [Duo] this kind of problems appear. How is it possible that one Centrino laptop works flowlessly with Gentoo, Arch, whatever distro u want, and other don't....
[/offtopic]

Offline

#20 2007-07-26 17:14:12

OssiR
Member
From: Finland
Registered: 2006-12-28
Posts: 39
Website

Re: first boot fails with kernel panic

Waiting 0 s before mounting root device...

Hmm... is there option to raise waiting time?

Feels like my hardrive ain't ready or something,
cause it boots up fine after i reset computer once after that "Kernel sync" error message.

Last edited by OssiR (2007-07-26 17:15:49)

Offline

#21 2007-07-27 14:24:10

OssiR
Member
From: Finland
Registered: 2006-12-28
Posts: 39
Website

Re: first boot fails with kernel panic

Ok, i located the problem. As soon i disabled my other hardrive (IDE) by pulling off the power cable, everything starts to work as should be.
I still dont get it why it works randomly...

Hmm... is it normal that IDE hard drive is detected as /dev/sd* or should it be something like /dev/hd* ?

Last edited by OssiR (2007-07-27 14:27:05)

Offline

#22 2007-07-27 15:02:56

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,545

Re: first boot fails with kernel panic

Arch's kernel uses libata, which makes all HDs /dev/sd* and all optical drives /dev/sr* .

Offline

#23 2007-12-20 21:49:26

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

problem solved;

The main problem I suspect was given by the buggy BIOS, which spitted out a lot of APIC errors, even if managed to work on an other distribution.
As I got recently a little bit more time for experimenting on my laptop, I updated my BIOS , then installed the latest arch and everything is ok.
Hope to post soon a description on what it works and what not on my laptop model.

Regards

Offline

#24 2007-12-21 18:11:50

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: first boot fails with kernel panic

Side-tracking, sometimes the options in fstab is also important, especially the pass. If everything is 0, and ur partitions need checking, u wont b able to boot.


I need real, proper pen and paper for this.

Offline

#25 2007-12-21 22:56:44

tiberiur
Member
From: Europa
Registered: 2007-07-03
Posts: 25

Re: first boot fails with kernel panic

check above, it was a first time install, and the error was before fstab checks.
Anyway, there seem to have been a problem from Toshiba, as I found in gentoo-wiki also instructions to first update BIOS and then attempt install.

Offline

Board footer

Powered by FluxBB