Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic "Cannot open root device" (Solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
TeckPriezt
n00b
n00b


Joined: 20 Jan 2009
Posts: 9

PostPosted: Tue Jan 27, 2009 11:05 am    Post subject: Kernel Panic "Cannot open root device" (Solved) Reply with quote

Hope some one can help me as I can't find out where this problem has come from.

This is what is displayed we I reboot after doing a install

VFS: Unable to mount root fs via NFS, trying floppy.
UFS: Cannot open root device "hda3" or unkown-block(2,0)
Please append a correct "root=" boot option: here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(2,0)

Could someone please help


Last edited by TeckPriezt on Sun Feb 01, 2009 6:14 am; edited 1 time in total
Back to top
View user's profile Send private message
LittleBug
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2005
Posts: 148
Location: 45°51'31.28"N, 12°15'11.73"E

PostPosted: Tue Jan 27, 2009 12:48 pm    Post subject: Reply with quote

Can you post the kernel configuration file (.config) ?
Back to top
View user's profile Send private message
jfp
Guru
Guru


Joined: 08 Jul 2007
Posts: 326
Location: Virginia, USA

PostPosted: Tue Jan 27, 2009 1:34 pm    Post subject: Reply with quote

Are you trying to install into a vmware virtual machine? If so, there are several threads in the forums that discuss this problem.
_________________
jfp
Back to top
View user's profile Send private message
EasterParade
l33t
l33t


Joined: 26 Jul 2003
Posts: 938

PostPosted: Tue Jan 27, 2009 2:20 pm    Post subject: Reply with quote

Ie had the same glitch and did not know what was wrong until I saw that I've forgot to compile Ext2 filesystem support into the kernel. That solved it at once since my sda1 is ext2.
May be your problem lies somewhere else - just an idea.
Back to top
View user's profile Send private message
mroconnor
Guru
Guru


Joined: 24 Feb 2006
Posts: 402
Location: USA

PostPosted: Thu Jan 29, 2009 6:19 pm    Post subject: Reply with quote

I am getting this error as well with 2.6.29 has this been solved?
Back to top
View user's profile Send private message
mgrela
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2008
Posts: 123
Location: Polska

PostPosted: Thu Jan 29, 2009 6:34 pm    Post subject: Reply with quote

Please post your kernel .config.
_________________
Maciej Grela
You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55168
Location: 56N 3W

PostPosted: Thu Jan 29, 2009 6:45 pm    Post subject: Reply with quote

TeckPriezt,

Your kernel is missing one (or more) of two things.

The high level Disk Driver (IDE or SCSI)
The low level chipset specific driver.

Its not got as far as trying to read a filesystem so that could be missing too. Please post your lspci output so we can see your hard drive controller hardware.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mroconnor
Guru
Guru


Joined: 24 Feb 2006
Posts: 402
Location: USA

PostPosted: Thu Jan 29, 2009 6:45 pm    Post subject: Reply with quote

I just fixed this after actually looking at my .config instead of saying I know it is right.

Anyway, I have the SCSI disk support compiled as a module not as built-in.....I get idiot points today. :oops:
Back to top
View user's profile Send private message
TeckPriezt
n00b
n00b


Joined: 20 Jan 2009
Posts: 9

PostPosted: Fri Jan 30, 2009 7:05 am    Post subject: Reply with quote

where do I find the kernel .config and what is lspci (Linux Noob here sorry)
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Fri Jan 30, 2009 9:27 am    Post subject: Reply with quote

lspci is part of a package called pciutils (installed by entering emerge pciutils). It's a must to be able to work with your kernel to any degree.

Your kernel .config will be found in your kernel source directory. Try cat /usr/src/linux/.config > /config.txt. That should make your .config visible, and also find out whether or not your symlink was created.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
mgrela
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2008
Posts: 123
Location: Polska

PostPosted: Fri Jan 30, 2009 9:48 am    Post subject: Reply with quote

There is also an interesting option you should consider -> "General setup -> Kernel .config support, Enable access to .config through /proc/config.gz". It allows you to easily extract the .config of a running kernel even if you loose the sources directory.
_________________
Maciej Grela
You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message
TeckPriezt
n00b
n00b


Joined: 20 Jan 2009
Posts: 9

PostPosted: Fri Jan 30, 2009 10:04 am    Post subject: Reply with quote

sorry about this but how do I copy all the info in the config.txt to the fourms as nano doesn't seem to have a select all function so I can copy and paste it
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55168
Location: 56N 3W

PostPosted: Fri Jan 30, 2009 2:46 pm    Post subject: Reply with quote

TeckPriezt,

lspci is a tool to read the PCI Vendor and Device IDs of all your PCI/PCIe/PCIx and AGP devices and look them up in a database.
Its provided on the liveCD and in the package pciutils, which you will need to emerge.

We don't need your kernel .config file yet. Given your lspci output, we can advise how your kernel should be configured.
If you want to post it anyway, use a tool called wgetpaste, which you will need to emerge while you are in your chroot.
Code:
wgetpaste /usr/src/linux/.config   
will put your .config file on the web and return the URL. Post the URL to the forums.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
TeckPriezt
n00b
n00b


Joined: 20 Jan 2009
Posts: 9

PostPosted: Sat Jan 31, 2009 12:17 am    Post subject: Reply with quote

Ok heres the lspci output

0:00.0 Host bridge: Silicon Integrated Systems [SiS] 630 Host (rev 31)
00:00.1 IDE inerface: Silicon Integrated Systems [SiS] 5513 [IDE] 9rev d0)
00:01.0 ISA bridge: Silicon Integrated Systems [SiS] SiS85C503/5513 (LPC Bridge)
00:01.1 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 82)
00:01.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
00:01.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
00:01.4 Multimedia audio controller: Silicon Integrated Systems [SiS] SiS PCI Audio Accelerator (rev 02)
00:01.6 Modem: Silicon Integrated Systems [SiS] AC'97 Modem Controller (rev a0)
00:02.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-toPCI bridge (AGP)
00:03.0 CardBus bridge: 02 Micro, Inc. 02601/6912/711E0 CardBus/SmartCardBus Controller
00:0a.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 04)
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 630/730 PCI/AGP VGA Display Adapter (rev 31)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55168
Location: 56N 3W

