View previous topic :: View next topic |
Author |
Message |
Scorp1on n00b
Joined: 28 Mar 2003 Posts: 17
|
Posted: Sun Aug 01, 2004 1:52 am Post subject: Need help with SATA/Grub/Kernel (2.6.7) |
|
|
Hi folks,
I am installing Gentoo on a Samsung SP1614C SATA drive (Silicon Image 3112A controller). Now im having trouble booting the system...
Quote: |
VFS: Cannot open root device "/dev/sda3" 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)
|
I know this is a common problem, but I still can't figure out how to fix it.
I'm using Grub 0.94 and 2.6.7-gentoo-r11 (gentoo-dev-sources). Here is my grub.conf and fstab:
Quote: |
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo
root (hd0,0)
kernel /kernel-2.6.7-gentoo-r11 root=/dev/sda3
|
Quote: |
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / reiserfs noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
|
I know that there is 2 different SATA solutions. The IDE one (/dev/hde) and the SCSI libata (/dev/sda). I tried a bunch of different kernel configurations, but all of them result in the same error.
If i boot the Gentoo LiveCD, the libata and sata_sil modules will be used. The drive works like a charm on the LiveCD and the partitions are named /dev/sda1 etc. I would prefer the SCSI-LowLevel driver because it works on the CD.
I doubt that the problem is grub though. I guess my kernel configuration has one little wrong option or something. Oh...and...yes, I did compile reiserfs filesystem support...
Thanks for your help or feedback... |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Aug 01, 2004 2:32 am Post subject: |
|
|
The SCSI/SATA driver you are looking for is here
Code: | Device Drivers --->
SCSI device support --->
<*> SCSI disk support
SCSI low-level drivers --->
[*] Serial ATA (SATA) support
<*> Silicon Image SATA support |
and you want it to be compiled-in (not a module).
EDIT : Do not include both the IDE and the SCSI versions of this driver at the same time. |
|
Back to top |
|
|
jordanpn n00b
Joined: 01 Aug 2004 Posts: 2 Location: Cambridge, MA
|
Posted: Sun Aug 01, 2004 4:19 am Post subject: Same problem with grub and Intel ICH6 SATA |
|
|
Just like the previous post, I have no problems mounting the drives with the livecd (smp 2.6.7 kernel), but once I try to boot the gentoo installation, the /dev/sda doesn't exist. I've tried creating the kernel both with genkernel as well as the manual compilation (with SATA support enabled). The only solution is to run the drive in parallel ATA and mount them as /dev/hda. Has anyone been able to figure this one out yet? Any help is greatly appreciated... |
|
Back to top |
|
|
Scorp1on n00b
Joined: 28 Mar 2003 Posts: 17
|
Posted: Sun Aug 01, 2004 10:14 am Post subject: |
|
|
I did what you said. I disabled the IDE/ATA driver and enabled the LowLevel SCSI SATA and Silicon Image driver. However, i still get the same error.
I installed my gentoo with the 2.4 kernel image LiveCD. Is that ok, or do i need to use the smp kernel for the 2.6 kernel to work?
I also read on the forums that you need to mount /dev before chrooting.
https://forums.gentoo.org/viewtopic.php?t=204694
Mousee wrote: | Before chrooting during the initial install process, run the following
command after running the other 'mount' commands:
Code: |
mount /dev /mnt/gentoo/dev -o bind
|
I'm not sure if you need to reinstall Gentoo or not, it's in
my opinion that you do however as this command effects
the kernel compilation (or I believe so anyways).
Make sure your kernel is also compiled with /dev support, as
well as Automatically mounting it at boot (as seen in the following
example from my gentoo-dev-sources 2.6.7-r11 kernel):
Code: |
File System ---> Pseudo filesystems --->
[*] /dev file system support (OBSOLETE)
[*] Automatically mount at boot
|
You're lilo.conf file looks correct, so if you do the above you
should have a working system in the end |
There seems to be alot of people with the same problem. A forum search for "unknown-block" helps. However, i can't really find a solution to the problem. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Aug 01, 2004 4:10 pm Post subject: |
|
|
Scorp1on wrote: | I installed my gentoo with the 2.4 kernel image LiveCD. Is that ok, or do i need to use the smp kernel for the 2.6 kernel to work? |
This is OK. Some people need to boot the CD with a 2.6 kernel for hardware compatibility reasons, but booting with a 2.4 kernel will not prevent you from installing whatever kernel you want in your system.
Scorp1on wrote: | I also read on the forums that you need to mount /dev before chrooting. |
Only some configurations need this, and I would recommend not doing this at the beginning (when you first chroot). It is better to wait until the end, and only do it if you are having trouble installing the bootloader.
Scorp1on wrote: | There seems to be alot of people with the same problem. A forum search for "unknown-block" helps. However, i can't really find a solution to the problem. |
The "unknown-block (0,0)" error almost always means the low level driver for the harddrive controller is missing from your kernel. It could also be a typo in the "root=/dev/sda3" part of your grub.conf (if you are asking the kernel to mount an invalid device). |
|
Back to top |
|
|
Scorp1on n00b
Joined: 28 Mar 2003 Posts: 17
|
Posted: Sun Aug 01, 2004 4:26 pm Post subject: |
|
|
OK I fixed it. Here is how i got my gentoo to work:
I used Knoppix 3.4 to get a working LiveCD that uses the IDE Silicon Image driver (/dev/hde).
From there I started the Gentoo installation. I also used mount --bind /dev /mnt/hde3/dev ...
My kernel has the IDE SATA drivers compiled into it, so I can go without SCSI now.
This for some reason works for me. The root fs is mounted for the first time
However, the LowLevel SCSI drivers still won't work. Not a problem though because all I care about is that my SATA drive works with one of the two drivers.
EDIT: not quite sure if it works because of the Knoppix LiveCD or the --bind /dev |
|
Back to top |
|
|
|