Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: startx input/output error

  1. #1
    Very good friend of the forum hhmatt's Avatar
    Join Date
    Jan 2010
    Posts
    660

    Default startx input/output error

    Sorry I can't find any conclusive solutions to this.
    I've been running BT3b for a while now with no problems but yesterday I started getting this error when I try to startx.

    Code:
    hostname: No address associated with name
    /usr/bin/startx: line 132: cannot create temp file for here document: Input/Output error
    xauth: creating new authority file /root/.Xauthority
    /usr/bin/startx: line 144: cannot create temp file for here document: Input/Ouput error
    xauth: creating new authority file /root/.Xauthority
    /usr/bin/startx: line 144: cannot create temp file for here document: Input/Output error
    
    Fatal server error:
    Could not create lock file in /tmp/.tX0-lock
    
    giving up.
    
    xinit: Permission denied (errno 13):  unable to connect to X server
    xinit: No such process (errno 3):  Server error.
    xauth:  creating new authority file /root/.Xauthority
    I tried to cat the /root/.Xauthority file and get a permission denied message.
    I made no changes to any files the last time I was in BT X server successfully.
    I decided to check my laptop for hardware errors and I do get a keyboard controller error but nothing wrong with the hard drive. The keyboard seems to work as its supposed to.

    line 132 says:
    Code:
    xauth -q -f $xserverauthfile << EOF
    line 144 says:
    Code:
    xauth -q << EOF
    I'm guessing a problem with the xauth file? I'm logged in as root so I don't see how it could be a permissions error.

  2. #2
    Senior Member
    Join Date
    Feb 2008
    Posts
    681

    Default

    Quote Originally Posted by hhmatt81 View Post
    Sorry I can't find any conclusive solutions to this.
    I've been running BT3b for a while now with no problems but yesterday I started getting this error when I try to startx.

    Code:
    hostname: No address associated with name
    /usr/bin/startx: line 132: cannot create temp file for here document: Input/Output error
    xauth: creating new authority file /root/.Xauthority
    /usr/bin/startx: line 144: cannot create temp file for here document: Input/Ouput error
    xauth: creating new authority file /root/.Xauthority
    /usr/bin/startx: line 144: cannot create temp file for here document: Input/Output error
    
    Fatal server error:
    Could not create lock file in /tmp/.tX0-lock
    
    giving up.
    
    xinit: Permission denied (errno 13):  unable to connect to X server
    xinit: No such process (errno 3):  Server error.
    xauth:  creating new authority file /root/.Xauthority
    I tried to cat the /root/.Xauthority file and get a permission denied message.
    I made no changes to any files the last time I was in BT X server successfully.
    I decided to check my laptop for hardware errors and I do get a keyboard controller error but nothing wrong with the hard drive. The keyboard seems to work as its sh a trupposed to.

    line 132 says:
    Code:
    xauth -q -f $xserverauthfile << EOF
    line 144 says:
    Code:
    xauth -q << EOF
    I'm guessing a problem with the xauth file? I'm logged in as root so I don't see how it could be a permissions error.
    That's weird, have you tried xconf. Probably won't help but it's worth a try. However I'm sure you've tried that already.

    The only other suggestion is to search for the error in Google, using quotes eg.
    "Permission denied (errno 13): unable to connect to X server"
    and
    " xauth: creating new authority file /root/.Xauthority"
    and so on.

    If that doesn't help and no one gives you a solution. You may just have to reinstall, but that would obviously be the last resort.

    Good Luck with that.
    [FONT=Courier New][SIZE=2][FONT=Courier New]hehe...
    [/FONT][/SIZE][/FONT]

  3. #3
    Very good friend of the forum hhmatt's Avatar
    Join Date
    Jan 2010
    Posts
    660

    Default

    Most of the posts I found on google refer to creating a new user to get startx to work. Until I find a solution I will most likely just use bash to force myself into not using GUI whatsoever. Seems that it will require a reinstall to get this problem fixed. I'm not ready for that yet since I have a few scripts I need to save to a usb flash drive before I wipe this install. If I absolutely need the GUI I can always bootup the live cd temporarily.

  4. #4
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Did you have a look at your log files to see if there was anything different?

    Code:
    bt~## cd /var/logs
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  5. #5
    Very good friend of the forum hhmatt's Avatar
    Join Date
    Jan 2010
    Posts
    660

    Default

    Quote Originally Posted by archangel.amael View Post
    Did you have a look at your log files to see if there was anything different?

    Code:
    bt~## cd /var/logs
    To be completely honest, no I haven't.

    I don't have a lot of experience fixing linux since it hardly ever gets messed up.

    I'm not infront of the laptop but I will check when I get the chance.

  6. #6
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by hhmatt81 View Post
    To be completely honest, no I haven't.
    I don't have a lot of experience fixing linux since it hardly ever gets messed up.
    This is not always true especially if you are messy with your installs deletions, etc.
    You can view common log files /var/log/messages using any one of the following commands:
    Code:
    # tail -f /var/log/messages
    # less /var/log/messages
    # more -f /var/log/messages
    # vi /var/log/messages
    Use vi or nano or whatever editor you want.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  7. #7
    Very good friend of the forum hhmatt's Avatar
    Join Date
    Jan 2010
    Posts
    660

    Default

    Quote Originally Posted by archangel.amael View Post
    This is not always true especially if you are messy with your installs deletions, etc.
    You can view common log files /var/log/messages using any one of the following commands:
    Code:
    # tail -f /var/log/messages
    # less /var/log/messages
    # more -f /var/log/messages
    # vi /var/log/messages
    Use vi or nano or whatever editor you want.
    True but most problems I have encountered were from me messing with files I shouldn't really be messing with. Makes it easier to pinpoint the errors when you know what you were screwing with before problems started to occur.

    I prefer nano but have only tried joe in the past. Anyways nano sounds kinda cool.

    Getting permission denied for /var/log/messages
    cd /var/log
    ls

    This is my output:
    /bin/ls: cannot access messages: Permission denied
    /bin/ls: cannot access maillog: Permission denied
    /bin/ls: cannot access spooler: Permission denied
    /bin/ls: cannot access secure: Permission denied
    /bin/ls: cannot access syslog: Permission denied

    Wierd it seems as though I've lost a ton of file permissions as root. Looks like creating the .xauthority file is one of them henceforth startx won't start since it cannot create the authority files necessary to run.

    dmesg is insanely long. some of the more recent stuff from dmesg says things like:

    ReiserFS: warning: is_leaf: free space seems wrong: level=1, nr_items=33, freespace=64880 rdkey
    ReiserFS: hdc3: warning: vs-5150: search_by_key: invalid format found in block 9240577. Fsck?
    ReiserFS: hdc3: warning: vs-13070: reiserfs_read_locked_inode: i/o failure occurred trying to find stat data of [167196 171077 0x0 SD]

    These 3 lines are quite plentiful near the end of the dmesg file. I've been trying to edit the startx shell file to get it to create a proper xauth file to startup using this page for reference:
    http://www.xfree86.org/4.4.0/xauth.1.html
    The startx shell wants to create a file in the /root/ directory with a filename similar to .Xauthority
    Seems I don't have permission to read or write from the root dir. I wouldn't know how to give myself permission since I'm logged on as root.

    Problem with the file system maybe? I can run BT3b on ext3 filesystem right?

  8. #8
    Senior Member
    Join Date
    Feb 2008
    Posts
    681

    Default

    Wait a minute, you say you've got an ext3 filesystem but you're getting ReiserFS errors.
    That doesn't look too good.
    [FONT=Courier New][SIZE=2][FONT=Courier New]hehe...
    [/FONT][/SIZE][/FONT]

  9. #9
    Very good friend of the forum hhmatt's Avatar
    Join Date
    Jan 2010
    Posts
    660

    Default

    Quote Originally Posted by .lonewolf View Post
    Wait a minute, you say you've got an ext3 filesystem but you're getting ReiserFS errors.
    That doesn't look too good.
    No, I'm using reiserfs. I was just asking about using ext3 with bt3.

    That would be a pretty wierd error though lol.

  10. #10
    Senior Member
    Join Date
    Feb 2008
    Posts
    681

    Default

    I had a similar problem using ReiserfS once and I couldn't fix it.


    I'd definitely recommend switching to ext3 for bt3

    Quote Originally Posted by hhmatt81 View Post
    No, I'm using reiserfs. I was just asking about using ext3 with bt3.

    That would be a pretty wierd error though lol.
    [FONT=Courier New][SIZE=2][FONT=Courier New]hehe...
    [/FONT][/SIZE][/FONT]

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •