From owner-freebsd-stable Thu Feb 22 17:10:51 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.telocity.com (dsl-64-128-16-161.telocity.com [64.128.16.161]) by hub.freebsd.org (Postfix) with ESMTP id 7A57537B503 for ; Thu, 22 Feb 2001 17:10:47 -0800 (PST) (envelope-from cgaff@mail.telocity.com) Received: (from cgaff@localhost) by mail.telocity.com (8.11.2/8.11.2) id f1N1AZ751841; Thu, 22 Feb 2001 19:10:35 -0600 (CST) (envelope-from cgaff) Date: Thu, 22 Feb 2001 19:10:20 -0600 From: "Corey G." To: Alexandr Kovalenko Cc: lists , freebsd-stable@FreeBSD.ORG Subject: Re: installing onto a new drive from a running system Message-ID: <20010222191020.A51735@telocity.com> References: <20010222152655.A70899@mighty.grot.org> <11423074949.20010223014023@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <11423074949.20010223014023@yahoo.com>; from neve_ripe@yahoo.com on Fri, Feb 23, 2001 at 01:40:23AM +0300 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I successfully did a dupe of my running FreeBSD 4.2 system using the following method just a few weeks ago. My goal was to keep it as simple as possible. I use pull out drives which makes this method even easier for myself. 1. installed the second drive as a slave 2. created partitions and labeled partitions using sysinstall from the running system 3. mounted each partition from the slave drive one at a time to /mnt 4. used "rsync -avp /source/ /mnt" as my copy method for each FS When I was done I simply switched my master and slave drive and rebooted. Everything worked without a single modification. Rsync was my choice, maybe not the fastest in this situation but it worked. Thanks, Corey On Fri, Feb 23, 2001 at 01:40:23AM +0300, Alexandr Kovalenko wrote: > Hello lists, > > Friday, February 23, 2001, 2:26:55 AM, you wrote: > > l> Is there a way to put a fresh FreeBSD installation onto a second harddrive in > l> a running system that doesn't involve booting from floppies or CD or using yet > l> another drive and dd? If I've missed the documentation that specifies this > l> procedure, I would appreciate a pointer. > > First you should fdsik your second harddrive with slice of appropriate > size. Then you should disklabel your slice. (All of this could be > done using standard /stand/sysinstall). > > Then you should go through standard sequence: > > cd /usr/src > make buildworld > > Now newfs and mount your partitions to appropriate dirs under some > mountpoint, in my example it is /mnt. > Assuming you have "/" at /dev/ad1s1a, "/var" at /dev/ad1s1e and > "/usr" on /dev/ad1s1f do the following steps: > > mount -o noatime /dev/ad1s1a /mnt > mkdir /mnt/usr > mkdir /mnt/var > mount -o noatime /dev/ad1s1f /mnt/usr > mount -o noatime /dev/ad1s1e /mnt/var > > cd /usr/src > make installworld DESTDIR=/mnt > > Now configure and compile your kernel: > > cd /usr/src/sys/i386/conf > cp GENERIC YOURKERNEL > vi YOURKERNEL > ...editing kernel config... > cd /usr/src/ > make buildkernel KERNCONF=YOURKERNEL > make installkernel KERNCONF=YOURKERNEL DESTDIR=/mnt > > Now install your /etc files: > > cd /usr/src/etc > make distribution DESTDIR=/mnt > > Create /etc/fstab containing appropriate mounting points for your > partitions. (They shoud not contain /mnt). > > And, finally, add bootloader on your second harddrive: > (This step also can be accomplished with /stand/sysinstall). > > boot0cfg -B ad1 > > > Now you are ready to run FreeBSD on your second harddrive. > > -- > Best regards, > Alexandr mailto:neve_ripe@yahoo.com > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message ---end quoted text--- -- Best Regards, Corey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message