I have a really weird problem.
This morning, I couldn't use startx from a regular user account.
I received the error
"PAM authentication failed, cannot start X server.
Perhaps you do not have console ownership?"
I searched for the error message on google, and came up with a variety of possible causes, varying by Linux version
(I am running RH Linux 8.0).
I found a bad problem, in that I could not write to the /var/run/console directory (even as root). It said I had run out of disk space. I did a df, and it said I had plenty of space. I started thinking comething wasn't right, so I
did a:
shutdown -rF
in order to force an fsck on reboot.
Sure enough, the /var device had a serious problem, and it asked me to do a manual fsck on it. I did so, it found a massive size problem with an inode, and asked if I wanted to truncate it, which I did. It then ran an inode check, and came up with about 80K+ unattached inodes, which it connected to the /lost+found directory. Each inode had a ref count of 2, which should be 1, and fixed each one.
I finally got a healthy fsck on the /var directory, and everything rebooted cleanly. The lost+found directory seemed rather large (16384 blocks), but otherwise everything looked good.
Now, I tried again from the beginning, and got the same problem. Could not startx, same error message, everything.
I went into /var/run/console, and tried to do
echo "hello" > base, and it had the same error:
-bash: base: No space left on device
df indicates plenty of space available on /var. I tried a little later, and it worked! (what's going on here?!?!?)
Then I tried again later, and got the same error message!
-bash: base: No space left on device.
I have been pulling my hair out, and could really use some help.
What's happening.....help!