From owner-freebsd-questions@FreeBSD.ORG Sun Jun 13 16:38:32 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 CE62B106566C for ; Sun, 13 Jun 2010 16:38:32 +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 916278FC1F for ; Sun, 13 Jun 2010 16:38:32 +0000 (UTC) Received: from r55.edvax.de (port-92-195-117-232.dynamic.qsc.de [92.195.117.232]) by mx02.qsc.de (Postfix) with ESMTP id 823EE1E2AC; Sun, 13 Jun 2010 18:38:31 +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 o5DGcUY1002344; Sun, 13 Jun 2010 18:38:30 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 13 Jun 2010 18:38:30 +0200 From: Polytropon To: "Xihong Yin" Message-Id: <20100613183830.f1cf8dd5.freebsd@edvax.de> In-Reply-To: <20100613024515.159000@gmx.com> References: <20100613024515.159000@gmx.com> 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: detached a mounted ufs filesystem 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, 13 Jun 2010 16:38:32 -0000 On Sat, 12 Jun 2010 22:38:15 -0400, "Xihong Yin" wrote: > 'fdisk /dev/da0' output is > > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 234436482 (114470 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 254/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > This indicates that at least the FreeBSD slice seems to be intact. Maybe it's "just" the label that's missing (and therefore, the partitions can't be accessed). > I tried 'fsck_ufs /dev/da0', it says > > ** /dev/da0 > Cannot find file system superblock > ioctl (GCINFO): Inappropriate ioctl for device > fsck_ufs: /dev/da0: can't read disk label You said there was also /dev/da0a, maybe you can check this partition? Make sure, for the first try, to use the -d flag (debug), so there are no changes to the file system. > I forget what layout the disk has. Normally I used /dev/da0s1d > to mount the disk. There should be more than one copy of the partition table on the disk. I'm not sure if I'm mixing up things here, but fsck_ffs also allows you to refer to a different superblock. Use # newfs -N /dev/da0a to print out superblock locations; this command will NOT create a file system! Use fsck_ffs -b to refer to a possible alternate superblock for checking. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...