From owner-freebsd-questions@FreeBSD.ORG Mon Aug 9 14:14:56 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 800BC16A4CE for ; Mon, 9 Aug 2004 14:14:56 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1377943D31 for ; Mon, 9 Aug 2004 14:14:56 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i79EEr224080; Mon, 9 Aug 2004 10:14:53 -0400 (EDT) From: Jerry McAllister Message-Id: <200408091414.i79EEr224080@clunix.cl.msu.edu> To: jayobrien@att.net (Jay O'Brien) Date: Mon, 9 Aug 2004 10:14:53 -0400 (EDT) In-Reply-To: <411712B1.8090701@att.net> from "Jay O'Brien" at Aug 08, 2004 10:59:13 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: FreeBSD - questions Subject: Re: Swappable 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: Mon, 09 Aug 2004 14:14:56 -0000 > > Soon I will have two identical 120GB IDE HDs in my FBSD 4.10 > system. One is to be basically a backup drive. Can I write a > MBR to the second HD and then swap cables when I want to > boot/run the system from the backup HD, assuming I've used pax > or dump to make the file systems identical? The "normal" > configuration will be both drives installed, but I would like > to be able to swap the cables (or change the boot sequence in > the BIOS) and boot off of the second HD. If you will not want to boot any other than the first drive that is marked bootable, (eg if you want to boot the second drive you will swap cables to do it) then you can easily do what you want. You should fdisk the second drive and make is bootable and create the identical partitions with disklabel ( you can use /stand/sysinstall to run fdisk and disklabel for you if you want, though fdisk and disklabel are not nearly as difficult as their reputations seem to have them - especially now that some more work has been done on their man pages) Then, use dump(8) piped to restore(8) for each partition to make the duplicate copies - don't attempt to duplicate the swap partition. And probably don't bother to duplicate /tmp unles, for some reason you are keeping something more than immediate temporary stuff there - you shouldn't if you can avoid it. dump/restore is probably better than dd for such a thing and definitely better than tar for this type of thing. Don't forget to fsck the new partitions before (and maybe after) writing them. ////jerry > > Both drives will be "masters" on different IDE controllers. > > There will be no other operating system on the computer, but > in the future I hope to use samba to copy files in and out to > Windows XP Pro computers on my LAN. > > Jay O'Brien >