From owner-freebsd-questions@FreeBSD.ORG Sun Jan 8 19:51:40 2012 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 1E65C106564A for ; Sun, 8 Jan 2012 19:51:40 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id D0EA88FC08 for ; Sun, 8 Jan 2012 19:51:39 +0000 (UTC) Received: from r56.edvax.de (port-92-195-26-82.dynamic.qsc.de [92.195.26.82]) by mx01.qsc.de (Postfix) with ESMTP id 270803CEE6; Sun, 8 Jan 2012 20:51:37 +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 q08JpbDc002413; Sun, 8 Jan 2012 20:51:37 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 8 Jan 2012 20:51:37 +0100 From: Polytropon To: rvclayton@verizon.net (R. Clayton) Message-Id: <20120108205137.a0bf2877.freebsd@edvax.de> In-Reply-To: <87zkdy6kxi.fsf@UlanBator.myhome.westell.com> References: <87zkdy6kxi.fsf@UlanBator.myhome.westell.com> 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 Cc: freebsd-questions@freebsd.org Subject: Re: OpenBSD disk on FreeBSD. 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: Sun, 08 Jan 2012 19:51:40 -0000 On Sun, 08 Jan 2012 14:42:01 -0500, R. Clayton wrote: > The OpenBSD fstab is gone, and the backup copy is (of course) on the disk I > want to mount. How do I go about mounting this disk on FreeBSD? The following > don't work: > > # mount /dev/da0 mnt > mount: /dev/da0 : Invalid argument > > # mount /dev/da0s4 mnt > mount: /dev/da0s4 : Operation not permitted According to http://www.openbsd.org/faq/faq14.html you can address the partitions on that slice (da0s4) like you would access them on FreeBSD. # mount -o ro -t ufs /dev/da0s4a /mnt This will give you the root partition. Other partitions can be mounted separately (or in sequence, after unmounting /mnt), or they can be mounted into the /mnt tree to their original locations, e. g. # mount -o ro -t ufs /dev/da0s4e /mnt/tmp # mount -o ro -t ufs /dev/da0s4f /mnt/var # mount -o ro -t ufs /dev/da0s4g /mnt/usr # mount -o ro -t ufs /dev/da0s4h /mnt/home I would suggest you _first_ mount each partition individually and see from its content what it has been designated to. If you can find a copy of the original /etc/fstab somewhere on one of the partitions, you can use its content to avoid guessing. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...