Date: Mon, 9 Aug 2004 10:14:53 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: jayobrien@att.net (Jay O'Brien) Cc: FreeBSD - questions <questions@freebsd.org> Subject: Re: Swappable Hard drives? Message-ID: <200408091414.i79EEr224080@clunix.cl.msu.edu> In-Reply-To: <411712B1.8090701@att.net> from "Jay O'Brien" at Aug 08, 2004 10:59:13 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408091414.i79EEr224080>