You are not logged in.

#1 2014-01-15 13:56:21

4on6
Member
Registered: 2011-10-05
Posts: 172

[SOLVED] Cannot Login on tty - screen only blinks

I produced a mess leaving me no other option but an Archlinux reinstall from a live CD, but this time I would like to avoid making even more mistakes by asking some basic questions before actually doing anything:

Hard disk
I have 4 partitions with ext3 or ext4 filesystems: 

sda1: boot 
sda2: swap
sda3: root
sda4: home

Booting works, but I can't login anymore into my system (see here) and gave up trying to solve this issue. Elsewhere I read that I can reinstall without touching /home if its on a separate partition.

So my question is: what exactly do I have to (mount and) format before trying a reinstall (and with which command, I only used graphical tool gparted so far)? Only sda3, the root partition?

EDIT:
The title of this question was changed to reflect the discussion in this thread. The original title was "Reinstalling Archlinux", but I would rather like to solve the login problem and avoid reinstallation.

Last edited by 4on6 (2014-01-17 11:52:22)

Offline

#2 2014-01-15 14:07:22

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: [SOLVED] Cannot Login on tty - screen only blinks

Booting works, but I can't login anymore into my system (see here) and gave up trying to solve this issue. Elsewhere I read that I can reinstall without touching /home if its on a separate partition.

I have seen this issue recently (maybe a week or so ago?) where it was to do with permissions which was causing the entire problem. If I find it I'll add it to this post if you think it would help you.

As for a fresh install I personally would only keep the home partition and start anything else again from scratch... and then mounting the currently existing home partition on the new installation environment.


Edit: Found it here. Is this a familiar issue to what you currently have?

Last edited by Kartious (2014-01-15 14:13:52)

Offline

#3 2014-01-15 14:16:11

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Cannot Login on tty - screen only blinks

I have seen this issue recently (maybe a week or so ago?) where it was to do with permissions which was causing the entire problem. If I find it I'll add it to this post if you think it would help you.

I would appreciate that very much and will wait with my reinstallation for a while then.

As for a fresh install I personally would only keep the home partition and start anything else again from scratch... and then mounting the currently existing home partition on the new installation environment.

Ok, thanks for the advice.

Offline

#4 2014-01-15 14:43:32

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Cannot Login on tty - screen only blinks

Kartious wrote:

Edit: Found it here. Is this a familiar issue to what you currently have?

Thanks for the link, that thread describes exactly my problem:

My problem was

i cannot login to my newly created user account when i can login as root
login reappears after a blink after entering the password in the login prompt

i can't also login as
#su - username

the problem was with the permission of / folder
permission of / was like this
drwx------ 19 999 999 4096 Jan  2 07:59 /

changing the ownership by the code
chown root:root /
solved by the problem

But I cannot reproduce the permission issue. I'm looking at my original partitions as root from the archiso CD, how can I find out about the permissions of the / folder of the original system (and then change them)?

I tried to mount the (original) root partition /dev/sda3 to /mnt/ and then check the permissions with

root@archiso / #  ls -l

but this looks more like the permissions from the archiso CD's point of view:

drwxr-xr-x 21 root root 4096 Dec 7 16:31 mnt/

Last edited by 4on6 (2014-01-15 14:44:50)

Offline

#5 2014-01-15 15:12:42

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: [SOLVED] Cannot Login on tty - screen only blinks

You can try mounting the root partition and then go:

arch-chroot /mnt

Which will put you into the environment. You can then check permissions and switch users as you would if you normally booted your Arch system.

Offline

#6 2014-01-15 15:22:51

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Cannot Login on tty - screen only blinks

I tried and get

chroot: failed to run command /bin/sh: No such file or directory

although /mnt/etc/shells contains:

/bin/sh
/bin/bash
/bin/tcsh
/bin/csh

EDIT:
I tried all the hints in this thread, but to no avail:

  • 'arch-chroot /mnt /bin/bash' did not work either

  • There are symlinks to /lib/ld-linux.so.2 (32bit) and /lib/ld-linux-x86-64.so.2 (64bit)

  • /usr/lib contains the stuff that used to be in /lib.  Now, /lib is a symlink to /usr/lib.

Last edited by 4on6 (2014-01-15 16:04:45)

Offline

#7 2014-01-16 07:44:38

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: [SOLVED] Cannot Login on tty - screen only blinks

chroot: failed to run command /bin/sh: No such file or directory

Okay well at least we can rule out that it's a file permission issue if you are getting an error message like that, this could most possibly be a case of finding which packages are corrupted / broken and the reinstalling them.

Have you done anything recently to cause this such as updating or so? This problem you are having doesn't happen out of the random.

Offline

#8 2014-01-16 10:13:00

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Cannot Login on tty - screen only blinks

Yes, I started this thread with the sentence "I produced a mess ...", i.e. I avoided updating for a long time last year since I had a critical project and no time for other issues (and last year there were several updates which required user intervention). Then before xmas I finally decided to go for it, but used the opportunity to first re-partition my harddisk with gparted (-> increase the size of the root partition), which was surprisingly fast and easy. Then I tried to do all the required user interventions I missed in 2013 and then update, but the update failed (and I did not write down the error message). Next time I booted, I could not login anymore.

Now much time has passed without a working Archlinux system and I'm kind of desperate. I don't think its easy to figure out whats wrong, the whole thing is a mess, so I guess I have to reinstall.

Thank you for your help!

PS
Before that I was updating Archlinux almost on a daily basis, and I don't really want to switch to another distro.

Offline

#9 2014-01-16 10:18:34

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: [SOLVED] Cannot Login on tty - screen only blinks

Did you have a look at this when updating?
https://www.archlinux.org/news/binaries … ervention/

If you have not updated in such a long time it actually maybe easier to install a fresh system and to re-attach your home drive..

Offline

#10 2014-01-16 10:42:30

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Cannot Login on tty - screen only blinks

Yes, I tried to follow that instructions and I seem to remember that the given pacman commands still showed me some packages that I just could not find in /bin, /sbin or /usr/sbin, so I decided to try the update anyway. It did not work, and when I decided to try again the next day, I could not login anymore and had no chance to investigate the issue any further.

I guess I have to reinstall ...

Offline

#11 2014-01-16 10:56:20

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: [SOLVED] Cannot Login on tty - screen only blinks

Sorry dude, wish I could help more but its very hard to recover from a very outdated system : ( wish you the best

Offline

#12 2014-01-16 11:26:24

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Cannot Login on tty - screen only blinks

No problem, thanks for your help anyway!

Offline

#13 2014-01-16 20:24:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Cannot Login on tty - screen only blinks

Please do not use [Closed], it denotes a locked thread. Use Solved or resolved instead.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2014-01-17 11:54:57

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Cannot Login on tty - screen only blinks

I used CLOSED because the Login issue wasn't really solved but I decided to go for a reinstall instead. But I changed it to SOLVED now.

Offline

Board footer

Powered by FluxBB