Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel panic -> troubles with grub.conf?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hakeem
n00b
n00b


Joined: 29 Nov 2007
Posts: 11

PostPosted: Mon Aug 01, 2011 9:38 am    Post subject: kernel panic -> troubles with grub.conf? Reply with quote

Hi!
I'm installing gentoo (minimal i686) on a old pentium 3 933MHz with 384 Mb DDR ram. HDisk is a 13.4 Gb IDE Samsung Spinpoint, .
I followed literally gentoo handbook, and I used the same partition table as in the example:

/boot on /dev/sda1 ext2 (filesystem 82)
swap on /dev/sda2
/ on /dev/sda3 ext3 (filesystem 82) (<- I used mke2fs -j for /dev/sda3 , so it should be ext 3)

My grub.conf says:
Code:

root (hd0,0)
kernel /boot/kernel-2.6.38-gentoo-r6 root=/dev/sda3

My /etc/fstab is the same as the one of handbook example's:
Code:

/dev/sda1   /boot        ext2    defaults,noatime     1 2
/dev/sda2   none         swap    sw                   0 0
/dev/sda3   /            ext3    noatime              0 1

/dev/cdrom  /mnt/cdrom   auto    noauto,user          0 0

proc        /proc        proc    defaults             0 0
shm         /dev/shm     tmpfs   nodev,nosuid,noexec  0 0

When I boot I get Kernel panic, with the following message:

Code:

VFS: Cannot open root device "sda3"or unknown-block (0,0)

Please append a correct "root=" boot option; here are the available partitions:

Kernel panic-not syncing: VFS: Unable to mount root fs on unknown-block (0,0)

Pid:1, comm: swapper Not tainted kernel-2.6.38-gentoo-r6 #1
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 726
Location: San Diego, CA

PostPosted: Mon Aug 01, 2011 10:00 am    Post subject: Reply with quote

You added the correct file system to your kernel as "built-in" instead of "module", right?
__
sol
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Mon Aug 01, 2011 10:01 am    Post subject: Reply with quote

did you add ext3 and you hdd controller to the kernel. (i.e built in, not as module)
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
hakeem
n00b
n00b


Joined: 29 Nov 2007
Posts: 11

PostPosted: Mon Aug 01, 2011 10:17 am    Post subject: Reply with quote

just checked. Ext3 was added as built-in, but ext2 was not. now rebuilding kernel with ext2 support built-in. hdd controller? you mean ide controller?
will let you know the result in few minutes!
Thanks for the advices :)
Back to top
View user's profile Send private message
hakeem
n00b
n00b


Joined: 29 Nov 2007
Posts: 11

PostPosted: Mon Aug 01, 2011 10:52 am    Post subject: Reply with quote

Same error as before: only

Code:
Pid:1, comm: swapper Not tainted kernel-2.6.38-gentoo-r6 #1

changed to
Code:
Pid:1, comm: swapper Not tainted kernel-2.6.38-gentoo-r6 #2

Any ideas?
thanks.
Regards,
G
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Aug 01, 2011 4:08 pm    Post subject: Reply with quote

hakeem,

Code:
unknown-block (0,0)
means that the kernel cannot talk to your hard drive.
The usual cause is the low level hardware driver missing from your kernel, or made as a module.

Post your lspci output so we can tell you what you need.

Grub does its job an loads your kernel, so its not a grub issue.
_________________
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
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Mon Aug 01, 2011 11:09 pm    Post subject: Reply with quote

I have the same issue. My partitions are ext4 and the required drivers are built-in the kernel.

My lspci results

Code:
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
06:00.0 Network controller: Intel Corporation Wireless WiFi Link 5100
07:00.0 FireWire (IEEE 1394): JMicron Technology Corp. IEEE 1394 Host Controller
07:00.1 System peripheral: JMicron Technology Corp. SD/MMC Host Controller
07:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller
07:00.3 System peripheral: JMicron Technology Corp. MS Host Controller
07:00.4 System peripheral: JMicron Technology Corp. xD Host Controller
08:00.0 VGA compatible controller: nVidia Corporation G96 [GeForce 9600M GT] (rev a1)
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 726
Location: San Diego, CA

PostPosted: Mon Aug 01, 2011 11:44 pm    Post subject: Reply with quote

Have you tried the following?

Intel ICH9 SATA controller/kernel question
https://forums.gentoo.org/viewtopic-t-699317.html
__
sol
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Mon Aug 01, 2011 11:48 pm    Post subject: Reply with quote

solamour wrote:
Have you tried the following?

