From owner-freebsd-questions@FreeBSD.ORG Tue Aug 15 16:11:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B36E16A4DE for ; Tue, 15 Aug 2006 16:11:48 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6077E43D73 for ; Tue, 15 Aug 2006 16:11:46 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.136] (helo=anti-virus01-07) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1GD1W4-0008Vk-KN; Tue, 15 Aug 2006 17:11:44 +0100 Received: from [82.41.35.166] (helo=[192.168.0.2]) by asmtp-out4.blueyonder.co.uk with esmtp (Exim 4.52) id 1GD1W3-0001Zi-Pk; Tue, 15 Aug 2006 17:11:43 +0100 Message-ID: <44E1F23F.5040304@dial.pipex.com> Date: Tue, 15 Aug 2006 17:11:43 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Odhiambo Washington References: <20060815154143.GN69670@ns2.wananchi.com> In-Reply-To: <20060815154143.GN69670@ns2.wananchi.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Stupid question about mountpoints and fstab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 16:11:48 -0000 Odhiambo Washington wrote: >Hello people, > >I have never figured out something like this can be done, but today I >see it. We have purchased s co-lo server. They have installed it and >given me access to "do whatever you want with the box", but their >fstab has left me thirsty, wanting to know what's going on ... > > >sp2817a# less /etc/fstab ># Device Mountpoint FStype Options Dump Pass# >/dev/ad0s1g /home ufs rw 2 2 >/dev/ad0s2 /home ufs rw 2 2 > > >sp2817a# df -h >Filesystem Size Used Avail Capacity Mounted on >/dev/ad0s1g 15G 22K 13G 0% /home >/dev/ad0s2 72G 22K 66G 0% /home > > >Now, if someone can explain to me what the hell is being done with >/home in this server... ;) > > In short, IMHO, they've cocked it up! It's quite possible to mount two different (or even the same) disk partitions on the same mountpoint. It would certainly be a valid thing to do if the union flag were specified. Otherwise, I strongly suspect that only the last disk mounted will be written to, but you could create a file under /home and see what grows with df. I suggest pointing ad0s1g at /home2 (which you'll have to create) then umount /home twice, then mount /home and /home2. Or, instead of /home2 perhaps /usr/local, but you'd have to go via a temporary mountpoint and copy existing /usr/local to it. Finally (or do nothing but) complain! I've seen worse. The last (Linux) colo we got, had 60+Gb for /var and 5Gb for /home - completely backwards! --Alex