Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2018 15:17:38 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        FreeBSD Filesystems <freebsd-fs@FreeBSD.org>
Subject:   boot2 / loader can not check superblock checksum and refuse to boot,  but fsck_ffs doesn't see problems
Message-ID:  <ed7fc03e-4601-1cff-5293-d3852ba25bd0@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--1cwqErtmxte5NtSHi5LKjm1CoBVrOAqI7
Content-Type: multipart/mixed; boundary="q2AtePnIb2eUryp8qRnFQWJ7GSQbVWBYL";
 protected-headers="v1"
From: Lev Serebryakov <lev@FreeBSD.org>
Reply-To: lev@FreeBSD.org
To: FreeBSD Filesystems <freebsd-fs@FreeBSD.org>
Message-ID: <ed7fc03e-4601-1cff-5293-d3852ba25bd0@FreeBSD.org>
Subject: boot2 / loader can not check superblock checksum and refuse to boot,
 but fsck_ffs doesn't see problems

--q2AtePnIb2eUryp8qRnFQWJ7GSQbVWBYL
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable


 I have NanoBSD image built from head/r339933, which passes all checks
on other system: "fsck_ffs" passes, it could be mounted without
problems, everything could be read.

 But when I try to boot from it, boot2 (or loader?) complains about
failed superblock checksum several times (for each copy?), like this:

Superblock check-hash failed: recorded check-hash 0xcfa0ae67 !=3D compute=
d
check-hash 0x21993fb

 ALL these messages contains SAME "recorded" and "compuded" hashes, so
it doesn't look like corrupted flash.

 Looks like boot2/loader wrongly calculate hash...

--=20
// Lev Serebryakov


--q2AtePnIb2eUryp8qRnFQWJ7GSQbVWBYL--

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

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAlva7uJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5
NkQxQ0EwQjVGNDMxOEI2NzRCMzMwQUVBQjAzQzU4QkZEQzQ3OEYACgkQ6rA8WL/c
R4+y7Q/+JpD32Cr2tce70/3SVpwAdmnMXR8ipGKVRjZU0szfSKywbQ11ejm5sHQ9
OfVqKAk6LcTsoF6HcywttQP4PHZnc3sVLH8eKhff7Lk8fh/DVs06hQTKVKNcabwR
EqbKvlhJ7JzJ7aBGc/c7CX7+tQFU9HdS9SKftmlMJmPvozvP1p8zwwQn8E16EvUL
dgGJ/qdFeb2q1CGILKXOEm1+tSTRznLxxZEdeDSkZtxzNNfmtiqqeq4u0NB7ktW1
KZvp8fC+H/CNjPDiMio/+p8X98oEoCIh1vwpYcnCffIXABxNZ5DRbwK1HTgr0e0p
1oXPyQC+lhpBASIHTKLGawlF+lITXMpW6FSP+kHRDGmTEGEKarymUh42n+7MNTht
sXyFn77a8etOXkyAeLPAWUgEsUfDSxlxfYbXKXk9wKsMJr8loCX9QGxu6yemXfs/
bsB60NYhjQemLpubf5XrC9X790esCzPLN67gIokpeQQXNEzLkMRdDkI1AjY3K/6f
lRkDnxQ24CD61xxTwTHB2gyu/OoHNqDFDryrx2XDhJgN/XA5Ul/uONE1FgMoqh/e
Nx4tJkpkpLs4CivT9pmYkezB0tYVptD+0oNo/+vORn7VuGbPAmW5hwHiCxm2Je9d
SikF65yAoCyCvcsEcF2bg+4flbPeUBDir8mRhzv+1IcOw/nWxHk=
=VefH
-----END PGP SIGNATURE-----

--1cwqErtmxte5NtSHi5LKjm1CoBVrOAqI7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ed7fc03e-4601-1cff-5293-d3852ba25bd0>