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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-08-2012, 06:44 PM
|
#1
|
LQ Newbie
Registered: Jan 2012
Posts: 9
Rep:
|
Unable to log in to user account
Hello. I'm using Linux Mint 9 on a Eepc 701. THe system has a single user account, and /home is moved to an SDHC card. Setup works well.
Occasionally I'll run out of battery and so system force shuts down. When this happened today I plugged in and restarted. When logging in to my user account the system returns me to the login screen - no indication that the account has failed authentication, but the login is refused.
I can log in as root no problem. Tried changing the password in a terminal, didn't work. Have rebooted and shut down - nothing.
Can anyone suggest any further steps to get this working please. I really don't want to reinstall if a I can help it.
Thanks
|
|
|
07-08-2012, 06:48 PM
|
#2
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Usually this is a sign that something is wrong with your home-directory. Log in as root and launch the commands
|
|
|
07-08-2012, 07:35 PM
|
#3
|
LQ Newbie
Registered: Jan 2012
Posts: 9
Original Poster
Rep:
|
ls -l /home returned this:
Code:
total 20
drwsr-sr-x 2 macburp root 16384 2012-01-12 19:04 lost+found
drwsr-sr-x 59 macburp macburp 4096 2012-07-09 19:04 macburp
Ummm. The SDHC card is 16GB, but I used to use a 4GB one. Could this be the issue?
fstab line for SDHC card is:
Code:
UUID=[number] /home ext2 defaults,user,exec,noatime, errors=continue 0 0
Perhaps there should be no space between noatime and errors=continue?
Last edited by Macburp; 07-08-2012 at 07:44 PM.
|
|
|
07-08-2012, 07:49 PM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,405
|
Could be, give it a try ..
BTW, I've never seen lost+found dir owned by other than root:root.
Also, never seen suid+sgid perms set on either of those dirs either.
Last edited by chrism01; 07-08-2012 at 07:52 PM.
|
|
|
07-08-2012, 07:52 PM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Yes, there should be no space between the options. Just to make that clear:
You usually used a 4GB card and replaced it with a 16GB card. This shouldn't matter, the 701 can read 16GB cards, I used one myself with a 16GB card. Have you adapted the UUID in fstab after the change?
What is the output of
|
|
|
07-08-2012, 07:52 PM
|
#6
|
LQ Newbie
Registered: Jan 2012
Posts: 9
Original Poster
Rep:
|
Well, I took out the space in fstab, but I still can't log in .
Any ideas?
|
|
|
07-08-2012, 08:09 PM
|
#7
|
Member
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424
Rep:
|
Extra spaces in fstab don't mean anything, options can be separted by a space or comma. I suspect the UUID of the new SD card is different, so it's not recognized. Even two identical cards would have a different UUID. I'd suggest changing it to the device string, like /dev/sdb1 or whatever.
|
|
|
07-08-2012, 08:28 PM
|
#8
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by guyonearth
Extra spaces in fstab don't mean anything, options can be separted by a space or comma.
|
Sorry, but no. If I do extra spaces in the options for the mountpoint /server on my machine I get this:
Code:
root@dragon ~ :) # mount /server
[mntent]: line 9 in /etc/fstab is bad
mount: can't find /server in /etc/fstab or /etc/mtab
(and vim marks this as error). It works fine without the spaces.
|
|
|
07-08-2012, 08:36 PM
|
#9
|
LQ Newbie
Registered: Jan 2012
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by guyonearth
I suspect the UUID of the new SD card is different, so it's not recognized. Even two identical cards would have a different UUID. I'd suggest changing it to the device string, like /dev/sdb1 or whatever.
|
When I changed SD Cards I updated the UUID, so the UUID is correct. When I log in as root, /home mounts. I just can't log in as me
|
|
|
07-08-2012, 08:42 PM
|
#10
|
Member
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424
Rep:
|
Quote:
Originally Posted by TobiSGD
Sorry, but no. If I do extra spaces in the options for the mountpoint /server on my machine I get this:
Code:
root@dragon ~ :) # mount /server
[mntent]: line 9 in /etc/fstab is bad
mount: can't find /server in /etc/fstab or /etc/mtab
(and vim marks this as error). It works fine without the spaces.
|
It must be a quirk of the format you're using, because I've edited many fstabs, and have never had an issue like that. I don't use vim to do it.
|
|
|
07-08-2012, 08:46 PM
|
#11
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
It would be hard to believe that the text editor causes this, especially when it is vim, which is one of the most used text editors.
Anyways, since this seemingly can cause issues on some OSes it is better to avoid such a format.
@Macburp: Still waiting for the output of the mount-command.
Also, try it with a newly created user. If that works it is likely that it is a misconfiguration in your users settings that is causing this.
|
|
|
07-08-2012, 08:47 PM
|
#12
|
Member
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424
Rep:
|
Quote:
Originally Posted by Macburp
When I changed SD Cards I updated the UUID, so the UUID is correct. When I log in as root, /home mounts. I just can't log in as me
|
Then you've got some kind of weird permission issue going on. Try simplifying it. This is what the line in my fstab looks like (I also have home on a different drive):
UUID=3edb3098-3c74-441b-9102-fbb46e01b85f /home ext4 defaults 0 2
|
|
|
07-08-2012, 08:59 PM
|
#13
|
LQ Newbie
Registered: Jan 2012
Posts: 9
Original Poster
Rep:
|
@TobiSGD, here's the result of mount:
Code:
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sdb1 on /home type ext2 (rw,nosuid,nodev,noatime,errors=continue)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
//192.168.1.32/Xvids on /home/macburp/Highview type cifs (rw,mand)
@guyonearth, I'm slightly reluctant to change fstab settings for the SD ced as I had serious problems getting it to work initially. I'll keep it in mind.
|
|
|
07-08-2012, 09:17 PM
|
#14
|
LQ Newbie
Registered: Jan 2012
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
Also, try it with a newly created user. If that works it is likely that it is a misconfiguration in your users settings that is causing this.
|
Well, I created a new account and was able to log in OK. Still can't log in to the original account. How do I do a disk check on the SD card to see if there are any errors?
|
|
|
All times are GMT -5. The time now is 11:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|