Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2002 08:47:33 +0300 (EEST)
From:      Alexander V Zubchenko <stalker@hermes-comp.zp.ua>
To:        "Greg 'groggy' Lehey" <grog@freebsd.org>
Cc:        Corey Snow <corey@snowpoint.com>, <freebsd-questions@freebsd.org>
Subject:   Re: Adding hard drive, moving /usr/src
Message-ID:  <20020617084044.U9334-100000@server.hermes-comp.zp.ua>
In-Reply-To: <20020616020906.GJ65995@wantadilla.lemis.com>

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




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