Subject: Find super-block backups
To: None <NetBSD-help@NetBSD.org>
From: Johan =?utf-8?Q?Kr=C3=BCger-Haglert?= <aliquis@link-net.org>
List: netbsd-help
Date: 01/02/2006 17:59:21
--QKdGvSO+nmPlgiQ/
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I have (had) a NetBSD 2.x machine using a 40GB drive and ffsv2.
However something failed and I get errors like these on the console:

Jan  2 13:20:00  /netbsd: wd1a: error reading fsbn 128 of 128-143 (wd1 bn
191; cn 0 tn 3 sn 2), retrying
Jan  2 13:20:00  /netbsd: wd1: (uncorrectable data error)

Jan  2 13:21:51  /netbsd: wd1a: error reading fsbn 128 of 128-255 (wd1 bn
191; cn 0 tn 3 sn 2), retrying
Jan  2 13:21:51  /netbsd: wd1: (uncorrectable data error)

Jan  2 13:23:23  /netbsd: wd1a: error reading fsbn 125 of 125-128 (wd1 bn
188; cn 0 tn 2 sn 62), retrying
Jan  2 13:23:23  /netbsd: wd1: (uncorrectable data error)

Jan  2 13:23:32  /netbsd: wd1a: error reading fsbn 128 of 125-128 (wd1 bn
191; cn 0 tn 3 sn 2), retrying
Jan  2 13:23:32  /netbsd: wd1: (uncorrectable data error)
Jan  2 13:23:34  /netbsd: wd1a: error reading fsbn 128 of 125-128 (wd1 bn
191; cn 0 tn 3 sn 2)wd1: (uncorrectable
data error)

I've installed NetBSD 3.0 on another drive and been able to mount and copy
everything i want except the a-partition, I've tried to run fsck on it but
that couldn't find the super-block.

Disklabel returns:
# disklabel wd1
# /dev/rwd1d:
type: unknown
disk: Maxtor 6E040L0
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 79656
total sectors: 80293248
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   1049328        63     4.2BSD   1024  8192 43728  # (Cyl.      0*-   1=
041*)
 b:   1049328   1049391       swap                     # (Cyl.   1041*-   2=
082*)
 c:  80293185        63     unused      0     0        # (Cyl.      0*-  79=
655)
 d:  80293248         0     unused      0     0        # (Cyl.      0 -  79=
655)
 e:  16778160   2098719     4.2BSD   1024  8192 46872  # (Cyl.   2082*-  18=
727*)
 f:   4195296  18876879     4.2BSD   1024  8192 46616  # (Cyl.  18727*-  22=
889*)
 g:  53024832  23072175     4.2BSD   1024  8192 46928  # (Cyl.  22889*-  75=
493*)
 h:   4196241  76097007     4.2BSD   1024  8192 46632  # (Cyl.  75493*-  79=
655)

Are there any way I can figure out the position of one of the backup
super-blocks? Or am I screwed anyway? It's not the end of the world if I
can't fix this but it would be nice to have some of the files from /etc.

Thanks in advance.
--=20
   ______  __     __  ____  _____  __  _____   Johan Kr=C3=BCger-Haglert
  (___  :\/  \___/  \/    \/  /  \/  \/  ___)  <aliquis@link-net.org>=20
   /  .   \  /   )  /  /  /  /   /   /___  .:\ Phn: +46 (0)8  5000 7099
  (________)____/__/\__\\/\_____/\__/\_______/      +46 (0)76 26 30 999
  GPG: 0x18D55ECE  (2408 6110 63CC D22C CC31  77E5 5736 3C7F 18D5 5ECE)

--QKdGvSO+nmPlgiQ/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDuVvpVzY8fxjVXs4RAivHAKDnUtx5JWoiSS7ZjZu10Xjsjek7QACg3UWp
QWKwdI7mtlwOjGBvtuLU6WA=
=7/uw
-----END PGP SIGNATURE-----

--QKdGvSO+nmPlgiQ/--