Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253628 - Unable to boot with 2.6.28-gentoo kernel - possible failure to find IDE drive
Summary: Unable to boot with 2.6.28-gentoo kernel - possible failure to find IDE drive
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-03 23:06 UTC by Kevin
Modified: 2009-08-10 02:50 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
2.6.28 .config file (.config,60.51 KB, text/plain)
2009-01-03 23:09 UTC, Kevin
Details
lspci ouput (lspci.txt,29.58 KB, text/plain)
2009-01-03 23:09 UTC, Kevin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin 2009-01-03 23:06:39 UTC
Unable to boot with 2.6.28-gentoo kernel - possible failure to find IDE drive


I'm running gentoo system with 2.6.27-r7 which runs fine with no problems.
Apparently I need to have all the IDE related options in the kernel config. 
That includes the 'IDE generic/default driver' option !

When I use the same configuration file for 2.6.28 it doesn't  work foer some
reason. The options related to IDE have changed from 2.6.27. Turning on all the
options related to IDE doesn't seem to make it work. I've also tried to make
initrd image to load all the IDE modules and have tried building a monolithic
kernel with all the IDE options, to no avail.

System simply resists to boot !!

This is the rror I normally get:

"VFS: Cannot open roo device "hda5" or unknown block(0,0)
Please append a correct "root=" boot option; Here are the available partitions:
   |
   |
   <partition list of a SCSI drive, no mentioning of IDE drive here ! >
   |
   |
Kernel Panic: Not syncing: VFS: Unable to mount root fs or unknown block(0,0)"

At other times when I vary the options or edit the init script, I get errors
like "unable to switchroot: 22" or something similar. 

The root cause seems to be the IDE drive not being found by any of the drivers !

The system configuration is as follows:

Motherboard: EVGA NForce 790i Ultra SLI 
CPU: Intel Core2 Quad Q9550
RAM: Patriot Viper Series DDR3 Dual Channel 1800MHz 2x2GB
Hard Disk: Matrox 300GB IDE drive
IDE Controller: MCP55 IDE Controller

I've attached my .config file for 2.6.28 and the output of lspci -vv. Please let
me know if further info is needed.

Thanks.
Comment 1 Kevin 2009-01-03 23:09:00 UTC
Created attachment 177285 [details]
2.6.28 .config file

.config file for kernel 2.6.28-gentoo
Comment 2 Kevin 2009-01-03 23:09:57 UTC
Created attachment 177286 [details]
lspci ouput

Output of lspci -vv
Comment 3 Rafał Mużyło 2009-01-03 23:21:12 UTC
Following a hunch: 
you've said: <partition list of a SCSI drive, no mentioning of IDE drive here ! >

is that, by any chance, your SATA drive ?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-04 04:13:13 UTC
It's not a blocker.
Comment 5 archibald haddock 2009-01-04 12:31:18 UTC
I had to same problems and solved it by first enabling all block device related stuff(from the real old driver to the new sata/pata things and all extra device drivers), make the kernel, going back to the pre 2.6.28 config with menuconfig (not copying the old .config file again).
Comment 6 Kevin 2009-01-05 17:06:01 UTC
>is that, by any chance, your SATA drive ?
Sorry, yes it is the SATA disk. Don't know why I said SCSI !!

I do have CONFIG_BLK_DEV=y in the config file. I've tried copying the config from 2.6.27 and also tried creating it froms cratch thru' menuconfig, makes no difference.

