Mailing List Archive

which is the on-board IDE controller
Hello list! First Thank all of you very much for helped me solved so
many problems (e.g. prompt me for installing 2.6 kernel so that I can
use USB keyboard, pointing out I've linked to wrong profile and wrong
root directory permission etc).

After started to use 2.6 kernel I can no longer access the booting HDD
which was /dev/hda and connected to the on-board IDE controller.
sappho ~ # mount -t ext2 /dev/hda1 /mnt
mount: /dev/hda1 is not a valid block device

It seems I don't have proper driver for on-board IDE controller:
sappho ~ # mount -t ext2 /dev/hda1 /mnt
mount: /dev/hda1 is not a valid block device

I know only one method to tell what controller I have, which is lspci:
sappho ~ # lspci
[snip]
01:03.0 IDE interface: Silicon Image, Inc. PCI0646 (rev 03)
02:02.0 RAID bus controller: VIA Technologies, Inc. VT6421 IDE RAID Controller (rev 50)
[snip]

It's clear '/' is mounted on SATA harddisk on RAID controller, so, it
seems the on-board IDE controller is Silicon Image's PCI0646, however I
do have the driver enabled in kernel:
BLK_DEV_SIIMAGE=y

So this is rather strange to me, do I have to enable other kernel option
to be able to 'see' the booting harddisk?

--
锐业软服(国内业务) http://www.realss.cn
Real SoftService http://www.realss.com
销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German,
English)
国际业务(International Sales): 0086 10 8460 6011 (German and English)
联系:厦门大学科技园,嘉庚二号楼6楼
邮政:厦门大学2312号信箱(邮编361005)
Re: which is the on-board IDE controller [ In reply to ]
Hi 张韡武,

maybe your kernel just uses other names than the previous one? Do

$ cat /proc/partitions

Maybe it lists the SATA drive as /dev/sda instead of hda before (sata
driver infrastructure in kernel evolved).

Another guess: did you compile your kernel with sun partition table
layout support?

Greetings,
Fabian
--
gentoo-sparc@gentoo.org mailing list
Re: which is the on-board IDE controller [ In reply to ]
在 2006-12-16六的 17:48 +0100,Fabian Hänsel写道:
> Hi 张韡武,
>
> maybe your kernel just uses other names than the previous one? Do
>
> $ cat /proc/partitions

sappho ~ # cat /proc/partitions
major minor #blocks name

8 0 312570167 sda
8 1 594373 sda1
8 2 4811467 sda2
8 3 307162800 sda3


>
> Maybe it lists the SATA drive as /dev/sda instead of hda before (sata
> driver infrastructure in kernel evolved).

Ah, I am sorry I didn't explain this clear enough: I have a 320GB disk
as my main harddisk and a 5GB small harddisk as booting disk.
I. The booting disk is 5GB IDE disk, directly connected to the
on-board IDE controller, have sun disk label, should
be /dev/hda, /dev/hda1 should be mounted on '/boot';
II. The main disk is 320G SATA disk, connected to the PCI SATA RAID
card which in turn connect on the PCI slot of motherboard. this
disk have MSDOS label, have MSDOS partition and is recognised
as /dev/sda. /dev/sda2 is mounted as '/';

Current problem is the system boots but do not seems to
recognise /dev/hda.

>
> Another guess: did you compile your kernel with sun partition table
> layout support?

Yes I am sure the sun partition table layout support is enabled.
CONFIG_SUN_PARTITION: y

>
> Greetings,
> Fabian
--
锐业软服(国内业务) http://www.realss.cn
Real SoftService http://www.realss.com
销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German,
English)
国际业务(International Sales): 0086 10 8460 6011 (German and English)
联系:厦门大学科技园,嘉庚二号楼6楼
邮政:厦门大学2312号信箱(邮编361005)