Subject: Re: Attaching additional HDD - such simple(?) thing not without problems
To: Zbigniew Baniewski <zb@ispid.com.pl>
From: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
List: netbsd-users
Date: 05/24/2006 02:17:34
On Wed, May 24, 2006 at 02:12:51AM +0200, Zbigniew Baniewski wrote:
> On Wed, May 24, 2006 at 01:43:55AM +0200, Pavel Cahyna wrote:
>
> > Then boot to single-user and run mount -uw /dev/wd1a /
> > Now you can edit /etc/fstab and chande wd0 to wd1. This should be enough.
>
> I'm afraid, it's the only possible solution in such situation, but that's
> I wanted to avoid - and because of this I was looking for somewhat more
> "elegant" way.
It is a quite simple solution and unavoidable anyway if you are e.g.
moving your system to a different disk type (from ATA to SCSI or RAID for
example).
A more elegant solution would be to reassign drive numbers using
userconf(4). But I'm afraid this would not work for NetBSD, which does not
have the "clone" command in userconf.
Or, if you think about it in advance, you can "wire down" the devices in
the kernel config. But it requires to recompile the kenel.
Pavel