Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 2001 01:40:23 +0300
From:      Alexandr Kovalenko <neve_ripe@yahoo.com>
To:        lists <lists@lists.grot.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: installing onto a new drive from a running system
Message-ID:  <11423074949.20010223014023@yahoo.com>
In-Reply-To: <20010222152655.A70899@mighty.grot.org>
References:  <20010222152655.A70899@mighty.grot.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11423074949.20010223014023>