LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   kernel panic (https://www.linuxquestions.org/questions/debian-26/kernel-panic-466260/)

czezz 07-21-2006 11:08 AM

kernel panic
 
I have an old HP NetServer E60 with SCSI: Adaptec aic7895 ultra scasi adapter and DEBIAN on board.

I was trying to move disk (/dev/sda) from that old HP to much more newer machine HP Proliabt ML 150 with SCSI Adaptec AIC 79xx PCI-X SCSI HBA DRIVER Rev.1.3.10.

...but when I connected it to the newer machine during booting I saw:
Code:

VFS: Cannot open root device "802" or 08:02
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 08:02

What cause that problem and what does it mean ?
Is that incompatibile SCSI controller or lack of driver/module inside kernel ?


PS.
here is /etc/fstab of it:
Code:

/dev/sda2      /              reiserfs        defaults        0      0
/dev/sda1      none            swap    sw                      0      0
proc            /proc          proc    defaults                0      0
/dev/fd0        /floppy        auto    user,noauto            0      0
/dev/cdrom      /cdrom          iso9660 ro,user,noauto          0      0


that may be useful:
Code:

# cat /etc/apt/sources.list
deb http://ftp.pl.debian.org/debian/ stable main
deb-src http://ftp.pl.debian.org/debian/ stable main
deb http://security.debian.org/ stable/updates main

# uname -a
Linux myserver 2.4.24 #1 SMP Sat Jan 31 11:00:37 CET 2004 i686 unknown


jonaskoelker 07-21-2006 12:43 PM

As the error message says, append the proper "root=" argument when booting the kernel.

That means:
  • Go edit your /etc/lilo.conf or your /boot/grub/menu.lst (depending on which you use).
  • change root=/dev/hda1 to root=/dev/sda2 (most likely).
And you're done.

If you use lilo, it may be nontrivial to boot with an alternative root= parameter, so you may have to revert to your old configuration in order to boot.

If my procedure doesn't work, describe why, and post the relevant config file.

czezz 07-21-2006 01:47 PM

jonaskoelker,
please take a look at my 1st post where /etc/fstab is listed:

Code:

/dev/sda2      /              reiserfs        defaults        0
and here is what stands in /etc/lilo.conf
Code:

# more /etc/lilo.conf
lba32
boot=/dev/sda
root=/dev/sda2
install=/boot/boot-menu.b
map=/boot/map
delay=20
default=Linux
image=/vmlinuz
        label=Linux
        read-only
#      restricted
#      alias=1

image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
#      restricted
#      alias=2

Basicly this drive boots with no problem at old server.
When I put it to a new one ( NO changing configuration), then I see errors as I mention.

This is SCSI drive so no reason for using /dev/hda1 as u sugested.
It is alredy set as /dev/sda

jonaskoelker 07-22-2006 08:18 AM

Your lilo.conf looks fine. That leaves me out of ideas. Sorry.

Dutch Master 07-22-2006 09:55 AM

Lilo doesn't look that fine... The boot option refers to the disk, not a partition :p But I'm using Grub, no real experience with Lilo

czezz 07-23-2006 06:18 AM

Ok I figured out that issue.
The problem was with kernel that hasn't support other AIC SCSI controler. I have recompiled kernel adding Adaptec AIC79xx U320 support. And that's all.


All times are GMT -5. The time now is 01:24 PM.