From owner-freebsd-questions@FreeBSD.ORG Wed Jul 6 16:11:00 2005 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 E2F3816A41C for ; Wed, 6 Jul 2005 16:11:00 +0000 (GMT) (envelope-from chris@seagul.co.uk) Received: from office.seagul.co.uk (dsl-62-3-120-198.zen.co.uk [62.3.120.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 303AA43D48 for ; Wed, 6 Jul 2005 16:10:57 +0000 (GMT) (envelope-from chris@seagul.co.uk) Received: from [192.168.3.103] ([192.168.3.103]) by office.seagul.co.uk with MailEnable ESMTP; Wed, 06 Jul 2005 17:10:35 +0100 Message-ID: <42CC027B.7030808@seagul.co.uk> Date: Wed, 06 Jul 2005 17:10:35 +0100 From: Chris Roos User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Migrating FreeBsd installation to another hard drive 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: Wed, 06 Jul 2005 16:11:01 -0000 Hi, I've recently had the job of moving a FreeBsd installation to another hard drive. After quite a lot of reading I got round to following this article[1] using a VMWare FreeBsd instance. In brief the article uses dump and restore to move the data from one mounted partition to another in single user mode. It also suggests that before you do this, you perform a minimum install on the destination disk to ensure that it boots fine. First time round, I did the minimum install and then followed the steps (minus the MAKEDEV step as I'm running 5.3R) to backup the data to the destination. This all worked fine. Second time round, I didn't do a minimum install, rather I just set-up the slice and partitions on the destination using sysinstall, and then did the dump/restore. On booting from the destination disk this time, nothing happened. I reasoned that it was because I had no boot manager installed and so went ahead and used boot0cfg -B to install the FreeBsd boot manager. The disk now boots; however, I would prefer to use the equivalent of the 'Standard - Install a standard MBR (no boot manager)' option from sysinstall as FreeBsd is the only OS on the disk and so I don't need the option of booting to it or anything else. I'm guessing that I would use fdisk to do this but if so am not entirely sure how. In addition, is this safe to perform on a disk with data or would I need to go through the dump/restore process again? One final question is whether the dump/restore process is the best approach in this instance? I have read about using dd but am not entirely sure whether this would do what I need? Thanks in advance for any help, Chris [1] http://bsdvault.net/sections.php?op=viewarticle&artid=121