LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Kernel panic, Preemptible Kernel (Low-Latency Desktop) (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-panic-preemptible-kernel-low-latency-desktop-634664/)

Smartnow 04-11-2008 09:21 AM

Kernel panic, Preemptible Kernel (Low-Latency Desktop)
 
This is very strange.

If I in the Kernel Konfiguration use (make menuconfig)

# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y

I have Kernel panic

0300 hda-driver: ide-disk
0340 hdb-driver: ide-cdrom
0800 sda-driver: sd
0810 sdb-driver: sd

Kernel panic - not syncing: VFS Unable to mount root fs on unknown-block

I have seen the Message "8000 as root", but mine root is /dev/sda1

Kernel don't find the "/ root"!

But if I use the same Kernel, without those Settings

CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_PREEMPT_BKL=y

I could normal start Gentoo

Thanks for Help


fdisk -l

Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009111b

Device Boot Start End Blocks Id System
/dev/hda1 1 644 5172898+ b W95 FAT32
/dev/hda2 645 686 337365 83 Linux
/dev/hda3 * 687 756 562275 83 Linux
/dev/hda4 757 30401 238123462+ 5 Extended
/dev/hda5 757 788 257008+ 83 Linux
/dev/hda6 789 1440 5237158+ b W95 FAT32
/dev/hda7 1441 30401 232629201 83 Linux

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x99bb99bb

Device Boot Start End Blocks Id System
/dev/sda1 1 388 3116578+ 83 Linux
/dev/sda2 389 776 3116610 83 Linux
/dev/sda3 777 1164 3116610 83 Linux
/dev/sda4 1165 30401 234846202+ 5 Extended
/dev/sda5 1165 1552 3116578+ 83 Linux
/dev/sda6 1553 1940 3116578+ 83 Linux
/dev/sda7 1941 30401 228612951 83 Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d791a

Device Boot Start End Blocks Id System
/dev/sdb1 1 522 4192933+ 82 Linux swap / Solaris
/dev/sdb2 523 5827 42612412+ 83 Linux
/dev/sdb3 5828 6486 5293417+ 83 Linux
/dev/sdb4 6487 60801 436285237+ 5 Extended
/dev/sdb5 6487 60801 436285206 83 Linux


/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sdb2 /usr ext3 defaults,noatime 0 2
/dev/sda7 /zajedno ext3 defaults,noatime 0 2
/dev/sdb5 /zajedno/zajedno-sdb ext3 defaults,noatime 0 2
/dev/hda7 /zajedno/zajedno-hda ext3 defaults,noatime 0 2
/dev/hda3 /zajedno/boot ext3 defaults,noatime 0 2
/dev/sdb1 none swap sw 0 0
none /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0


/etc/boot/grub/grub.conf
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

timeout 30
default 0
splashimage=(hd0,2)/grub/splash.xpm.gz



title=Gentoo 2.6.24.4-0
root (hd0,2)
kernel /Gentoo/bzImage-2.6.24.4-0 root=/dev/sda1


title=Gentoo 2.6.24.4-1
root (hd0,2)
kernel /Gentoo/bzImage-2.6.24.4-1 root=/dev/sda1


title=Gentoo 2.6.24.3-4
root (hd0,2)
kernel /Gentoo/bzImage-2.6.24.3-4 root=/dev/sda1


title=Gentoo 2.6.24.3-3
root (hd0,2)
kernel /Gentoo/bzImage-2.6.24.3-3 root=/dev/sda1

....

title=Gentoo 2.6.17
root (hd0,2)
kernel /Gentoo/kernel-genkernel-x86_64-2.6.17-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda1 doscsi
initrd /Gentoo/initramfs-genkernel-x86_64-2.6.17-gentoo-r7


title=DOS Flash Disk
password --md5 $something
kernel /Gentoo/dos/memdisk
initrd /dos/288


title=Windows XP
rootnoverify (hd0,2)
makeactive
chainloader +1


title=Memtest86Plus
root (hd0,2)
kernel /Gentoo/boot/memtest86plus/memtest.bin
quiet

SqdnGuns 04-12-2008 03:04 AM

Did you compile the FS into the kernel?

Smartnow 04-12-2008 06:37 AM

Yes.

CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
# CONFIG_EXT3_FS_SECURITY is not set


If I boot from SysrescueCD

/dev/hda --> /dev/sdc

Could I use some Kernel Parameter or only /dev/sda1?

Smartnow 04-13-2008 02:46 AM

After long Google, Gentoo-Bugs, GNU-Bugs and Hours I have found.

A wrong ebuild from sys-boot/grub-0.97-r5, Datum 06.4.2008, was the Problem.

Only the Kernel Parameter

pci=nomsi

helps, with displays exotic Symbols after Kernel Command Linie.

After update to a new ebuild from 07.04.2008, I don't need this Parameter more and the Display is clean.

I use now fully SCSI, SATA Protokol.

/dev/hda is now /dev/sdc
/dev/hdb DVD is now /dev/sr0
/dev/sda ditto
/dev/sdb ditto

/etc/fstab changed

Now I can clean boot Gentoo.

Thanks


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