Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED: cannot login after using init 1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Sun Sep 23, 2012 2:23 am    Post subject: SOLVED: cannot login after using init 1 Reply with quote

I'm fairly new to gentoo but have been using other distros for awhile now. I have kde plasma on the 3.4.9 kernel. I was trying to recover a file using grep but I never shutdown xdm before running init 1. Now it doesn't matter what runlevel I have The kernel boot to it doesn't change the runlevel of the Xserver. It gives me a login prompt but the only accounts on the machine don't work. They flash the screen black and then it goes back to the login prompt. I have unmerged plasma-workspace xdm and xorg-server all at the same time checked all the config files i could find and saw nothing about a runlevel or init. My inittab file is set to 3.

Last edited by onecallaway8705 on Tue Sep 25, 2012 12:39 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31836
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 11:26 am    Post subject: Reply with quote

onecallaway8705,

Welcome to Gentoo.

I suspect you have some hidden (start with a .) filenames in ~ or /root related to Xorg, so Xorg thinks its running already.

The easiest way to test this is to make a new user, so these files cannot exist, then use that user. If it works for the new user, hunt down the files for other users and remove them.

Its also possible that Xorg is broken. Make friends with wgetpaste and share your /var/log/Xorg.0.log with us. That will tell what actually happened when Xorg started.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Sun Sep 23, 2012 2:48 pm    Post subject: Reply with quote

here is a link to my Xorg.0.log
http://bpaste.net/show/47091/
and here is my xdm.log
http://bpaste.net/show/47092/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31836
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 3:02 pm    Post subject: Reply with quote

onecallaway8705,

Xorg started normally but there is something very worrying about the rubbish at the end of the file, starting at line 1338 in your pastebin.
That suggests that your filestsrem is corrupt.

Boot a livecd and run fsck -f /dev/... on your filesystems.

Your kernel is missing DRM support, so you have no 3D acceleration but that won't stop Xorg working.

If your fsck does not find anything, remove xdm from the default runlevel, so you don't have to wait for Xorg to crash then do

Code:
emerge -1 twm xclock xterm
to give you something simple to test with.
startx should now start twm with three xterms and a clock.

You xdm log looks like it has a piece of your world file at the end, starting at line 295.

If fsck finds cross linked files, its time to get out your backups or reinstall. fsck will make the filesystem metadata self consistent (if it can) but it says nothing about user data. You can recover from some cross linked files but not others.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Sun Sep 23, 2012 3:07 pm    Post subject: Reply with quote

Thank you I will try that as soon as I get a chance and post the results
Back to top
View user's profile Send private message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Sun Sep 23, 2012 5:59 pm    Post subject: Reply with quote

Would it matter that I am starting it with "/etc/init.d/xdm start" instead of Startx?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31836
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 6:17 pm    Post subject: Reply with quote

onecallaway8705,

Code:
/etc/init.d/xdm start
will start your configured display manager.
If xdm is in the default runlevel, check with
Code:
rc-update show
it tried to start automatically at login, crashed then
Code:
/etc/init.d/xdm start
tried to stat it too but the services manager will think its already running, an not let you.

Thats a roundabout way of saying yes - it matters.

We don't know whats wrong yet - everything looks ok apart from the rubbish at the end of the files you posted.
Ensuring that xdm does not run ans using startx with a simple Window Manager is aimed at reducing the problem space so we can locate the problem area, I've not suggested a fix yet.

The problem could be in Xorg, your display manager or desktop environment.
startx with twm cuts out both your display manager or desktop environment. IF it still fails, we know its Xorg or a Xorg device driver.

What did fsck -f /dev/... have to say about your filesystems?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Sun Sep 23, 2012 6:18 pm    Post subject: Reply with quote

[code]fsck -f /Dec/sda7[/code]
Returned this
[code]fsck from util-linux 2.19.1
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda7: 484706/3899392 files (1.3% non-contiguous), 2081998/15571200 blocks[/code]

After running
[code]emerge -1 twm xclock xterm
Startx[/code]

I do get three terminals and a clock should i post new log files?[/profile]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31836
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 6:35 pm    Post subject: Reply with quote

onecallaway8705,

Your fsck was good - nothing was recovered.
Xorg works, so we can rule that out.

Reboot but this time, in place of startx, run /etc/init.d/xdm start.

You mentioned
onecallaway8705 wrote:
I have unmerged plasma-workspace xdm and xorg-server

HAve you reinstalled your display manager and desktop environment and reconfigured it?
If not, do that before you try to start xdm, or there will be nothing to start.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Sun Sep 23, 2012 6:42 pm    Post subject: Reply with quote

I have reinstalled them when I would run "/etc/init.d/xdm start" it would start the x environment and bring up a login screen but it would not allow me to login even as root
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31836
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 6:45 pm    Post subject: Reply with quote

onecallaway8705,

Do you use PAM?
It sounds like you either have pam updates pending in etc-conf or pam is brpken.
I don't use a login manager, so I don't know what you should have in pam.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Sun Sep 23, 2012 6:50 pm    Post subject: Reply with quote

i dont use PAM to login. i would just use the login prompt in kde plasma when it would load. after i ran "init 1" and restarted the computer that login was replaced by one that fills most of the screen and the right side looks like a picture of a k or an x im not quite sure
Back to top
View user's profile Send private message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Sun Sep 23, 2012 7:15 pm    Post subject: Reply with quote

i also created a new user and logged in as that user and started xdm and if gave me the same issues
Back to top
View user's profile Send private message
onecallaway8705
n00b
n00b


Joined: 23 Sep 2012
Posts: 9

PostPosted: Tue Sep 25, 2012 12:21 am    Post subject: Reply with quote

ok so running "kdm" from the main terminal loads kde and allows me to login

edit:
i re-checked my xdm.conf file and i did not reset my display manager to kdm from xdm. i am now able to start kde and log in.
Thank You for all of your help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum