Subject: Re: Attaching additional HDD - such simple(?) thing not without problems
To: None <netbsd-users@netbsd.org>
From: Jonathan A. Kollasch <jakllsch@kollasch.net>
List: netbsd-users
Date: 05/23/2006 21:22:42
--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Tue, May 23, 2006 at 07:57:30PM -0400, Thor Lancelot Simon wrote:
> So, it's hard to understand why this is so upsetting to you, when one
> considers that it would require a 10-second edit to /etc/fstab to fix.
So true.
> If you really want to force the drive on the HPT IDE controller to be
> wd0, whether there is another drive present or not, it is also trivial
> to build a kernel that will number it that way.
Yes, I just did it for the heck of it:
piixide0 at pci? dev ? function ?
I assume one piixide in the whole system, because otherwise I'd
need to pin down at least the things above it.
comment out the pre-pinned wdc0 and wdc1:
#wdc0 at isa? port 0x1f0 irq 14 flags 0x00
#wdc1 at isa? port 0x170 irq 15 flags 0x00
un-wildcard the atabuses:
#atabus* at ata?
pin down the atabuses:
atabus0 at piixide0 channel 0
atabus1 at piixide0 channel 1
un-wildcard the drives:
#wd* at atabus? drive ? flags 0x0000
and pin down the drives in an insane order to test this:
wd0 at atabus1 drive 1 flags 0x0000
wd1 at atabus1 drive 0 flags 0x0000
wd2 at atabus0 drive 1 flags 0x0000
wd3 at atabus0 drive 0 flags 0x0000
I tested this, makes the first drive on the first channel wd3.
But, yes, like Thor said, it's most often simpler (at least if your not
doing this constantly) to just edit fstab. (Or just ignore fstab and mount
manually.)
On my Abit board with a viaide and a hptide, I usually go the fstab route
when I rearrange drives.
That being said, I don't think autoconf(9) is quite flexible enough to
do enumeration like Linux does. But then again, it is flexible enough
to allow manual enumeration. Whatever.
Jonathan Kollasch
--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD8DBQFEc8NyOjx1ye3hmokRAlS3AJ93TL1p5HJ3LEWw5DR5zBpWHPVUmwCfav2f
bAeCXBXBJeQUnkT4eV2geKA=
=yDGD
-----END PGP SIGNATURE-----
--ZGiS0Q5IWpPtfppv--