From owner-freebsd-questions Thu Feb 27 01:59:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA16073 for questions-outgoing; Thu, 27 Feb 1997 01:59:58 -0800 (PST) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA16067 for ; Thu, 27 Feb 1997 01:59:50 -0800 (PST) Received: (from nadav@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id LAA06951; Thu, 27 Feb 1997 11:59:00 +0200 (IST) Date: Thu, 27 Feb 1997 11:59:00 +0200 (IST) From: Nadav Eiron To: Doug White cc: Scott Morris , freebsd-questions@freebsd.org Subject: Re: Sanity check needed In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 25 Feb 1997, Doug White wrote: > On Tue, 25 Feb 1997, Scott Morris wrote: > > > I'm pretty sure that i've seen Doug answer this but i'd appreciate > > a sanity check before i burn down my system. > > I need to move my fbsd disk from wd1 (secondary ide) to wd0 (primary > > ide) due to some really bad planning on my part. If i recall correctly i can > > edit the kernel line in MYKERNEL to reflect the new drive and then rebuild. > > When the kernel install is complete then edit fstab and change wd1 references > > to wd0. Reboot and pray. > > Something like that. I actually copied the entire disk across, which is > more of a feat than just swapping the disks. > > > This just seems too easy...i've got to be missing something? > > You might make sure that the wd0* files exist (MAKEDEV wd0), and rewire > any non-fstab'd mounts, but otherwise it should work w/o a hitch. > > Doug White | University of Oregon > Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant > http://gladstone.uoregon.edu/~dwhite | Computer Science Major > > Another option, that requires a change of a *single* character (O.K., actually two character): Comment out your old wd1 line in the kernel config and change the 0 in the wd0 line to 1. This would leave the disk named as wd1, eventhough it'll be the master disk. This has the disadvantage of giving weird names to the disks (especially if you're going to have another disk as the slave), but it works. Nadav