Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Aug 2014 08:58:44 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: operation not permitted on entropy file
Message-ID:  <53E72634.5050608@FreeBSD.org>
In-Reply-To: <20140810070239.GA80734@home.parts-unknown.org>
References:  <20140810070239.GA80734@home.parts-unknown.org>

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

On 10/08/2014 08:02, David Benfell wrote:
> Something seems very much to have gone awry:
>=20
> home# ls -al /var/db/entropy=20
> total 40
> drwx------   2 operator  operator      512 Aug  9 23:55 .
> drwxr-xr-x  23 root      wheel        1024 Aug  9 22:49 ..
> -r--------   1 operator  operator     2048 Aug  9 23:55
> saved-entropy.1
> -r--------   1 operator  operator     2048 Aug  9 23:44
> saved-entropy.2
> -r--------  23 operator  4194309   9308160 Aug  9 22:00
> saved-entropy.7
> home#=20
>=20
> Notice the group assigned to that saved-entropy.7 file. I assume the
> ownership should be operator:operator, but I can't change it. I can't
> remove it. I always get 'operation not permitted'.
>=20
> Looking around on the Internet, I found a suggestion to do:
>=20
>         chflags -R noschg
>=20
> So I tacked the filename/path on the end of it, and ... still ... got
> 'operation not permitted'.
>=20
> I assume this is getting in the way of something. Now what?
>=20

Looks like your bad memory stick has resulted in some corruption being
written to your filesystems.

What you need to do here is reboot into single user mode (or boot from
install media into a shell) and run fsck(8) on your partitions
repeatedly until fsck reports a clean filesystem.  The commands will be
something like:

    # fsck -f /dev/ada0p1

where you should substitute the correct device name for each of your UFS
filesystems.  Those can be read from /etc/fstab.  Repeat running fsck on
each partition until they come up clean, then do the next one.

You have to do this with the partition unmounted, or at least mounted
read-only (which is what booting into single user gives you: a way to
fsck the root partition you just booted from...)

fsck will tend to ask you a lot of questions: most of the time you want
to say 'yes' to those questions, but be aware that sometimes that can
result in deleting files.  Have good backups, and ask again here if in
any doubt.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJT5yY2XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATA+UP/jQerqgB+YEC8c1JelpowFs/
NaI/AmCJFobn6MIeTh7ZutTk0ECBLJLhDiRWkiqkHRLlHMYW3YTD8jvflhCVA2dH
RXHKB9qvHGjXaYRT3EriOLvN/uZgautjcYgJ+ZPYYUnrqsEVTe2nexU0g9+XUdJY
/w0O9AfUtVqg1SozhxlhDbWTTIIxm/TjHJeXa5K2uwPNfMv3zg1YFziq0Hb7vv/G
4Ftf0jVNyYKE15Ro4dTko0mW9pEPopYKpFAU8nsX7gzX7lp2YLF0AVigVfjvLmZz
oFmLmLM6qTwYX10TAzxIRH71W3DSIHUvsXIgMqxdNJnKN9akFpAL2IJPLWuxGttv
auX1PwPWg4lVi43sj4zKp+N2/9ro9EPUxYUMp1Ngm8FALlgY66OPsIAMwlJjA5ap
d7GG9rfwb3BxgOlbX/6oMo6CLFoNEV2LcBcdiJ4INT7Ma52BQQB3JcKk1iXl0kmb
OBQen7XKpn9jOErlzBweaes8DAbDO0I+MlwIKEu4OAQ7foXvclsQad1aaIJELR1R
WGawUvZiICmmUOiBUmdRVJi2+oohWvVfqmcZq5uyVJG6OX21K9DhEaqQrO292Gok
/OHnRmuo6weM2wwtnIG0lpLRS6ADmCGzHY1hFabg+dRF1gQ8AoXeIav3VWBjfhDW
TlCu7e9cY6jqIp6IXQqf
=Ir6P
-----END PGP SIGNATURE-----

--x4NMQJkVgkceh0K5CLjtDk65oaOXgN2fQ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53E72634.5050608>