Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic during first boot - disks invisible[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Ahenobarbi
Retired Dev
Retired Dev


Joined: 02 Apr 2009
Posts: 345
Location: Warsaw, PL

PostPosted: Fri Feb 12, 2010 3:56 pm    Post subject: Kernel panic during first boot - disks invisible[SOLVED] Reply with quote

I'm trying to install Gentoo on my old laptop. I used Sysresue CD ( and it worked fine). Grub works fine, however kernel writes some thing like
Code:

[ 0.995099] Root - NFS no NFS se4rver aviable, giving up
[ 0.sth      ] VFS: no NFS trying floppy
[ ...          ] can't open device sda2 ro unknown block (2,0) please append correct "root=" aviable partitions

and then panics. After failing with manually configured kernel I tried reusing SysrescueCD config ( extrcted /proc/config.gz, make oldconfig) but it's the same. I installed Gentoo on that machine earlier ( I think in A.D. 2006) and didn't have such a problems. Do you know what may be causing this/ how to solve it?

Other Linux distros ( Arch, Ubuntu) installed and booted fine ( but there were some other problems with them).


Last edited by Ahenobarbi on Fri Feb 12, 2010 9:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Fri Feb 12, 2010 5:31 pm    Post subject: Reply with quote

What it says is, it needs a block device it contain treat is as it's root device :) .

Simply, you have grub like this:

root(hdx,x)

kernel /boot/linux-kernel
initrd /boot/etcetcetc

You should make it like so:

root(hdx,x)

kernel /boot/linux-kernel root=/dev/sda1
initrd /boot/etcetcetc

The /dev/sda1 is just an example, you should change it to the default disk where your gentoo installation is residing (not the boot partition).
Back to top
View user's profile Send private message
Ahenobarbi
Retired Dev
Retired Dev


Joined: 02 Apr 2009
Posts: 345
Location: Warsaw, PL

PostPosted: Fri Feb 12, 2010 6:35 pm    Post subject: Reply with quote

I already have root=/dev/sda2 in my kernel line. I also tried root=/dev/hda2 and realroot=/dev/sda2 .
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Fri Feb 12, 2010 6:41 pm    Post subject: Reply with quote

Boot the installCD mount / and /boot just like during the installation and post the output of these please:
  • fdisk -l
  • lspci
  • cat /mnt/gentoo/etc/fstab
  • cat /mnt/gentoo/boot/grub/grub.conf
  • ls /mnt/gentoo/boot
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Feb 12, 2010 7:15 pm    Post subject: Reply with quote

first time out you had no disk controller drivers.
second time, after ripping sysresccd, you had drivers however they were modules, so were the file systems. grub can't install modules. you would need to boot an initrd/initramfs with grub that in turn loads kernel with modules.
BTW, the sysresccd configuration is designed to have everything possible in the kernel as modules.

Pappy's kernel seedswill provide you with a solid lightweight starter kernel configuration and links on how to work with it.
posting as Mike asked will facilitate getting more help. lspci -k better than lspci for these purposes; it identifies drivers/modules the running cd system uses as well as the devices.
Back to top
View user's profile Send private message
Ahenobarbi
Retired Dev
Retired Dev


Joined: 02 Apr 2009
Posts: 345
Location: Warsaw, PL

PostPosted: Fri Feb 12, 2010 7:30 pm    Post subject: Reply with quote

Code:
% fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000149fa

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         262     2104483+  83  Linux
/dev/sda2             263        2874    20980890   83  Linux
/dev/sda3            2875        2888      112455   83  Linux
/dev/sda4            2889        9729    54950332+  83  Linux

Code:
 % lspci
00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller
00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 10)
00:14.1 IDE interface: ATI Technologies Inc IXP SB400 IDE Controller
00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge
00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller (rev 01)
00:14.6 Modem: ATI Technologies Inc SB400 AC'97 Modem Controller (rev 01)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE)
02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:04.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
02:04.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
02:04.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04)
02:09.0 Ethernet controller: Linksys, A Division of Cisco Systems [AirConn] INPROCOMM IPN 2220 Wireless LAN Adapter (rev 01)


Code:

 % cat /mnt/gentoo/etc/fstab
