Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216341 - root block device not found after installing from LiveCD 2008.0 beta1
Summary: root block device not found after installing from LiveCD 2008.0 beta1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
: 216697 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-05 15:02 UTC by Chr. Schaefer
Modified: 2008-07-04 06:40 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chr. Schaefer 2008-04-05 15:02:58 UTC
I install into a VMWare Fusion virtual machine using livecd-i686-installer-2008.0_beta1.iso. I use the GTK+ installer and choose recommended layout (creating /dev/sda1 to /dev/sda3) and no further options (all default).

After restart the system stops the boot process:

>> Activating mdev
>> Determining root device...
!! Block device /dev/sda3 is not a valid root device...
!! Could not find the root block device in .

When I type "shell" after this and look into /dev directory, there is no hd* or sd* node beside hdc which is the CD-ROM.


Reproducible: Always

Steps to Reproduce:

Actual Results:  
Newly installed system doesn't boot.

Expected Results:  
System should have been installed correctly and booted.

When I boot into the LiveCD again the controller is reported by lspci as 

00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)

I can mount the partition that has been created by the installer before when I boot with the LiveCD.

I think in installation to VMWare should be supported by the LiveCD as this is, probably not only for me, the primary platform to try different operating systems.

Please let me know if you need more information.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-04-05 15:59:24 UTC
You need to boot with 'doscsi' to have the initramfs load the modules for the virtual SCSI controller. If you had booted the CD with 'doscsi', the installer would have automatically added it to your kernel commandline. Just edit the kernel commandline in grub to add 'doscsi', and then add it to your grub.conf after you boot.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-04-05 16:02:05 UTC
Should we just add a "hack" to the installer to automatically add 'doscsi' to the kernel commandline if the root device is /dev/sd[a-z][0-9]?
Comment 3 Chr. Schaefer 2008-04-06 15:37:46 UTC
(In reply to comment #2)
> Should we just add a "hack" to the installer to automatically add 'doscsi' to
> the kernel commandline if the root device is /dev/sd[a-z][0-9]?

Hi Andrew, thanks for your reply. The solution is actually in the documentation

http://www.gentoo.org/doc/en/handbook/2008.0/handbook-x86.xml?part=1&chap=2

A newbie like I am is surprised that the installation runs fine but the installed system needs an additional parameter to boot. Therefore if such a "hack" would be possible and doesn't introduce  potential new problems it would be great to have it.

Reduced severity for minor as an easy work-around exists. It "works for me" now.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2008-04-06 16:59:56 UTC
Andrew: While the hack might work, it could also (potentially) cause issues.  One of the main reasons that "doscsi" isn't automatic in genkernel is that some SCSI cards/drivers do nasty things to some systems, even when the card isn't present in the system.

I wish there were an easy way to tell the difference between SATA/SCSI disks.

In fact, the reason why we decided to only do "doscsi" automatically when someone did it on the command line was for exactly this reason.

All that being said, I think that I would just prefer make "doscsi" default in genkernel and make people who have issues use "noscsi" since I feel that the numbers are likely so small that would have a problem that we're really reducing functionality for far too many people.

What do you think?
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2008-04-06 17:03:25 UTC
I'm all for that. The people who this would help probably far outweighs the people this would "hurt".
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2008-04-07 20:41:50 UTC
*** Bug 216697 has been marked as a duplicate of this bug. ***
Comment 7 Fergus Allan 2008-04-07 21:24:18 UTC
The livecd must be able to handle SCSI as it installs OK.  The fact that it is not invoked with doscsi leads me to think that the defaults are different for the livecd and that the live cd has scsi and those with issues have to use noscsi.  

It would be helpful if, on the installed system, only devices that are relevent are loaded, rather than all the hard disk device drivers.  It would knock quite a bit of time off the boot process.

Most hardware manufacturers these days trys to cooperate since it reflects on them when things fail, so on balance I think doscsi is probably better.

I seem to recall that CD writing, even on IDE required SCSI support.  I may be going back a long time.  How is this affected?

Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2008-04-08 15:01:30 UTC
Fergus, we were discussing the initramfs, which has nothing to do with anything you brought up.

I've gone ahead and added SCSI as default for the initramfs in SVN.
Comment 9 Boko85 2008-04-23 13:27:04 UTC
Simple, you only need doscsi option while booting
Comment 10 Andrew Gaffney (RETIRED) gentoo-dev 2008-04-23 13:50:55 UTC
(In reply to comment #9)
> Simple, you only need doscsi option while booting

Wow, thanks for that "insightful" comment. Did you even read the rest of the bug?
Comment 11 Chr. Schaefer 2008-05-12 15:29:09 UTC
seems to be fixed, tested with livedvd-i686-installer-2008.0_beta2.iso
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2008-06-26 17:49:45 UTC
OK.  This is resolved in genkernel 3.4.10, which is now in the tree and stable.
Comment 13 Tom 2008-07-04 06:40:30 UTC
I ran into a similar bug with minimal install Beta_2 on a Core2 server.  It was solved by compiling the SATA drivers into the kernel <*> and not as a module <M>.