From owner-freebsd-questions Sun Aug 17 21:01:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA18844 for questions-outgoing; Sun, 17 Aug 1997 21:01:25 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id VAA18837 for ; Sun, 17 Aug 1997 21:01:17 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id OAA12896; Mon, 18 Aug 1997 14:00:43 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id NAA10226; Mon, 18 Aug 1997 13:30:42 +0930 (CST) Message-ID: <19970818133041.48542@lemis.com> Date: Mon, 18 Aug 1997 13:30:41 +0930 From: Greg Lehey To: Jason McKay Cc: questions@FreeBSD.ORG Subject: Re: Links References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: ; from Jason McKay on Mon, Aug 18, 1997 at 10:20:25AM +0800 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Aug 18, 1997 at 10:20:25AM +0800, Jason McKay wrote: > I have just installed a second hard disk on my FreeBSD machine, I have > moved the users directories to /drive2c (partition on second drive). > > How can I make a link, so when you change directory to /home it actually > goes to /drive2c/home? Do you already have a directory home? If so, do (as root): # mkdir /drive2c/home # cd / # tar cf - home | (cd /drive2c; tar xvf -) Now make very sure that everything has come across, then: # rm -rf /home After that, even if you didn't have a home: # ln -s /drive2c/home / BTW, I find drive2c a bad choice of name for a file system. What happens if you move it somewhere else? In general, your file system names shouldn't reflect the hardware configuration. You could, for example, call it /home :-) Greg