Date: Thu, 14 Feb 2008 12:35:42 -0500 From: Joe Demeny <jd1987@borozo.com> To: freebsd-questions@freebsd.org Subject: Re: Trying to recover data from FreeBSD 4.11 system Message-ID: <200802141235.42906.jd1987@borozo.com> In-Reply-To: <200802140949.m1E9n5GG068404@banyan.cs.ait.ac.th> References: <200802140108.35844.jd1987@borozo.com> <20080214100345.Y2841@wojtek.tensor.gdynia.pl> <200802140949.m1E9n5GG068404@banyan.cs.ait.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <UNUSED> The data for partition 4 is: <UNUSED> > 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: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> -- Joe Demeny
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802141235.42906.jd1987>