From owner-freebsd-questions Sun Jun 16 22:50:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from matrix.zssm.zp.ua (matrix.zssm.zp.ua [212.8.32.10]) by hub.freebsd.org (Postfix) with ESMTP id BD09037B40B; Sun, 16 Jun 2002 22:50:24 -0700 (PDT) Received: from server.hermes-comp.zp.ua (germes-comp.zssm.zp.ua [212.8.32.132] (may be forged)) by matrix.zssm.zp.ua (8.11.3/8.11.3) with ESMTP id g5H5gao35481; Mon, 17 Jun 2002 08:42:38 +0300 (EEST) (envelope-from stalker@hermes-comp.zp.ua) Received: from localhost (localhost [127.0.0.1]) by server.hermes-comp.zp.ua (Postfix) with ESMTP id CE69038302; Mon, 17 Jun 2002 08:47:33 +0300 (EEST) Date: Mon, 17 Jun 2002 08:47:33 +0300 (EEST) From: Alexander V Zubchenko To: "Greg 'groggy' Lehey" Cc: Corey Snow , Subject: Re: Adding hard drive, moving /usr/src In-Reply-To: <20020616020906.GJ65995@wantadilla.lemis.com> Message-ID: <20020617084044.U9334-100000@server.hermes-comp.zp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings! On Sun, 16 Jun 2002, Greg 'groggy' Lehey wrote: > > Does the kernel have to be recompiled? > > No. This depend on config of current kernel. E.g., i delete entry for second controller from kernel, 'cos i don't need it. And, when i'll decide to add something on second controller, i _should_ recompile kernel. > > > 2) When I have the new drive in and set up, how can I relocate my > > /usr/src files to the new larger slice on the second drive? My > > thought was this: mv the files currently in /usr/src to a temp > > directory, like /usr/srctemp. Then edit fstab to mount the new slice > > to /usr/src and mv the files from srctemp into the new src > > directory. Is this the right approach? I think yes, because, afaiu, no running processes depend on /usr/src. So i don't see why You can't do this. > It's important to remove the files under /usr/src before mounting the > file system in the correct place; otherwise you won't be able to > access them at all. Sorry, but You propose same way in other words. Way 1: a) move files from /usr/src to tmp-storage b) mount new fs to /usr/src c) move files from tmp to /usr/src Way 2: a) mount new fs on tmp-mountpoint b) move files there c) remount to /usr/src Something similar....:-) With respect, Alexander V Zubchenko, E-Mail: stalker@hermes-comp.zp.ua System Administrator, WWW: http://www.hermes-comp.zp.ua/ Hermes-comp, Ukraine, Zaporizhzhya, Geroev Stalingrada 50 phone/fax: +380 612 64-19-72 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message