LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-01-2005, 12:22 AM   #1
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
can't read lock file


after a few months away from my slak box, when i try startx, am getting error
Code:
Can't read lock file /tmp/.X0-lock
any ideas, or answers ?

Thanks
 
Old 12-01-2005, 01:43 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
As root
init 1
rm /tmp/.X0-lock


Cheers,
Tink
 
Old 12-01-2005, 07:53 AM   #3
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Of course you can't read it, it's a lock file LOL.

Get rid of it. just get root and rm -rf it
 
Old 12-01-2005, 08:37 AM   #4
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
Thanks guys!
as root and with
"rm /tmp/.X0-lock"
i get "permission denied"
so i did th eol ls -l /tmp/.X0-lock
and i get "permission denied"

I'm at work via ssh to this box, opened mc(midnight commander)
it shows this file as

Code:
?.X0-lock_____size 0____date Jan 1 1970
Holy crap!
 
Old 12-01-2005, 08:45 AM   #5
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Hi, use rm -rf so rm will not ask you questions.

YOu can also try to change the permissions:

Code:
chmod +777 /tp,/.XO-lock
If this don't work try the above solution of entering the single user mode (init 1) or even better, try to enter linux as single user from the boot prompt:

Code:
boot: linux init=/bin/bash
Be careful, as you have root permissions and no PAM or any other security mechanism running.

Another approach would be using a LiveCD or the rescue disk. Then you will only have to remember where you placed your /tmp partition and mount it.
 
Old 12-01-2005, 09:02 AM   #6
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
Will try when i get home. Thanks a bunch !
Single usermode / init 1 cut me off from ssh
Bummer.
 
Old 12-01-2005, 09:55 PM   #7
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
tried all the above and nothing
with rm -rf i get the permission denied, along with cannot lstat

even when i try
ls -al
i get permission denied for that file


this is getting to suk
gonna put up some christmass lights or something
but i think i'll get nowhere there too

Last edited by spooge; 12-01-2005 at 10:01 PM.
 
Old 12-01-2005, 11:25 PM   #8
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
problem not solved, but X is up.

/tmp wasn't a partition, so i was able to rename it, and create another /tmp

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to lock a file satimis Linux - General 2 03-09-2005 06:50 PM
Can't read lock file /tmp/.X0-lock squinn Linux - Newbie 3 07-13-2004 04:42 PM
Lock file ust Linux - Software 1 10-11-2003 03:11 AM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 08:23 PM
red !lock file blistfix Linux - General 0 08-28-2001 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration