From owner-freebsd-questions@freebsd.org Wed Oct 28 12:09:09 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 F1432A20703 for ; Wed, 28 Oct 2015 12:09:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.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 B73A51BE8 for ; Wed, 28 Oct 2015 12:09:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-13-119.dynamic.qsc.de [92.195.13.119]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id EDFA92789C; Wed, 28 Oct 2015 13:09:00 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t9SC90LX002550; Wed, 28 Oct 2015 13:09:00 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 28 Oct 2015 13:09:00 +0100 From: Polytropon To: "Ian Fitzgerald" Cc: Subject: Re: Adding 9.1 disk to 10.2 machine Message-Id: <20151028130900.4e2c8ac1.freebsd@edvax.de> In-Reply-To: <000901d11177$e4f559c0$aee00d40$@com.au> References: <000901d11177$e4f559c0$aee00d40$@com.au> 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: Wed, 28 Oct 2015 12:09:10 -0000 Your command output of On Wed, 28 Oct 2015 22:58:00 +1100, Ian Fitzgerald wrote: > gpart show: > [...] > => 63 1953525105 ada1 MBR (932G) > > 63 1953525105 1 freebsd [active] (932G) and > gpart list: > [...] > Geom name: ada1 > [...] > scheme: MBR > > Providers: > > 1. Name: ada1s1 > [...] indicate an MBR-style partitioned disk, containing one slice ("DOS primary partition") being formatted as a whole file system, therefore /dev/ada1s1c is the correct device name, and as 'c' can be omitted, /dev/ada1s1 is the device to mount. Checking with the old-fashioned tools fdisk and bsdlabel, you could have obtained the same information, but using gpart is much easier (and also recommended today). > Therefore, #mount -t ufs /dev/ada1s1 /disk2 mounted without apparent error, > and adding > > /dev/ada1s1 /disk2 ufs rw 2 > 2 > > to /etc/fstab > > > > has made the disk available at /disk2. Correct. > Are there any potential hazards with doing this? No, it's the proper approach to mounting such a disk for read and write operations. (If you only want to read from it, use "ro" instead of "rw" in the option field.) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...