From owner-freebsd-questions@freebsd.org Sat Sep 5 04:09:38 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F7CD9CAF0A for ; Sat, 5 Sep 2015 04:09:38 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E71E1134A for ; Sat, 5 Sep 2015 04:09:37 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-125-111.dynamic.qsc.de [92.195.125.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 8B6E53CFD2; Sat, 5 Sep 2015 06:09:35 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t8549Z8m007167; Sat, 5 Sep 2015 06:09:35 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 5 Sep 2015 06:09:35 +0200 From: Polytropon To: "Ronald F. Guilmette" Cc: freebsd-questions@freebsd.org Subject: Re: Partitioning for a new system -- Third level mount point? Message-Id: <20150905060935.edfe52b9.freebsd@edvax.de> In-Reply-To: <83718.1441425623@server1.tristatelogic.com> References: <20150905031925.fd21458a.freebsd@edvax.de> <83718.1441425623@server1.tristatelogic.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Sep 2015 04:09:38 -0000 On Fri, 04 Sep 2015 21:00:23 -0700, Ronald F. Guilmette wrote: > > In message <20150905031925.fd21458a.freebsd@edvax.de>, you wrote: > > >On Fri, 04 Sep 2015 17:34:36 -0700, Ronald F. Guilmette wrote: > >> I'm setiing up a new system to run FreeBSD 10.2, and in the process > >> of doing a ``manual'' initial partitioning of the main drive for > >> this new system, I attempted to create a partition for which I > >> specified a mount point of: > >> > >> /var/ftp/private > >>.. > >> Anyway, I was shocked to see... after doing the create step... that > >> this new partition is listed in the partitions list as having a mount > >> point of just: > >> > >> /var/ftp > >> > >> which is definitely not what I wanted. > > > >Maybe this happened because the desired mountpoint /var/ftp/private > >didn't exist yet, so /var/ftp was being used? > > AHHHHHHH! Yes. Perhaps that is the explanation. > > However please note that the directory /var/ftp did not exist yet at the > time that I was setiing up my partitions, and yet the partitioning tool > graciously and automagically inferred (correctly) that I wanted to have > that created for me... since I clearly planned to use it as a mount point. > (And since I elected... because of the problem in using /var/ftp/private... > to make /var/ftp a partition instead, I _can_ say with some certainty > that the install-time manual partitioning tool did in fact cause that > (/var/ftp) to be created... or at any rate, something did. Another guess: The directory /var/ftp is part of the installation process, whereas /var/ftp/private is not. Maybe the installer did rely on what would be created when the directory structure is going to be initialized? Just a guess, I'm not entirely sure. I didn't see /var/ftp in the corresponding /etc/mtree/BSD.var.dist, but I think I remember that ye olde installer (sysinstall) did create that directory when you selected "FTP" as a service; this process would also create the sub directories etc/, incoming/, and pub/ in /var/ftp and apply the required permissions. > So anyway, I do believe that I will file a PR on this. I think that the > partitioning tool should be gracious in all cases, and should create > directories, as necessary (and however many levels are necessary) in > order to accomodate the user's stated preferences with respect to mount > points of partitions that are being created. That's correct, but it should _notify_ the user about anything nonstandard. A custom directory that would not be created by the installation would be such a thing not to do silently. > >However, if you create /var/ftp/private and then edit the entry > >in /etc/fstab for that partition, things should work as inteded. > > Too tedious. > > (As I get older, and closer to death, I am more inclined to use GUIs > rather than command line tools. It's not that I'm lazy. It's that > I'm in a hurry.) Especially that's why you should use the command line - it's commonly a much faster (and more direct) approach for such kind of tasks. Create a directory, edit a file - both things are usually faster done with good CLI or text mode tools (mkdir, and your favourite text editor). # mkdir /v[tab]f[tab]private[enter] # vi /etc/fstab /ftp[enter] [i] ... do the editing ... [esc] :wq[enter] I would hesitate to descrive the pictures and the movements to perform the same task. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...