From owner-freebsd-questions Tue Mar 26 2: 0:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id 47CC037B41B for ; Tue, 26 Mar 2002 02:00:07 -0800 (PST) Received: from localhost (localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.11.6/8.11.6) with ESMTP id g2Q9nod99701; Tue, 26 Mar 2002 01:49:50 -0800 (PST) (envelope-from andrsn@andrsn.stanford.edu) Date: Tue, 26 Mar 2002 01:49:49 -0800 (PST) From: Annelise Anderson To: Nick Lozinsky Cc: "P.B. Ruiter" , Peter Leftwich , FreeBSD Questions Subject: Re: /usr/home on separate disk? In-Reply-To: <3CA03BB8.6E181D71@wi.rr.com> Message-ID: 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 On Tue, 26 Mar 2002, Nick Lozinsky wrote: > No, no, no...when you are trying to link a device from /dev, you just specify > the device, so do this: > > ln -sf /dev/ad1s1e /usr/home > > "P.B. Ruiter" wrote: > > > I tried > > > > ln -sf /dev/ad1s1e/usr/home /dev/ad0s1g/usr/home > > > > which is an Operation Not Supported. How can I distinguish /usr/home on ad1 > > from /usr/home on ad0? > > > > ----- Original Message ----- > > From: "Peter Leftwich" > > To: "P.B. Ruiter" > > Cc: "FreeBSD Questions" > > Sent: Tuesday, March 26, 2002 1:30 AM > > Subject: Re: /usr/home on separate disk? > > > > | On Tue, 26 Mar 2002, P.B. Ruiter wrote: > > | > Hi, I just installed a new freebsd box with two ide drives. As I intend > > to use this as dedicated file/print/samba server on a mixed small office > > network, I thought it a good idea to dedicate one drive to /usr/home. I > > installed 4.5-Release as such with default settings for drive 0 and a single > > slice /usr/home on drive 1 (and swap on both). > > | > Filesystem 1K-blocks Used Avail Capacity Mounted on > > | > /dev/ad0s1a 128990 31748 86924 27% / > > | > /dev/ad0s1f 257998 4 237356 0% /tmp > > | > /dev/ad0s1g 9044900 786382 7534926 9% /usr > > | > /dev/ad1s1e 19099614 20 17571626 0% /usr/home > > | > /dev/ad0s1e 257998 738 236622 0% /var > > | > I realize there is already a /usr/home under /usr. How do I get rid of > > this and point it to my /usr/home on ad1s1e? I tried rmdir /home within > > /usr - this only gave me a busy reply. Please help... > > | > Pieter > > | > > | Assuming both drives are mounted okay, and I don't know much about Samba - > > | especially if it "honors" or "comprehends" symbolic links, but you could > > | always do something like `ln -sf /dev/ad1s1e /dev/....` etc. > > | > > | man ln > > | > > | Hope this helps in no small way ;-) > > | When you mount /usr/home on the other drive (e) it makes the previous /home on /usr inaccessible, as far as I know, but does not destroy it. You can experiment by putting a unique file in your /usr/home on ad1s1e. Without ad1s1e mounted, you should be able to get to the /usr/home on ad0s1g. You could try mv'ing the home to a new name to see if you still see it after /usr/home is mounted (thus enable you to move some stuff if you like). Once you start playing with fstab, though, it is good to have a strategy for getting back in and fixing things in case you get into an unbootable situation, e.g., home directory does not exist. The symbolic link for home (to /usr/home) should work for either situation and need not be changed, it seems to me. I have a couple systems where I use /usr/local (including /usr/local/home) as a separate file system, so the various ports as well as my home directory get installed there and the base systems stays relatively in its original state (and can thus be upgraded from scratch without disturbing home directories or installed software. It depends on what you want to do. Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: BSDmall.com and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message