From owner-freebsd-questions@FreeBSD.ORG Mon Mar 13 21:38:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9366A16A423 for ; Mon, 13 Mar 2006 21:38:26 +0000 (UTC) (envelope-from pbowen@fastmail.fm) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF3FE43D68 for ; Mon, 13 Mar 2006 21:38:25 +0000 (GMT) (envelope-from pbowen@fastmail.fm) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 5EBCDD3D653 for ; Mon, 13 Mar 2006 16:38:24 -0500 (EST) Received: from frontend3.messagingengine.com ([10.202.2.152]) by frontend1.internal (MEProxy); Mon, 13 Mar 2006 16:38:24 -0500 X-Sasl-enc: 6S+A/cql1dE//VuWuCcuTKWGjX9D7bc62S5toiR95fo2 1142285903 Received: from [192.168.184.131] (ip-69-33-49-194.dfw.megapath.net [69.33.49.194]) by frontend3.messagingengine.com (Postfix) with ESMTP id BFC20602 for ; Mon, 13 Mar 2006 16:38:23 -0500 (EST) Message-ID: <4415E64F.2010601@fastmail.fm> Date: Mon, 13 Mar 2006 15:38:23 -0600 From: Patrick Bowen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4415E510.9070102@fastmail.fm> In-Reply-To: <4415E510.9070102@fastmail.fm> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Kernel mixup after dump/restore X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Mar 2006 21:38:26 -0000 Patrick Bowen wrote: > List; > > I have a slice on ad0s1 mounting the root FS from ad0s2a, and > vice-verse. Here's what I did. > > 1. Started out with a 20 Gig drive with two equal slices, ad0s1 > (blank) and ad0s2 (FreeBSD). > > 2. Used sysinstalls fdisk and bsdlabel to create /, /var, /tmp, and > /usr partitions on ad0s1 equal in size to those on ad0s2. > > 3. Used the following command to copy partitions from ad0s2 to ad0s1; > > dump -L -0 -f- /usr | (cd /mnt/hd/usr; restore -r -v -f-) > > /usr is on ad0s2 and /mnt/hd/usr is ad0s1. > > 4. Changed /mnt/hd/etc on ad0s1 to mount partitions on ad0s1, rather > than ad0s2. > > 5. Used grub to boot either to ad0s1 or ad0s2. > > When I boot the first slice (ad0s1), df(1) shows all the partitions to > be ad0s1, except root, which is ad0s2. When I boot the second slice > (ad0s2), df(1) shows all partitions to be ad0s2, except root, which is > ad0s1. > > Can anyone explain this behaviour, and why it might have happened? > > Thanks, > Patrick > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > I should have mentioned that I modified the dump/restore command in #3 above to reflect all the different partitions. Patrick