LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2014, 11:18 PM   #1
Sha-bangs
LQ Newbie
 
Registered: Jun 2014
Distribution: many
Posts: 4

Rep: Reputation: Disabled
Can't Login Ubuntu 12.04 LTS login loop?


Do to a power failure during upgrade, the first thing I had to do is figure out why my filesystem failed to mount so,:


I gott to the maintenance shell, and tried this:

sudo mount -o remount,rw /
sudo dpkg --configure -a

Here is where I got errors to bluez etc.

Then I tried:
sudo mount -o remount,ro /
sudo sync
sudo reboot

When I rebooted, I made it all the way into the login screen and started patting myself on the back, much to my chagrin
When I entered my username and password the screen flashes what looks like an unexpected error screen for like a millisecond and then I am right back to the login screen. Yes I checked my password and no there is no login/password incorrect msg. Yes, I did try logging in on ctrl +alt +f1 to no avail (interestingly enough this would not except my username/password).

Suggestions?

Thank you in advance for your consideration,
Bangs
 
Old 09-28-2014, 12:03 AM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
If you have a live disk or usb I would boot into a live session and repair the installation via chroot.

Code:
#mounting
mkdir /mnt/tmp
mount /dev/xxx /mnt/tmp ###where xxx is your disk designation e.g. sda1###
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt/tmp$i; done
cp /etc/resolv.conf /mnt/tmp/etc/resolv.conf
chroot /mnt/tmp

#Unmounting
for i in /dev/pts /dev /proc /sys; do sudo umount /mnt/temp$i ; done

#Some repair commands
apt-get update
apt-get upgrade
apt-get install -f
dpkg --configure -a
apt-get dist-upgrade
 
Old 09-28-2014, 12:22 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I had a similar problem with Ubuntu 14.04. I kept getting sent back to the login screen after entering my password. The problem was solved by setting all the permissions in my home folder like this:
Code:
sudo chmod -R ugoa+rwx /home/*myusername*
jdk
 
  


Reply

Tags
login, ubuntu 12.04



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
ubuntu 14.04 stuck in login loop. Nothing seems to help alex_homeless Ubuntu 2 08-30-2014 03:49 AM
Ubuntu 12.04 LTS - Can't login stefzeer90 Ubuntu 1 03-25-2014 03:44 PM
Ubuntu 10.04.3 LTS GDM Login 'Accessibity Panel' RML1992 Ubuntu 2 06-21-2012 04:01 AM
Ubuntu LTS Server login question MarkoSan Linux - Software 3 09-23-2010 02:16 PM
Changing login themes on ubuntu 10.04 lts damani Ubuntu 1 06-05-2010 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 PM.

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
Open Source Consulting | Domain Registration