From owner-freebsd-questions@FreeBSD.ORG Sun Jan 8 22:00:08 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 68C1D106567A for ; Sun, 8 Jan 2012 22:00:08 +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 282938FC13 for ; Sun, 8 Jan 2012 22:00:07 +0000 (UTC) Received: from r56.edvax.de (port-92-195-26-82.dynamic.qsc.de [92.195.26.82]) by mx02.qsc.de (Postfix) with ESMTP id 63E1A1EACC; Sun, 8 Jan 2012 23:00:06 +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 q08M05w2002768; Sun, 8 Jan 2012 23:00:05 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 8 Jan 2012 23:00:05 +0100 From: Polytropon To: rvclayton@verizon.net (R. Clayton) Message-Id: <20120108230005.f5856dd1.freebsd@edvax.de> In-Reply-To: <20120108211338.AD33F5DC4@UlanBator.myhome.westell.com> References: <87zkdy6kxi.fsf@UlanBator.myhome.westell.com> <20120108205137.a0bf2877.freebsd@edvax.de> <20120108211338.AD33F5DC4@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 22:00:08 -0000 On Sun, 08 Jan 2012 16:13:38 -0500 (EST), R. Clayton wrote: > Thanks for your reply to my message. > > you can address the partitions on that slice (da0s4) like you would access them > on FreeBSD. > > "mount /dev/da0s4a" didn't work. However, looking in dmesg I saw > > WARNING: R/W mount of /mnt/backups denied. Filesystem is not clean - run fsck If you're intending to copy data FROM the disk, i. e. you want to _recover_ data, do _not_ mount something R/W (because you don't have to). Always use "-o ro", at least in early stages. The denial of the mount is justified due to file system errors which are correctly detected (and then corrected by fsck). > After running "fsck -t ufs /dev/da0s4", "mount /dev/da0s4a" still didn't > work, but > > # mount /dev/da0s4 mnt > > did work: > > # cat mnt/angkor-wat/etc/fstab > # fs-spec mount-point type options frequency pass-no > /dev/wd0a / ffs rw 1 1 > /dev/wd0h /home ffs rw,nodev,nosuid 1 2 > /dev/wd0d /tmp ffs rw,nodev,nosuid 1 2 > /dev/wd0g /usr ffs rw,nodev 1 2 > /dev/wd0e /var ffs rw,nodev,nosuid 1 2 > /dev/sd0a /mnt/backups ffs rw,nodev,nosuid 1 2 > /dev/sd0d /mnt/storage ffs rw,nodev,nosuid 1 2 > /dev/cd0a /cdrom cd9660 ro,noauto 0 0 > > # > > However, I can only mount the sd0a (OpenBSD) partition; [...] That is the root partition /, and suffixes d, e, g, h should be available. > [...] the sd0d partition is > nowhere to be found: > > $ sudo fsck -t ufs /dev/da0s4d > ** /dev/da0s4d > Cannot find file system superblock > ioctl (GCINFO): Inappropriate ioctl for device > fsck_ufs: /dev/da0s4d: can't read disk label > > $ > > On the other hand, > > $ sudo fsck -t ufs /dev/da0s4a > ** /dev/da0s4a > Cannot find file system superblock > ioctl (GCINFO): Inappropriate ioctl for device > fsck_ufs: /dev/da0s4a: can't read disk label > > $ > > so maybe the partition names are wrong. Can you obtain partitioning information via bsdlabel (disklabel) for the s4 slice to check if FreeBSD can identify the other partitions properly. If you visit the mailing list archives, you will find hints to procedures and software to do a deeper analysis of the structures that need to be accessed, such as disk labels, file system data and other stuff. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...