I said it is a blocker as, I just can't boot into system as the OS resides on IDE drive. Right now, I'm forced to use 2.6.27-gentoo-r7 kernel.
Comment 7 AleX Kiausch 2009-01-05 18:58:36 UTC
(In reply to comment #6)
> >is that, by any chance, your SATA drive ?
> Sorry, yes it is the SATA disk. Don't know why I said SCSI !!
> 
> I do have CONFIG_BLK_DEV=y in the config file. I've tried copying the config
> from 2.6.27 and also tried creating it froms cratch thru' menuconfig, makes no
> difference.
> 
> I said it is a blocker as, I just can't boot into system as the OS resides on
> IDE drive. Right now, I'm forced to use 2.6.27-gentoo-r7 kernel.
> 

Hello, I have the same problem on Geode LX box booting from USB HD. Funny is: when I use initrd and enter the root device file (in my case /dev/sda3) the kernel continues the boot process and works!
Comment 8 Kevin 2009-01-08 16:38:03 UTC
I recompiled the kernel with all the BLK_IDE options and all the IDE options enabled and still no luck.

Apparently the symbols in 2.6.28 related to IDE have changed from 2.6.27. I'm thinking there's something else missing from the code. Seems like there's something wrong with the code that initializes the hard disk or so.

I don't know what to do now. The only way out is either stick to 2.6.27 for now and hope for the problem to be fixed in the future releases or install the OS onto the SATA drive.

Any feedback is highly appreciated.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-08 16:48:50 UTC
(In reply to comment #8)
> I recompiled the kernel with all the BLK_IDE options and all the IDE options
> enabled and still no luck.
> 
> Apparently the symbols in 2.6.28 related to IDE have changed from 2.6.27. I'm
> thinking there's something else missing from the code. Seems like there's
> something wrong with the code that initializes the hard disk or so.
> 
> I don't know what to do now. The only way out is either stick to 2.6.27 for now
> and hope for the problem to be fixed in the future releases or install the OS
> onto the SATA drive.

Which SATA controller is the drive connected to - the Nvidia or the JMicron?

> Any feedback is highly appreciated.

This isn't a support forum...
Comment 10 Kevin 2009-01-09 18:01:46 UTC
> Which SATA controller is the drive connected to - the Nvidia or the JMicron?
nvidia

>> Any feedback is highly appreciated.
>This isn't a support forum...

I didn't understand that ! I was just expecting an answer ! :-)

I would like to be able to boot 2.6.28 from IDE.

Thanks.
Comment 11 Marcel Partap 2009-01-09 19:11:52 UTC
There was a problem (race condition) introduced when the patches for asynchronous device initializing during boot up were committed two days ago, i think this has been fixed with http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=33b04b9308959af7febc1c111c766fa3fd8b1934 .
Comment 12 Kevin 2009-01-20 21:26:51 UTC
I have tried using 2.6.29 and the result is the same. What am I doing wrong ? Is this problem exist only on my machine with my configuration or what is it ?
Comment 13 Ricardo Iramar dos Santos 2009-05-09 00:07:01 UTC
(In reply to comment #12)
> I have tried using 2.6.29 and the result is the same. What am I doing wrong ?
> Is this problem exist only on my machine with my configuration or what is it ?
> 

I got the same problem. I've just update the sys-kernel/gentoo-sources from 2.6.27-r10 to 2.6.28-r5 and recompile the kernel using "make oldconfig" using all default options.

VFS: cannot open root device "<NULL>“ or unknown-block(3.1)
Please append a correct "root=" boot option: here are the available
1600 119132 hdc driver: ide-cdrom
Kernel panic — not syncing: VFS: Unable to mount root fs on unknown
Comment 14 Gerhard Visser 2009-05-12 20:25:16 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > I have tried using 2.6.29 and the result is the same. What am I doing wrong ?
> > Is this problem exist only on my machine with my configuration or what is it ?
> > 
> I got the same problem. I've just update the sys-kernel/gentoo-sources from
> 2.6.27-r10 to 2.6.28-r5 and recompile the kernel using "make oldconfig" using
> all default options.
> VFS: cannot open root device "<NULL>“ or unknown-block(3.1)
> Please append a correct "root=" boot option: here are the available
> 1600 119132 hdc driver: ide-cdrom
> Kernel panic — not syncing: VFS: Unable to mount root fs on unknown

Same error here. I upgraded from 2.6.27-gentoo-r8 to 2.6.27-gentoo-r8 
I'm running a old Sony Vaio PCG-K115S
"VFS: Cannot open root device "hda3" or unknown-block(2,0) "
Comment 15 Kevin 2009-05-14 19:13:09 UTC
I recently upgraded to 2.6.30 (git sources) and voila ! I can boot without any problems at all. Just to make sure, I ran make oldconfig using a .config from 2.6.28 sources and it works without a hick.

I presume that the problem is fixed in the 2.6.30 tree.

Thanks,

Kevin
Comment 16 Luke-Jr 2009-07-13 16:02:22 UTC
Just wanted to throw my name into the "affected" basket...
Comment 17 Luke-Jr 2009-07-13 16:06:44 UTC
Oh, and it's 2.6.29 in my case.
Comment 18 Joseph 2009-08-10 02:50:27 UTC
I don't think this problem has been fixed.
I just upgraded from kernel-2.6.27-gentoo-r7 to
kernel-2.6.30-gentoo-r4 
and I'm getting similar problem:

Cannot open root device "hda3" or unknown-block(2,0)
please append a correct "root=" boot option; here are the available partition:
kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
uid: 1, comm: swapper Not tainted 2.6.30-gentoo-r4 #3

Here is link to forum post with more info:
http://forums.gentoo.org/viewtopic-p-5926338.html#5926338