LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-14-2004, 08:22 PM   #1
dmx9595
Member
 
Registered: Jun 2003
Location: Canada,Ontario
Distribution: Debian and Gentoo
Posts: 135

Rep: Reputation: 15
kernel panic unable to mount root (yes ive read/read other posts)


hey, im on slack 9.1, and the slack 9.1 2.4.22 kernel works fine. However ive attempted to compile my own kernel serveral times, modifying the slack 2.4.22 and a fresh 2.6.1 kernel both I have the same problem:

VFS: Cannont open root device "hde5" or unknown-block (0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)

and on the 2.4.22 i made from slack i get same error but instead of unknown-block(0,0) i get 21:05

i am using a Maxtor DimaondMax Plus 80GB HD, Maxtor Ultra ATA/133 PCI Card
now before you ask :
yes i have enabled the proper fs support (ext2) and no its not a module
and i have enabled ATA/IDE/EIDE and what not proper support for my HD
and ive tried to get help from ppl on irc kernelnewbies and went through a lot but did not find the problem so here I am.
and ive also compared the slack kern that works with my modfiied one that does not and went through and cant find anything that would cause my hd to not work/detected to my knowledge anyways but of course there is something wrong that i am not finding myself
and about initrd, my slack kern does not use initrd cause tehres no initrd in my /boot so i should not have to use that for mine to get this to work

i noticed when i booted the working slack kern it loads my cdrom takes a second then loads my cd-rw takes a second then loads my harddive takes a second
but with my kern
it loads the cdrom and cdrw taking two seconds then instantly starts loading everything else so its preety clear that its not detecting or something my harddive

with the slack kern i get:
hde: MAXTOR 6L080L4, ATA DISK drive
with my kern it seems to skip that second where it should find/load it.

anyone got any ideas cause im out of em?
any help would be greated appericatly, hopefully this isnt too long and ppl will be discouraged from bothering to read it
(this is also my first time customizing my own kernel)

maybe i should post my .config? tell me if i should if anyone thinks it would help or something
i guess i should post my grub menu.lst as well:
default 0
timeout 20
splashimage=(hd0,0)/grub/splash.xpm.gz
title Slack 9.1 (2.4.22) (Slack kern)
root (hd0,0)
kernel /vmlinuz ro root=/dev/hde5 vga=0x318 hdb=ide-scsi

