From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 23:32:03 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9013516A407 for ; Sun, 17 Dec 2006 23:32:03 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4CEF43CAB for ; Sun, 17 Dec 2006 23:32:02 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from [192.168.0.102] (h121.243.140.67.ip.alltel.net [67.140.243.121]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id kBHNW12R062492 for ; Sun, 17 Dec 2006 15:32:02 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-questions@freebsd.org Date: Sun, 17 Dec 2006 18:31:48 -0500 User-Agent: KMail/1.9.4 References: <200612171516.51460.odilist@sonic.net> In-Reply-To: <200612171516.51460.odilist@sonic.net> X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*.<=?utf-8?q?of=5F4NrS=0A=09P*M/9CpxDo!D6?=)IY1w<9B1jB; tBQf[RU-R<,I)e"$q7N7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612171831.50004.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Subject: Re: The moving-your-system FAQ: Anything else I should know? 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: Sun, 17 Dec 2006 23:32:03 -0000 On Sunday 17 December 2006 18:16, Oliver Iberien wrote: > I'm about to move my system, I've read the FAQ, I don't want to rearrange > anything. I want to make sure I have the process down correctly before I > try, so I am asking here. I am using 6.0 #2. > > First, I hook up both drives. I partition the new hard drive and label it > the same way as the previous drive. > > Then, I would reboot to single-user mode. I would use newfs to create new > file systems form each new partition. I mount each partition in turn to a > temporary mount point and change directory to the newly mounted > partition. Then the FAQ gives the following command for the dump-copy > process: > > dump 0af - / | restore xf - > > This is to be used without modification for each partition. > > It this really it? It seems... easy. Yep, it's really that easy. I've been experimenting with different RAID configurations on my main work PC and I've done this procedure at least twice in the last few months. (I'll be doing it again in a couple weeks when some new drives come in). If you are changing additional hardware (besides just the hard drive), here are some things to keep in mind: If you have CPUTYPE set in /etc/make.conf you should be sure that the setting you had for the old computer is compatible with the new computer. If it's not, you should un-set it or set it to the lowest common denominator between the two systems the rebuild world, kernel, and all your ports (preferrably before you make the switch). If you use a custom kernel be sure that it has support for the disk and network devices on your new system. If it doesn't, add the drivers back in or switch back to GENERIC. It's entirely possible that your hard drive will come up as a different device on your new system. This is especially true if you are moving from e.g. IDE to SATA or something similar. The easiest way to deal with this is after you make the switch. The kernel will boot but then fail to mount the root filesystem and prompt for the name of the root device to use. Use the kernel's boot output and your knowledge of how you laid out the disk to supply the correct device name. After that, you'll probably get other mount failures forcing the system to come up in single-user mode. Manually mount /usr and re-mount / r/w so you can edit /etc/fstab with the right values. Save and reboot. You might need to do other things like reconfigure X, etc. but that can all be handled after you make the switch. JN