Date: Thu, 22 Feb 2001 19:10:20 -0600 From: "Corey G." <ctgaff@telocity.com> To: Alexandr Kovalenko <neve_ripe@yahoo.com> Cc: lists <lists@lists.grot.org>, freebsd-stable@FreeBSD.ORG Subject: Re: installing onto a new drive from a running system Message-ID: <20010222191020.A51735@telocity.com> In-Reply-To: <11423074949.20010223014023@yahoo.com>; from neve_ripe@yahoo.com on Fri, Feb 23, 2001 at 01:40:23AM %2B0300 References: <20010222152655.A70899@mighty.grot.org> <11423074949.20010223014023@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010222191020.A51735>