title Slack 9.1 (2.4.22-lynx) (lynx's kern)
root (hd0,0)
kernel /vmlinuz-2.4.22-lynx ro root=/dev/hde5 hdb=ide-scsi

title devfs
root (hd0,0)
kernel /vmlinuz-2.4.22-lynx-dev ro root=/dev/hde5 hdb=ide-scsi

title Slack 9.1 (2.6.1) (lynx's 2.6.1 kern)
root (hd0,0)
kernel /vmlinuz-2.6.1 ro root=/dev/hde5




Last edited by dmx9595; 01-14-2004 at 10:09 PM.
 
Old 01-14-2004, 10:05 PM   #2
iedirtbiker
LQ Newbie
 
Registered: Jan 2004
Location: Lake Elsinore, CA
Distribution: Fedora Core, Redhat 9, Mandrake 9.2
Posts: 20

Rep: Reputation: 0
Im having similar with Mandrake 9.2 for AMD64 and new 2.6.1 kernel

Hope someone might have some hints on how to resolve this issue!

I spent the last few nights determining why a newly compiled 2.6.1 kernel would fail on mounting the ROOT device.

Im running Mandrake 9.2 for AMD64.. Mainboard is MSI K8T Neo (onboard Promise SATA and VIA SATA) harddrive is on the VIA SATA.

The original installation detected the hard drive as a SCSI device (/dev/sda). I compiled the 2.6.1 kernel without problems...

here is a sniplet of the bootup of kernel 2.6.1:
*************************************************************************
.
.
.
Redhat nash version 3.4.13-mdk startup
loading lib_ata.ko module
loading sata_via.ko module
loading sd_mod.ko module
loading ide_disk.ko module
hde: max request size: 128KiB
hde: 40121728 sectors (122942Mb) w/7936KiB Cache, CHS=65535/16/63
hde: hde1 hde2 hde3 hde4 < hde5 hde6 hde7 hde8 hde9 hde10 >
loading jbd.ko module
loading ext3.ko module
Mounting /proc filesystem
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3 flags defaults
well, retrying without the options flag
mount: error 6 mounting ext3
well, retrying read-only without any flag
mount: error 6 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
Re-mounting devfs at correct place if necessary
Freeing unused kernel memory: 424k freed
Kernel panic: No init found. Try passing init= option to kernel
***************************************************************************


this is what dmesg reports from bootup of kernel 2.4.22-27mdk:
************************************************************************
SCSI subsystem driver Revision: 1.00
libata version 0.75 loaded.
sata_promise version 0.83
ata1: SATA max UDMA/133 cmd 0xFFFFFF0000290200 ctl 0xFFFFFF0000290238 bmdma 0x0
irq 10
ata2: SATA max UDMA/133 cmd 0xFFFFFF0000290280 ctl 0xFFFFFF00002902B8 bmdma 0x0
irq 10
ata1: no device found (phy stat 00000000)
ata1: thread exiting
ata2: no device found (phy stat 00000000)
ata2: thread exiting
scsi0 : sata_promise
scsi1 : sata_promise
sata_via version 0.11
ata3: SATA max UDMA/133 cmd 0xD800 ctl 0xD402 bmdma 0xC800 irq 10
ata4: SATA max UDMA/133 cmd 0xD000 ctl 0xCC02 bmdma 0xC808 irq 10
ata3: dev 0 cfg 49:2f00 82:7c6b 83:7b09 84:4003 85:7c69 86:3a01 87:4003 88:407f
ata3: dev 0 ATA, max UDMA/133, 240121728 sectors
ata3: dev 0 configured for UDMA/133
ATA: abnormal status 0x7F on port 0xD007
ata4: thread exiting
scsi2 : sata_via
scsi3 : sata_via
Vendor: ATA Model: Maxtor 6Y120M0 Rev: 0.75
Type: Direct-Access ANSI SCSI revision: 05
Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
SCSI device sda: 240121728 512-byte hdwr sectors (122942 MB)
Partition check:
/dev/scsi/host2/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 p7 p8 p9 p10 >
Journalled Block Device driver loaded
************************************************************************

As one can see, there is a big difference in how the sata_via module
detects the drive

in fstab, all mount points refer to /dev/sda partitions... and in lilo.conf, boot=/dev/sda and root=/dev/sda3... I know these are wrong if the 2.6.1 kernel sees /dev/hde... but just changing these values does not correct the problem...

Any help would be greatly appreciated.

IEdirtbiker
 
Old 01-15-2004, 02:08 PM   #3
dmx9595
Member
 
Registered: Jun 2003
Location: Canada,Ontario
Distribution: Debian and Gentoo
Posts: 135

Original Poster
Rep: Reputation: 15
ok i have finally gotten it to work yay
do no one bother pondering on it anymore
im unsure as to what excatly chagne i made to get it to work as i have made serveral changes then tried a new kernel, but right now im just about to play the elmination game to find just that out
 
Old 01-16-2004, 09:24 PM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: Jacksonville, FL
Distribution: Slackware & Arch
Posts: 825

Rep: Reputation: 31
So you have no idea what you did? Did you edit lilo.conf? Recompile with a different configuration? If you can, follow up on this a little since plenty of people would have tried to help you out in due time.
 
Old 01-17-2004, 05:07 AM   #5
dmx9595
Member
 
Registered: Jun 2003
Location: Canada,Ontario
Distribution: Debian and Gentoo
Posts: 135

Original Poster
Rep: Reputation: 15
hmm well it could have been a number of things
i added a lot more vendor chipset support under ata/ide, although i think i hade the right one before i just added all of them in to see if this was the problem
i didnt know about having to do make mrproper when you compile another kern
couple other things i did too cant really remeber em all..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic! Unable to mount root fs... DarkNebula Linux - General 7 10-24-2004 06:38 PM
2.2 --> 2.65: Kernel panic, unable to mount root. gaea Debian 5 04-28-2004 01:10 PM
Kernel Panic (and yes, I have read the simmilar posts) BrokenUnity Linux - Newbie 6 09-14-2003 08:09 AM
Kernel panic - unable to mount root fs felecha Linux - General 3 06-17-2002 08:57 AM
EXT3-fs: unable to read superblock... Kernel panic: no init found. ebakunin Linux - General 2 06-16-2002 10:37 PM


All times are GMT -5. The time now is 04:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration