KnotMan33
Posts: 3
Joined: Tue Mar 05, 2013 8:53 pm

Error Message while running Startx command[solved]

Tue Mar 05, 2013 9:08 pm

Hello, I just received my Pi and am very new to Linux and am having lots of trouble starting my Pi.
i am able to start it and go through the Config process. However then when I try to run the startx command it runs for a few Seconds pauses then gives me the error message
(Running Newest Wheezy version on a brand new board)
"Fatal server error:
could not create lock file in /inp/.1xd-lock


Please consult the X.org Foundation support
at http://wiki.x.org
for help

(I cannot read first letter of the first word of the following with the Screen i am Using but the rest is)
init: giving up
init: unable to connect to X server: Bad file descriptor
init: server error
nuth: error in locking authority file /home/pi/.xauthority"

I have done lots of research online and have found no one with the same problem, or a fix even on the X.org website.

Please help I am very confused and do not know what to do.
Thank you.
Last edited by KnotMan33 on Wed Mar 06, 2013 7:59 pm, edited 1 time in total.

User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am
Contact: Website

Re: Error Message while running Startx command

Wed Mar 06, 2013 7:22 am

Did you expand the SD Card in

Code: Select all

sudo raspi-config
. Is it just running out of space and that's why it can't create the file? What size card are you using and are you just running

Code: Select all

startx 
after login?
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

User avatar
jojopi
Posts: 3085
Joined: Tue Oct 11, 2011 8:38 pm

Re: Error Message while running Startx command

Wed Mar 06, 2013 8:50 am

KnotMan33 wrote:could not create lock file in /inp/.1xd-lock
I believe that should say "/tmp/.tX0-lock". Do you get an error if you try to create a file in /tmp yourself:

Code: Select all

touch /tmp/test

KnotMan33
Posts: 3
Joined: Tue Mar 05, 2013 8:53 pm

Re: Error Message while running Startx command

Wed Mar 06, 2013 7:58 pm

Thank YOU my pi is now working!!
I didn't do anything but check my SD card usage with

Code: Select all

df -h
and then it ran Startx again and i worked!
I think that the Pi didn't recognize that there was space available until i ran
df -h where it realized there was lots of extra space.
Thank you again!!!

Repus
Posts: 1
Joined: Thu Mar 14, 2013 1:12 am

Re: Error Message while running Startx command[solved]

Thu Mar 14, 2013 1:35 am

Exact same problem for me using a 16gb Sandisk 4, df -h solved issue.

ShunJianLee
Posts: 68
Joined: Wed Nov 25, 2015 4:43 am

Re: Error Message while running Startx command

Fri Aug 05, 2016 6:44 am

sorry, you mean type dh -h then the problem solved? Because nothing change after i type df-h.

User avatar
RaTTuS
Posts: 10487
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Error Message while running Startx command[solved]

Fri Aug 05, 2016 7:26 am

start as new thread with your issues provide as much info as you can - this is 3Years old
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

gokul96
Posts: 1
Joined: Thu Feb 09, 2017 7:27 am

Re: Error Message while running Startx command[solved]

Thu Mar 23, 2017 6:16 am

this happens when the storage is full,
or sometimes if you do sudo startx
delete file .tX0-lock and try again,

if not clear some disk space by deleting unneeded files or by running sudo apt clean it should work afterwards

Return to “Beginners”