Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
P4P800 / S-ATA / kernel-panic upon boot
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
FoxHunter
n00b
n00b


Joined: 12 May 2004
Posts: 9

PostPosted: Wed May 12, 2004 8:51 pm    Post subject: P4P800 / S-ATA / kernel-panic upon boot Reply with quote

Hi!

This is my first topic in these beautiful forums, I hope you can help me ;)

Problem: I try to install Gentoo 2004.1 to an S-ATA disc on my P4P800.
These a the devices used:

/dev/hdg6 => /boot > ext2
/dev/hdg7 => swap
/dev/hdg8 => / > ext3

As you can see, the Live-CD recognizes my S-ATA device as /hdg.
Everything went fine, until I tried to boot from my freshly installed Gentoo install:

Quote:
VFS: Cannot open root device "hdg8" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)


Here my /etc/fstab

Quote:
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdg6 /boot ext2 noauto,noatime 1 2
/dev/hdg7 none swap sw 0 0
/dev/hdg8 / ext3 noatime 0 1

/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none /dev/shm tmpfs defaults 0 0


And grub.conf:

Quote:
default 1
timeout 10
splashimage=(hd1,5)/grub/splash.xpm.gz

title=Gentoo Linux 2004.1
root (hd1,5)
kernel (hd1,5)/kernel-2.6.5 root=/dev/hdg8

# XP Dual Boot
title=Windows XP
rootnoverify (hd0,0)
chainloader +1


Here some more information:

- I have enabled SATA-support in the kernel (compiled it myself using make menuconfig).
- In my BIOS, I'm running enhanced mode for my IDE channels, because I need both IDE-channels - thus I'm not able to run "compatible mode".
- I also tried to replace /hdg with /sda and /sdc in fstab end grub.conf, but with no avail.
- kernel used is gentoo-dev-sources-2.6.5-r1

I'm a total noob in using Linux, and now I don't know what to do anymore.
Of course I searched the whole gentoo.org forums for similiar topics, and tried several tips, but nothing has helped. :(

Thanks in advance
Back to top
View user's profile Send private message
YopWongSapn
l33t
l33t


Joined: 26 Jan 2004
Posts: 627

PostPosted: Wed May 12, 2004 9:00 pm    Post subject: Reply with quote

On behalf of everyone here, I'd like to welcome you to these forums :D
Considering this is your first post here, I'm impressed at the info you posted. This makes it much easier to troubleshoot your problem.

Try passing the -doscsi option to the kernel. It sounds like your kernel can't find your / partition because it is not looking on your SATA controller.

I'm not familiar with grub's syntax for doing this, but I'm sure you can find it somewhere. :wink:
_________________
Gentoo...it's like wiping your ass with silk. Or sandpaper.
Back to top
View user's profile Send private message
FoxHunter
n00b
n00b


Joined: 12 May 2004
Posts: 9

PostPosted: Wed May 12, 2004 9:14 pm    Post subject: Reply with quote

Thanks for your reply, but that did not help.

Btw, as the manual says, kernel options like doscsi are only necessary for people who compiled the kernel using genkernel.

I'm out of ideas :(
One day ago I installed Gentoo flawlessly in my virtual PC using "Microsoft Virtual PC". Obviously VPC does not emulate S-ATA drives ;)
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Thu May 13, 2004 11:49 pm    Post subject: Reply with quote

This will be my fourth SATA for Intel chipsets post TODAY. I also welcome you to the forums!

First, yes, you should have your BIOS set to use Enhanced mode. Check.

Second, build your kernel WITHOUT SCSI support. Namely disable the low-level drivers support for SATA and Intel chipsets (something like pIIx). You do not need this. You could use this, but then you would not be able to run hdparm on your drives among other smaller inconveniences. If you have nothing else that requires SCSI support (likely), then complete disable SCSI support.

For some weird reason, in order to do this, I have to disable what I can under SCSI support, quit/save my configuration, then do a second "make menuconfig" and finally disable the top level "SCSI support" option.

Your drive should show up as /dev/hde, /dev/hdg, etc. Not sure why you're getting /dev/hdg by default, but that's fine.

Finally, make sure your /etc/fstab and /boot/grub/grub.conf are pointing at the right drive and partition.

Are you sure it's /dev/hdg6? Seems like an awful high number. What does running this command as root report to you?

Code:
fdisk -l /dev/hdg
Back to top
View user's profile Send private message
FoxHunter
n00b
n00b


Joined: 12 May 2004
Posts: 9

PostPosted: Sat May 15, 2004 11:16 am    Post subject: Reply with quote

Thanks for your reply!

Well, /hdg6 is correct, dunno why /hdg, but 6 is indeed the 2nd (extended) partition on this harddrive, that's correct.
But I was tired of doing all this trial and error, and finally installed gentoo to an old 16gb ATA harddisk I found in my cupboard :-D

But if I find the time I will try your suggestions and disable SCSI support in the kernel, since /hdg is my only (pseudo-)SCSI device in my system.

thanks
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Sat May 15, 2004 12:47 pm    Post subject: Reply with quote

I had a similar problem first time I've tryed using a SATA drive.
While installing the disk was hde, but while booting gentoo grub see it has hd0, when ( since I've 2 disks 1 IDE other SATA ) it should be hd1. Strange thing, but changing everything from my gruf.conf from hd1 to hd0 and leaving the hde it works.


_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
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