From owner-freebsd-questions@FreeBSD.ORG Sun Aug 10 07:58:55 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 810B42B3 for ; Sun, 10 Aug 2014 07:58:55 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 27B7D24CF for ; Sun, 10 Aug 2014 07:58:55 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.9/8.14.9) with ESMTP id s7A7wlN8062729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 10 Aug 2014 08:58:48 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: lucid-nonsense.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk s7A7wlN8062729 Authentication-Results: smtp.infracaninophile.co.uk/s7A7wlN8062729; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral Message-ID: <53E72634.5050608@FreeBSD.org> Date: Sun, 10 Aug 2014 08:58:44 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: operation not permitted on entropy file References: <20140810070239.GA80734@home.parts-unknown.org> In-Reply-To: <20140810070239.GA80734@home.parts-unknown.org> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x4NMQJkVgkceh0K5CLjtDk65oaOXgN2fQ" X-Virus-Scanned: clamav-milter 0.98.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Aug 2014 07:58:55 -0000 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--