From owner-freebsd-questions@FreeBSD.ORG Fri Apr 9 13:01:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD3AA106564A for ; Fri, 9 Apr 2010 13:01:15 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6D1368FC14 for ; Fri, 9 Apr 2010 13:01:15 +0000 (UTC) Received: from r55.edvax.de (port-92-195-157-218.dynamic.qsc.de [92.195.157.218]) by mx02.qsc.de (Postfix) with ESMTP id 903631E60F; Fri, 9 Apr 2010 15:01:13 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o39D1Cvx002933; Fri, 9 Apr 2010 15:01:12 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 9 Apr 2010 15:01:12 +0200 From: Polytropon To: Programmer In Training Message-Id: <20100409150112.4eb23eda.freebsd@edvax.de> In-Reply-To: <4BBF2132.5010204@joseph-a-nagy-jr.us> References: <4BBE5ACB.3010601@joseph-a-nagy-jr.us> <20100409074803.10a4edde.freebsd@edvax.de> <4BBF2132.5010204@joseph-a-nagy-jr.us> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Adding a Disk and Changing Mountpoints X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 13:01:15 -0000 On Fri, 09 Apr 2010 07:44:34 -0500, Programmer In Training wrote: > Thank you for the detailed response. Without knowing any of that, I > would have totally messed up. I'll be printing out the email so I have > it handy on Saturday. I made a mistake. Please check and correct this in your hardcopy. In the example for copying the home directories, I wrote: # mount -o ro /dev/ad0s1f /usr # mount -o ro /dev/ad2s1e /home The second -o ro is wrong, has to be -o rw, because you're writing to this partition in the next step: # mount -o ro /dev/ad0s1f /usr # mount -o rw /dev/ad2s1e /home The basic idea is to work with least dangerous permissions, so if you're going to read files from a partition, -o ro is sufficient. But of course it's not sufficient for writing. :-) And for the final /etc/fstab, this is wrong: /dev/ad0s1d /tmp ufs rw 2 2 /dev/ad0s1e /scratch ufs rw 2 2 It would have to be: /dev/ad0s1d /scratch ufs rw 2 2 /dev/ad0s1e /tmp ufs rw 2 2 becausse /dev/ad0s1d previously was /var. In any case, as you're working with maximum privileges on file systems, pay attention to device names and directories. Triple-check them. Always. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...