PostPosted: Sat Jan 31, 2009 1:17 pm    Post subject: Reply with quote

TeckPriezt,

Here is your disk controller
Code:
00:00.1 IDE inerface: Silicon Integrated Systems [SiS] 5513 [IDE] 9rev d0)
There are two sets of drivers in the kernel for that, we will use the new ones, under SCSI. Navigate make menuconfig and set the options as follows:-
Code:
 Device Drivers  --->
  │ │    < > ATA/ATAPI/MFM/RLL support  --->                                    │ │ 
  │ │        SCSI device support  --->                                          │ │ 
  │ │    <*> Serial ATA (prod) and Parallel ATA (experimental) drivers  --->

In the SCSI device support ---> menu, set the following
Code:
│ │    < > RAID Transport Class                                               │ │ 
  │ │    -*- SCSI device support                                                │ │ 
  │ │    < > SCSI target support                                                │ │ 
  │ │    [*] legacy /proc/scsi/ support                                         │ │ 
  │ │        *** SCSI support type (disk, tape, CD-ROM) ***                     │ │ 
  │ │    <*> SCSI disk support                                                  │ │ 
  │ │    < > SCSI tape support                                                  │ │ 
  │ │    < > SCSI OnStream SC-x0 tape support                                   │ │ 
  │ │    <M> SCSI CDROM support                                                 │ │ 
  │ │    [ ]   Enable vendor-specific extensions (for SCSI CDROM)               │ │ 
  │ │    <M> SCSI generic support                                               │ │ 
  │ │    < > SCSI media changer support                                         │ │ 
  │ │        *** Some SCSI devices (e.g. CD jukebox) support multiple LUNs ***  │ │ 
  │ │    [*] Probe all LUNs on each SCSI device
They are not all needed for your hard drive but some options there are used by USB connected storage and card readers, so its good to have them.
turn off [ ] SCSI low-level drivers ---> as it prevents lots of modules you don't need being made. Exit that menu and go into
Code:
 <*> Serial ATA (prod) and Parallel ATA (experimental) drivers  --->
Here set,
[*] ATA SFF support and (close to the bottom) <*> SiS PATA support. You may not have the ATA SFF support option, thats ok.

Rebuild your kernel the normal way. If you use genkernel, you need to run it with the -menuconfig option, so you can make the settings above.

These settings give all your devices SCSI device names. Your hard drive will be /dev/sda and your CDROM will be /dev/sr0.
udev will fix the symbolic links for your CDROM, so you need do nothing to get it to work. Howerver, all the /dev/hda entries in /etc/fstab and the real_root=/dev/hd in /boot/grub/grub.conf need to be changed to use the new SCSI name.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
TeckPriezt
n00b
n00b


Joined: 20 Jan 2009
Posts: 9

PostPosted: Sun Feb 01, 2009 6:13 am    Post subject: Reply with quote

Thanks you for the help worked like a charm and for safty sake I went through all of the hardware drivers type and turn on all SiS options related to what the lspci output
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum