From owner-freebsd-questions Tue Aug 27 20:28:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA21027 for questions-outgoing; Tue, 27 Aug 1996 20:28:51 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts10-line11.uoregon.edu [128.223.150.109]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA21021 for ; Tue, 27 Aug 1996 20:28:46 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id UAA00480; Tue, 27 Aug 1996 20:28:38 -0700 (PDT) Date: Tue, 27 Aug 1996 20:28:38 -0700 (PDT) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Leonard Chung cc: questions@FreeBSD.org Subject: Re: Moving FBSD to another HD? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 27 Aug 1996, Leonard Chung wrote: > I just got a new IDE HD, and would like to move FBSD from my old IDE HD to > the new one to take advantage of the faster disk io. Is there a > (hopefully, easy :) way to do this? I just went through this. 1. Run sysinstall on the new disk, set up the partitions as you like, and just install the bin distribution (or select a strange dist like games and let it fail). This will set up the partitions and boot block. 2. Reboot to the OLD copy of FreeBSD in single user mode, mount partitions as normal (mount -u /;mount -a) 3. Mount the new paritions one at a time. Use a command like so to copy the data: cd /mnt # or whatever the mountpoint is tar cf - /filesystem | tar xf - # replace '/filesystem' with the real FS # to copy Use 'tar' since 'cp' if called with the wrong flags, will screw up the permissions. I had this unfortunate experience. ;( 4. If you want, edit /etc/fstab (saving a backup) to reflect the disk's current config and boot it by typing "wd(1,a)/kernel" (or what's appropriate) at the boot: prompt. This is to check that the copy worked and the system will at least load the kernel. 5. Copy back the old fstab, move the disk into position, and boot up. Backing up before starting is a *really* good idea, if you already do so. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major