operation not permitted on entropy file

Matthew Seaman matthew at FreeBSD.org
Sun Aug 10 07:58:55 UTC 2014

On 10/08/2014 08:02, David Benfell wrote:
> Something seems very much to have gone awry:
> home# ls -al /var/db/entropy 
> 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# 
> 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'.
> Looking around on the Internet, I found a suggestion to do:
>         chflags -R noschg
> So I tacked the filename/path on the end of it, and ... still ... got
> 'operation not permitted'.
> I assume this is getting in the way of something. Now what?

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.



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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20140810/85d11cb5/attachment.sig>

More information about the freebsd-questions mailing list