Intel ICH9 SATA controller/kernel question
https://forums.gentoo.org/viewtopic-t-699317.html
__
sol


AHCI SATA support and Intel ESB, ICH (...) are both built-in the kernel as well.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Mon Aug 01, 2011 11:53 pm    Post subject: Reply with quote

Boot cd, mount gentoo partitions, enter chroot using your device names if not sda1 and saa3:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
cd /usr/src/linux
make menuconfig

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 and Parallel ATA drivers
[ ] Verbose ATA error reporting
[*] ATA ACPI Support
[ ] SATA Port Multiplier support
*** Controllers with non-SFF native interface ***
<*> AHCI SATA support
< > Platform AHCI SATA support
< > Initio 162x SATA support
< > ACard AHCI variant (ATP 8620)
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
*** SFF controllers with custom DMA interface ***
< > Pacific Digital ADMA support
< > Pacific Digital SATA QStor support
< > Promise SATA SX4 support (Experimental)
[*] ATA BMDMA support
*** SATA SFF controllers with BMDMA ***
<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
< > Marvell SATA support
< > NVIDIA SATA support
< > Promise SATA TX2/TX4 support
< > Silicon Image SATA support
< > SiS 964/965/966/180 SATA support
< > ServerWorks Frodo / Apple K2 SATA support
< > ULi Electronics SATA support
< > VIA SATA support
< > VITESSE VSC-7174 / INTEL 31244 SATA support
*** PATA SFF controllers with BMDMA ***
< > ALi PATA support
< > AMD/NVidia PATA support
< > ARASAN CompactFlash PATA Controller Support
< > ARTOP 6210/6260 PATA support
< > ATI PATA support
< > ARTOP/Acard ATP867X PATA support
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 PATA support
< > CS5536 PATA support
< > Cypress CY82C693 PATA support (Very Experimental)
< > EFAR SLC90E66 support
< > HPT 366/368 PATA support
< > HPT 370/370A/371/372/374/302 PATA support
< > HPT 371N/372N/302N PATA support
< > HPT 343/363 PATA support
< > IT8213 PATA support (Experimental)
< > IT8211/2 PATA support
<*> JMicron PATA support
< > Marvell PATA support via legacy mode
< > NETCELL Revolution RAID support
< > Ninja32/Delkin Cardbus ATA support
< > Nat Semi NS87415 PATA support
< > Intel PATA old PIIX support
< > OPTI FireStar PATA support (Very Experimental)
< > Promise PATA 2027x support
< > Older Promise PATA controller support
< > RADISYS 82600 PATA support (Experimental)
< > RDC PATA support
< > SC1200 PATA support
< > Intel SCH PATA support
< > SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< > CMD / Silicon Image 680 PATA support
< > SiS PATA support
< > Toshiba Piccolo support (Experimental)
< > Compaq Triflex PATA support
< > VIA PATA support
< > Winbond SL82C105 PATA support
*** PIO-only SFF controllers ***
< > CMD640 PCI PATA support (Experimental)
< > Intel PATA MPIIX support
< > Nat Semi NS87410 PATA support
< > OPTI621/6215 PATA support (Very Experimental)
< > PC Tech RZ1000 PATA support
*** Generic fallback / legacy drivers ***
< > ACPI firmware driver for PATA
< > Generic ATA support
< > Legacy ISA PATA support (Experimental)
then:
Code:
make && make modules_install
cp arch/x86/boot/bzImage /boot/your kernel name

_________________
Defund the FCC.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Aug 02, 2011 12:00 am    Post subject: Reply with quote

The kernel sections are now ticked as you suggested, the kernel is recompiled and copied, but the problem still remains. The output did not change.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Aug 02, 2011 12:20 am    Post subject: Reply with quote

if it's still unknown block device 0,0 and not something like 8,3 , then whatever kernel you're booting cant talk to your HDD (lacks support for your HDD controller)

make sure you haven't enabled anything under CONFIG_IDE
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Aug 02, 2011 12:22 am    Post subject: Reply with quote

cach0rr0 wrote:
if it's still unknown block device 0,0 and not something like 8,3 , then whatever kernel you're booting cant talk to your HDD (lacks support for your HDD controller)

make sure you haven't enabled anything under CONFIG_IDE


It says unknown block (8,3). My base system is on /dev/sda3
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue Aug 02, 2011 12:36 am    Post subject: Reply with quote

are you sure you enabled scsi support as below:
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


boot cd
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
ls -l  /mnt/gentoo/boot
check that kernel date time is in the last hour or so

