Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2006 18:09:16 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>
Cc:        Randy Bush <randy@psg.com>, FreeBSD Stable <freebsd-stable@freebsd.org>, Robert Watson <rwatson@freebsd.org>
Subject:   Re: 5 to 6
Message-ID:  <453CF73C.4080507@infracaninophile.co.uk>
In-Reply-To: <20061023060431.GA3186@duncan.reilly.home>
References:  <17719.43574.819134.370333@roam.psg.com>	<20061020005501.R32598@fledge.watson.org> <20061023060431.GA3186@duncan.reilly.home>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig2BD6D660583A23C2C8DB03BC
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Andrew Reilly wrote:

> [*] The production server is using a software RAID mirror on
> a pair of SATA drives on a low-end Intel P4/ICH6 motherboard,
> using ar(4), configured by atacontrol.  Fsck on 6.x can't find
> any superblocks on /usr, but 5.5 is fine.

It's a horrible hack, and you should definitely have good backups
before trying this and there's no guarantee it will even work, but...

    tunefs -A {mumble} /dev/ad0s1a

will re-write all of the superblocks on your disk partition.  For
{mumble} I used '-n enable' (ie. turn on softupdates), which happened to
be a no-op on that system, but you could use practically anything tunefs
provides.

The problem I had was sort of going in the other direction though: I'd
booted fixit mode from a 6.1 Install disk in order to transfer the
contents of a failing 4.x system disk to a new drive, and while I could
slice, partition and create UFS1 filesystems perfectly happily under 6.1
and use 6.1 dump and restore to copy the disk contents, on reboot 4.x
couldn't read the superblocks properly, so the system wouldn't fsck
properly and get past single user mode.  The trick of using 'tunefs -A'
fixed that, and the machine is now running 4.11-RELEASE-p25 perfectly
happily on the replacement hard drive.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW


--------------enig2BD6D660583A23C2C8DB03BC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFPPdC8Mjk52CukIwRCBzjAJ9xyOA58PCYPceBoRZTSM9BZPNy8ACeOPjz
LB83tifbc2E4hOIGd/aNV9I=
=70nu
-----END PGP SIGNATURE-----

--------------enig2BD6D660583A23C2C8DB03BC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?453CF73C.4080507>