Kernel Panic - Arch Linux

Associate
Joined
6 Nov 2006
Posts
607
Location
Penal Colony 47
Kernel Panic - Arch Linux [SOLVED] Nothign to see here

Well when loading Arch Linux (0.8 Voodoo Kernel 2.6.19 x86_64) it displays
Code:
sdb: rw=0, want=144584991, limit=72301727
attempt to acess beyond end of device
About a few hundred times then
Code:
/init: 1: cannot open /dev/root no such device
Kinit unable to mount root fs on dev(8,21)
init not found
Kernel Panic - not syncing
attempt to kill init
Ive tried commenting out all unnecessary hdd's in /etc/fstab which still ends in a kernel panic. I can mount all the fs under Windows (ext3 IFS) or a Live CD. In which I am assume is some sort of hard drive issue.

Thanks.
 
Last edited:
Hmm, it looks to me that it has some how screwed up your drive geometry settings and is trying to read an invalid sector. Is this a new kernel you have just tried to install? Try boot into a livecd then fsck that device. Its your root filesystem that is causing the panic looking at that error.
 
Una said:
Hmm, it looks to me that it has some how screwed up your drive geometry settings and is trying to read an invalid sector. Is this a new kernel you have just tried to install? Try boot into a livecd then fsck that device. Its your root filesystem that is causing the panic looking at that error.

I've been running that specific kernel for a while, so I doubt it's that. Ill try fsck, thanks. Hopefully that will solve the problem.

[EDIT]
Well I'm on with a Ubuntu Live CD. fsck came up with nothign special, BUT I did fdisk -l and it had:

Code:
Partition 3 does not end on cylinder boundary.

Partition 3 being an extended partition containing the root partition and the home partiton aswell as another.

I should also clarify something:

/dev/sda - Linux HDD (in 3rd SATA)
/dev/sdb,c - Windows HDDs (RAID-0 36GB Raptors, nvraid) (in 1st and 4th SATA)
/dev/sdd - Linux Swap, Files(NTFS), and Programmes (Windows) (in 2nd SATA)
/dev/hda - DVDRW (IDE Primary Master)

Now for some reason when I first installed Arch Linux it had different letters for the hdd's. So what I'm thinking is that its looking for the root partition in a different hdd which would explain why its showing geometry inconsistencies. I have updated /etc/fstab for the changes but, sdb keeps popping up just before Kernel Panic.
 
Last edited:
Code:
# (0) Arch Linux
title  Arch Linux
root   (hd0,1)
kernel /vmlinuz26 root=/dev/sdb5 rw vga=795
#To change to old depracted initrd created by mkinitrd use initrd26.img image
#initrd /initrd26.img
initrd /kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,1)
kernel /vmlinuz26 root=/dev/sdb5 ro
#To change to old depracted initrd created by mkinitrd use initrd26-full.img image
#initrd /initrd26-full.img
initrd /kernel26-fallback.img

Looks fine to me.

Have you changed your hard disks about? I.e changed which ports they are connected too?

Well I did only use to have two hdds. Problem was that when I upgraded I couldn't have it in the order I wanted it. As this didn't work any more;

Code:
title Windows XP Pro
root (hd2,0)
#savedefault
makeactive
map (hd0)(hd2)
map (hd2)(hd0)
chainloader +1

So I had to change the drive order to accommodate Windows.

/dev/sda - Linux HDD (was in 1st SATA)
/dev/sdb - Windows HDDs (3nd SATA)
/dev/sdc - Linux Swap, Files (in 2nd SATA)

Doesn't really explain why it wants sdb tho. Probably should have mentioned this earlier.
 
Uhm,

kernel /vmlinuz26 root=/dev/sdb5 rw vga=795

You sure that lines right? I was under the impression it should be /dev/sda* from what you have pasted.

Kinit unable to mount root fs on dev(8,21)

Thats a partition on your raid array that its trying to mount as root, shouldn't sda1 or whatever be root? Though I have no clue about raid haha.
 
Last edited:
:( :o

HAHAHAHa

That was really stupid... I can't believe I didn't pick that up.
Thanks for pointing it out. :)

man that was dumb
 
Back
Top Bottom