You are not logged in.

#1 2009-08-06 18:42:37

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

X can't read lock file

After a recent update of X, following error occured by running startx:

Fatal Server error
can't read lock file /tmp/.X0-lock

Has anybody an idea how to solve this problem?

PS: sry for my bad english...

Offline

#2 2009-08-06 19:16:13

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: X can't read lock file

What are the permissions on /tmp? (ls -la /tmp)
Is there anything interesting in /var/log/Xorg.0.log?

Offline

#3 2009-08-06 19:59:55

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: X can't read lock file

Xorg.0.log shows nothing unusual.
Permissions for /tmp (the directory) are read write and execute for everyone.
On .X0-lock, ls says something like it can't access to the file because the nfs file-access-number is outdated (not exactly that wording but my OS speaks german)

Offline

#4 2009-08-07 11:51:28

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: X can't read lock file

I found out, that removing the lock file would solve the problem, but I cannot get rid of this stupid file!
I tried "rm -rf" I tried it with a live-cd, nothing worked. It says: Permission denied
Has anybody an idea how to get rid of this lock file?

Offline

#5 2009-08-07 18:45:51

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: X can't read lock file

Were you root? As root you should be able to do just about anything, unless that was the lock file it was currently using. I think.

Offline

#6 2009-08-07 19:39:48

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: X can't read lock file

Yep, I was root, and I'm wondering too....
I also tried to delete the file using the inode number, no success.


Everytime an application wants to access the file it gives me an: "stale nfs filehandle" message, but I don't even use nfs.

Last edited by x0rg (2009-08-07 19:41:49)

Offline

#7 2009-08-07 21:26:26

x0rg
Member
From: Switzerland
Registered: 2009-07-12
Posts: 116

Re: X can't read lock file

A fsck from partedmagic did solve the problem!

Offline

Board footer

Powered by FluxBB