From owner-freebsd-stable Thu Feb 22 15:41:36 2001 Delivered-To: freebsd-stable@freebsd.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by hub.freebsd.org (Postfix) with SMTP id DD4D737B491 for ; Thu, 22 Feb 2001 15:41:32 -0800 (PST) (envelope-from neve_ripe@yahoo.com) Received: from f2f.tsua.net (HELO NEVER) (212.40.34.58) by smtp.mail.vip.sc5.yahoo.com with SMTP; 22 Feb 2001 23:41:31 -0000 X-Apparently-From: Date: Fri, 23 Feb 2001 01:40:23 +0300 From: Alexandr Kovalenko X-Mailer: The Bat! (v1.49) UNREG / CD5BF9353B3B7091 Reply-To: Alexandr Kovalenko Organization: UIC Group X-Priority: 3 (Normal) Message-ID: <11423074949.20010223014023@yahoo.com> To: lists Cc: freebsd-stable@freebsd.org Subject: Re: installing onto a new drive from a running system In-reply-To: <20010222152655.A70899@mighty.grot.org> References: <20010222152655.A70899@mighty.grot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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