/dev/sda3      /boot      ext2      noauto,noatime   1 2
/dev/sda2      /      reiserfs   noatime      0 1
/dev/sda1      none      swap      sw      0 0
/dev/sda4      /home      reiserfs   noatime      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0

Code:
 % ls /mnt/gentoo/boot
boot  gentoo-2.6.31-r6  grub  lost+found

Code:
% cat /mnt/gentoo/boot/grub/grub.conf

default 0
timeout 3

title Gentoo 2.6.31-r6
root (hd0,2)
kernel /gentoo-2.6.31-r6 root=/dev/sda2


I'll try with Pappy's seed.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Feb 12, 2010 8:14 pm    Post subject: Reply with quote

your config for disk controllers should be:

Quote:
Device Drivers --->
< > ATA/ATAPI/MFM/RLL support --->
SCSI device support --->
*** SCSI support type (disk, tape, CD-ROM) ***
<*> SCSI disk support
< > SCSI tape support
< > SCSI OnStream SC-x0 tape support
<*> SCSI CDROM support
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
--- Serial ATA (prod) and Parallel ATA (experimental) drivers
[*] ATA ACPI Support
[ ] SATA Port Multiplier support
<*> AHCI SATA support
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
< > ServerWorks Frodo / Apple K2 SATA support
< > Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
< > Marvell SATA support (HIGHLY EXPERIMENTAL)
< > NVIDIA SATA support
< > Pacific Digital ADMA support
< > Pacific Digital SATA QStor support
< > Promise SATA TX2/TX4 support
< > Promise SATA SX4 support
< > Silicon Image SATA support
< > SiS 964/965/966/180 SATA support
< > ULi Electronics SATA support
< > VIA SATA support
< > VITESSE VSC-7174 / INTEL 31244 SATA support
< > Initio 162x SATA support
<*> ACPI firmware driver for PATA
< > ALi PATA support (Experimental)
< > AMD/NVidia PATA support
< > ARTOP 6210/6260 PATA support
<*> ATI PATA support
< > CMD640 PCI PATA support (Very Experimental)
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 PATA support (Experimental)
< > Cypress CY82C693 PATA support (Very Experimental)
< > EFAR SLC90E66 support
< > Generic ATA support
< > HPT 366/368 PATA support
< > HPT 370/370A/371/372/374/302 PATA support (Experimental)
< > HPT 372N/302N PATA support (Very Experimental)
< > HPT 343/363 PATA support
< > IT8211/2 PATA support
< > IT8213 PATA support (Experimental)
< > JMicron PATA support
< > Compaq Triflex PATA support
< > Marvell PATA support via legacy mode
< > Intel PATA MPIIX support
< > Intel PATA old PIIX support
< > NETCELL Revolution RAID support
< > Ninja32/Delkin Cardbus ATA support (Experimental)
< > Nat Semi NS87415 PATA support (Experimental)
< > OPTI621/6215 PATA support (Very Experimental)
< > OPTI FireStar PATA support (Very Experimental)
< > Older Promise PATA controller support (Experimental)
< > RADISYS 82600 PATA support (Very Experimental)
< > PC Tech RZ1000 PATA support
< > SC1200 PATA support (Very Experimental)
< > SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< > Promise PATA 2027x support
< > CMD / Silicon Image 680 PATA support
< > SiS PATA support (Experimental)
< > VIA PATA support
< > Winbond SL82C105 PATA support
< > Intel SCH PATA support
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Feb 12, 2010 8:24 pm    Post subject: Reply with quote

fstab:
Quote:
/dev/sda1 none swap sw 0 0

fdisk -l:
Quote:
/dev/sda1 1 262 2104483+ 83 Linux

if sd1 is to be swap the System entry should be:
Quote:
/dev/sda1 1 262 2104483+ 82 Linux swap / Solaris

To fix:
boot cd, run:
Code:
mkswap  /dev/sda1
Back to top
View user's profile Send private message
Ahenobarbi
Retired Dev
Retired Dev


Joined: 02 Apr 2009
Posts: 345
Location: Warsaw, PL

PostPosted: Fri Feb 12, 2010 9:58 pm    Post subject: Reply with quote

It helped, thank you DONAHUE. And thanks for pointing wrong swap partition info.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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