You are not logged in.
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: homeBooting 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
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
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
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 prompti can't also login as
#su - usernamethe 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 -lbut 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
You can try mounting the root partition and then go:
arch-chroot /mntWhich 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
I tried and get
chroot: failed to run command /bin/sh: No such file or directoryalthough /mnt/etc/shells contains:
/bin/sh
/bin/bash
/bin/tcsh
/bin/cshEDIT:
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
chroot: failed to run command /bin/sh: No such file or directoryOkay 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
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
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
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
Sorry dude, wish I could help more but its very hard to recover from a very outdated system : ( wish you the best
Offline
No problem, thanks for your help anyway!
Offline
Please do not use [Closed], it denotes a locked thread. Use Solved or resolved instead.
Offline
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