From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 03:41:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8313816A4CE for ; Thu, 22 Jan 2004 03:41:31 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEDB443D49 for ; Thu, 22 Jan 2004 03:41:29 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp34-50.lns1.adl1.internode.on.net [150.101.34.50]) i0MBfRxC002132; Thu, 22 Jan 2004 22:11:27 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: David LeCount , freebsd-questions@freebsd.org Date: Thu, 22 Jan 2004 22:11:26 +1030 User-Agent: KMail/1.4.3 References: <20040122080216.38139.qmail@web60601.mail.yahoo.com> In-Reply-To: <20040122080216.38139.qmail@web60601.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200401222211.26674.malcolm.kay@internode.on.net> Subject: Re: Swapping hard drives X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 11:41:31 -0000 On Thu, 22 Jan 2004 18:32, David LeCount wrote: > Hello. I'm swapping my second hard drive for a larger > one. This is the drive with my / partition on it. Well > I've made the partitions on the other drive and copied > my data. I made the partition active, though every > time I return to fdisk in sysinstall, it doesn't show > it as active anymore. Lastly, I fixed fstab. Remember > that it's actually my second hard drive and Lilo is on > the first, so no need to mess with that. So I put the > drive where the other one was, but when I booted, it > said invalid partition. It prompts me for the kernel, > and I type in 1:ad(1,d)/kernel but it still says > invalid kernel. The new / partition is ad2s1d when > it's hooked up as the third drive. I've played with it > for hours, and can't find a tutorial on doing this > anywhere. Any help is apppreciated. > I believe FreeBSD likes to find / in an 'a' partition. You could try renaming ad2s1d to ad2s1a using=20 disklabel (bsdlabel on 5.x), and updating references particularly in fstab on the new disk. I believe this is probably possible without interfering with the file=20 systems and data so long as you don't mess with the partition sizes and offsets but only change the names. (Do it with all ad2s1 partitions unmounted.) I think you would have had difficulty creating another=20 'a' partition using sysinstall while one is already visible=20 somewhere in the disk system. But you could have=20 pre-created partitions using disklabel before running=20 sysinstall, which would then find and offer those partitions. Use these suggestions with caution, there should be=20 people out there more knowledgable in regard to disk=20 organisation than myself. Malcolm