This is a really weird problem that I have never seen before. It first started this morning when I turned the system on. Then I found that I could not log in. I was getting this error:
So I tried logging into the console as root, same error. I rebooted the machine to single user mode and ran
Some of the errors that
partially allocated inode
invalid link count
unexpected soft-updates inconsistency
After the run, it told me that the filesystem was marked dirty and to run
The system is running fine now, but I am wondering what caused the problem in the first place and how to prevent it in the future?
Code:
/usr/bin/login: Permission Denied
So I tried logging into the console as root, same error. I rebooted the machine to single user mode and ran
fsck
with the journal and no problems found. I ran fsck
again without the journal on my /usr partition and it found a whole bunch of errors. It all seemed to be centered on corrupted i-nodes. When it went into the file tree, everything was centered on /usr/bin. When all was said and done, a number of programs from /usr/bin went missing. I was able to copy a number of programs from the make buildworld
obj directory so that I could get make installworld
to run to restore the system.Some of the errors that
fsck
encountered were:partially allocated inode
invalid link count
unexpected soft-updates inconsistency
After the run, it told me that the filesystem was marked dirty and to run
fsck
again. I have never seen that before either.The system is running fine now, but I am wondering what caused the problem in the first place and how to prevent it in the future?