a picture of the panic screen, digital camera or cell phone, posted on a free photo site with the url posted here could be helpful
_________________
Defund the FCC.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Aug 02, 2011 1:25 am    Post subject: Reply with quote

DONAHUE wrote:
are you sure you enabled scsi support as below:
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


boot cd
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
ls -l  /mnt/gentoo/boot
check that kernel date time is in the last hour or so

a picture of the panic screen, digital camera or cell phone, posted on a free photo site with the url posted here could be helpful


As requested : http://smg.photobucket.com/albums/v190/daseinhorn/?action=view&current=IMG_0001-.jpg
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue Aug 02, 2011 1:41 am    Post subject: Reply with quote

the panic picture shows that you do have the scsi transport layer (drivers sd sr) but do not have the adapter drivers built-in (no Available partitions: sda1 etc).
boot cd, mount gentoo partitions, enter the chroot
Code:
emerge wgetpaste
wgetpaste  /usr/src/linux/.config
ls -l /boot | wgetpaste
post the url's returned
_________________
Defund the FCC.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Aug 02, 2011 1:55 am    Post subject: Reply with quote

DONAHUE wrote:
the panic picture shows that you do have the scsi transport layer (drivers sd sr) but do not have the adapter drivers built-in (no Available partitions: sda1 etc).
boot cd, mount gentoo partitions, enter the chroot
Code:
emerge wgetpaste
wgetpaste  /usr/src/linux/.config
ls -l /boot | wgetpaste
post the url's returned


http://paste.pocoo.org/show/450956
http://paste.pocoo.org/show/450957
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue Aug 02, 2011 2:15 am    Post subject: Reply with quote

You have:
Quote:
<*> AMD/NVidia PATA support
<*> Intel SCH PATA support
which are unnecessary; SCH PATA could be a problem.

suggest change to
Quote:
< > AMD/NVidia PATA support
< > Intel SCH PATA support
recompile and recopy.

check that your BIOS is selected to ahci mode

is the drive connected usb or in any way exotic?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Aug 02, 2011 2:19 am    Post subject: Reply with quote

DONAHUE wrote:
You have:
Quote:
<*> AMD/NVidia PATA support
<*> Intel SCH PATA support
which are unnecessary; SCH PATA could be a problem.

suggest change to
Quote:
< > AMD/NVidia PATA support
< > Intel SCH PATA support
recompile and recopy.

check that your BIOS is selected to ahci mode

is the drive connected usb or in any way exotic?


Suggestion adopted, ahci mode is already enabled, same output and failures...
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue Aug 02, 2011 2:23 am    Post subject: Reply with quote

is the drive connected usb or in any way exotic?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Aug 02, 2011 2:33 am    Post subject: Reply with quote

DONAHUE wrote:
is the drive connected usb or in any way exotic?


No, it's a simple laptop hard drive. Gentoo was working very well before on it, I just felt like doing a fresh install after 18 months with the same desktop and kde being up to 4.7. I don't understand why it is such a mess to load up my base install.

I think I will start from scratch again and see if I get the same result. If yes, I will file a bug report.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue Aug 02, 2011 2:38 am    Post subject: Reply with quote

Do you use pappy's kernel seeds as your base?
Recommended.
then add your drivers remove nothing.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Aug 02, 2011 2:39 am    Post subject: Reply with quote

DONAHUE wrote:
Do you use pappy's kernel seeds as your base?
Recommended.
then add your drivers remove nothing.


I use standard gentoo-sources. I do not know what Pappy's stuff is.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Tue Aug 02, 2011 2:48 am    Post subject: Reply with quote

http://www.kernel-seeds.org

provides a config file that works more reliably and is less bloated than the default config file.

what stage 3 tarball did you use? date time group

enter the chroot
Code:
rc-update show
is udev in the sysinit runlevel?
Code:
ls -l /dev
is it well populated?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
daseinhorn
Apprentice
Apprentice


Joined: 16 Jan 2009
Posts: 150
Location: Canada

PostPosted: Tue Aug 02, 2011 3:00 am    Post subject: Reply with quote

DONAHUE wrote:
http://www.kernel-seeds.org

provides a config file that works more reliably and is less bloated than the default config file.

what stage 3 tarball did you use? date time group

enter the chroot
Code:
rc-update show
is udev in the sysinit runlevel?
Code:
ls -l /dev
is it well populated?


I am restarting from scratch and I will use a kernel seed this time. I'll post in an hour to report how things are going.
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
Goto page 1, 2  Next
Page 1 of 2

 
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