From owner-freebsd-questions@FreeBSD.ORG Thu Feb 14 17:35:48 2008 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 1EF5916A418 for ; Thu, 14 Feb 2008 17:35:48 +0000 (UTC) (envelope-from jd1987@borozo.com) Received: from smtp.3dresearch.com (dorabella.3dresearch.com [66.167.251.2]) by mx1.freebsd.org (Postfix) with ESMTP id DE06E13C455 for ; Thu, 14 Feb 2008 17:35:47 +0000 (UTC) (envelope-from jd1987@borozo.com) Received: from fracasso.3dresearch.com (c-71-61-128-39.hsd1.pa.comcast.net [71.61.128.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vmail.3dresearch.com (Postfix) with ESMTP id D3593B64DE for ; Thu, 14 Feb 2008 12:35:46 -0500 (EST) Received: from fracasso.3dresearch.com (fracasso.3dresearch.com [10.61.70.2]) by fracasso.3dresearch.com (Postfix) with ESMTP id AB60217016 for ; Thu, 14 Feb 2008 12:35:45 -0500 (EST) From: Joe Demeny To: freebsd-questions@freebsd.org Date: Thu, 14 Feb 2008 12:35:42 -0500 User-Agent: KMail/1.9.7 References: <200802140108.35844.jd1987@borozo.com> <20080214100345.Y2841@wojtek.tensor.gdynia.pl> <200802140949.m1E9n5GG068404@banyan.cs.ait.ac.th> In-Reply-To: <200802140949.m1E9n5GG068404@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802141235.42906.jd1987@borozo.com> Subject: Re: Trying to recover data from FreeBSD 4.11 system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2008 17:35:48 -0000 On Thursday 14 February 2008 04:49:05 am you wrote: > > possibly try fsck - i don't know (my first FreeBSD was 5.*) but maybe UFS > > changed a bit? > > Nope, I have had machines that I upgraded from 4 to 5 and 6 without > changing the hard disk, and without changing the file system. > > > So, I installed this drive as the second hard drive in a FreeBSD 6.2 > > system and I tried to mount it, but I got "incorrect super block". > > With no old disk installed, what is your mounted disks/partitions? > Result of mount -p. Old disk is installed, but nothing is mounted from it: # mount -p /dev/ad0s2a / ufs rw 1 1 devfs /dev devfs rw 0 0 /dev/ad0s2e /tmp ufs rw 2 2 /dev/ad0s2f /usr ufs rw 2 2 /dev/ad0s2d /var ufs rw 2 2 > If you have it what was the result of mount -p on the old machine. I don't have that, unfortunately. > What is the result of "fdisk /dev/ad0" ? # fdisk /dev/ad0 ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=310101 heads=16 sectors/track=63 (1008 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 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX) start 63, size 40965687 (20002 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 40965750, size 271610955 (132622 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: The data for partition 4 is: > Install the old hard disk, what is the result of "fdisk /dev/ad1" ? # fdisk /dev/ad1 ******* Working on device /dev/ad1 ******* parameters extracted from in-core disklabel are: cylinders=13232 heads=15 sectors/track=63 (945 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=13232 heads=15 sectors/track=63 (945 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 12498507 (6102 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 777/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: -- Joe Demeny