(Solved) New install, root login only! « Thread Started on Mar 24, 2011, 10:41am »
Hi, I finally decided to install Saline, but the login screen will only allow root login, my user name and password just returns back to login screen.
I've changed my password, and even created a new user, but still only root login. I have tried many distros but this is a first time I've had this happen.
Full re-install gave same results, so any advice?
I've just noticed, if I enter my correct password, the screen goes blank for a second and the returns to the login screen, but if I enter an incorrect password the screen does not blank, it just goes back to username.
Re: New install, root login only! « Reply #1 on Mar 24, 2011, 11:28am »
When you were installing, do you remember if you used the same password for Root as you did for your username? Other distros use the one password, only, for user and root. BTW welcome to Saline OS.
Re: New install, root login only! « Reply #2 on Mar 24, 2011, 11:48am »
Yes, I'm sure I used different passwords.
I've just tried the login screen again, if I enter an incorrect password for root, the screen simply goes back to username request without going blank first.
When I enter my correct user password the screen still goes blank for a second before returning to the login screen, so it is checking 'something' but there are no error messages.
I am wondering if maybe an error message may be logged somewhere that I could check?
Just checked something else! Although I'm not sure about the correct terminology
If I enter "killall slim" at a terminal to exit all graphic 'stuff', I can then login with my username and password to the text 'stuff', but get a warning "No directory, logging in with Home=/". I don't know if I can get into a desktop from there?
The installation I have made is on seperate partitions for / and home. Home has been created.
I've just tried the login screen again, if I enter an incorrect password for root, the screen simply goes back to username request without going blank first.
When I enter my correct user password the screen still goes blank for a second before returning to the login screen, so it is checking 'something' but there are no error messages.
I am wondering if maybe an error message may be logged somewhere that I could check?
It is not asking for your Root password, but, your User Name password.
Re: New install, root login only! « Reply #7 on Mar 24, 2011, 12:59pm »
I have worked around the problem by re-installing again (3rd time), this time installing / and home to the same partition (that's the only difference), user login now works correctly.
I have worked around the problem by re-installing again (3rd time), this time installing / and home to the same partition (that's the only difference), user login now works correctly.
Not really solved, but I'm happy.
Glad to hear about the workaround. I was waiting on the Cavalry (Someone with the solution) I knew the problem was the moving "Home" but, I don't know how to fix it. The solution may come later.
Re: New install, root login only! « Reply #9 on Mar 24, 2011, 1:22pm »
I am glad you got yourself logged in. Sounds like an issue mounting /home at boot. If you wouldn't mind supplying me information on how you setup your partitions the first couple times that would be helpful. I will try and reproduce this on my machine and find an underlying cause.
Did you let the installer format /home and if it wasn't formatted are you sure you didn't use the same user name as another distribution that uses that partition? The only time I have seen the error you are describing is when the /home partition didn't have enough space to login. But, I am pretty sure using the same user name as another distribution on home will cause this as well. The installer may fail to setup write permissions to the folder if it already exists.
Re: New install, root login only! « Reply #10 on Mar 24, 2011, 1:51pm »
Thanks beardedragon for trying to help. Hi Anthony Nordquist, thanks for a great distro.
This was installed to replace cruchbang (also based on Debian 6), partitions were already ext3, home was formatted again by Saline as far as I'm aware.
I have 2 hard drives, the first has 4 partitions, I always keep the same setup.
sda1 MS XP ntfs 80Gb sda2 / ext3 15Gb sda3 swap 2Gb sda4 home ext3 210Gb
That was my original problem setup, I now have Saline installed entirely on sda4. The second hd sdb is just data storage, 2 partitions ext3
Re: New install, root login only! « Reply #11 on Mar 24, 2011, 3:15pm »
Figured this one out, I will be working up some patches to the installer with upstream. The installer is passing "" as the filesystem type of /home to fstab of the installed system. You can fix this by logging in as root and editing /etc/fstab. You will find an entry something like below.
# /dev/sda3 home UUID= /home relatime 0 0
It should be (replace ext4 with ext3 if the filesystem of home is ext3)
# /dev/sda3 home UUID= some-really-long-UUID /home ext4 relatime 0 0
Thank you for reporting this I do bare metal installs of all my images for testing purposes. Seems I never bothered to do an install with a separate /home partition outside of VirtualBox though This is a perfect example why I/everyone should always test everything outside VirtualBox as this bug doesn't exist within VirtualBox installs.
Seems I maybe wrong on the cause of this. I will be looking into this some more and will work something out.
Re: (Solved) New install, root login only! « Reply #14 on Mar 24, 2011, 11:47pm »
This issue is caused by the line that creates the directory that /home gets temporarily mounted to for install is skipped if you chose noformat. This means that the mount fails and since the partition isn't mounted it doesn't generate a UUID and the filesystem type comes up as "".
You can fix fstab manually by logging in as root and changing the entry in /etc/fstab To find the UUID of your partition input the following into the terminal as root blkid /dev/sdaX , replacing X with the appropriate number for your home partition. The command cat /proc/partitions will output a list of partitions on your machine.
In /etc/fstab you will find an entry like this:
# /dev/sdaX home UUID= /home relatime 0 0
It should be (replace ext4 with ext3 if the filesystem of home is ext3)
# /dev/sdaX home UUID= some-really-long-UUID /home ext4 relatime 0 0
I will have to rebuild images with a patched installer to get this issue resolved.
Anthony Nordquist, on behalf of the SalineOS project, is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. As such, if you click the above banner and then make any purchase including digital downloads, a small percentage will be paid to the SalineOS project.