You are not logged in.
I currently have a dual boot with windows and arch, windows and grub work fine, but when i try to boot arch i get to right before the login screen and see this:
Login incorrect
Give root password for maintanence
(or press Control-D to continue):
i give the root password, but then i get this error
sulogin: failed to execute /bin/bash: Not a directory
sulogin: failed to exectue /bin/sh: Not a directory
Can not execute su shell
pressing Control-D doesnt do anything and just displays
Give root password for maintanence
(or press Control-D to continue):
Last edited by JPisaBrony (2014-01-19 03:01:54)
Offline
When is this installation from? Have you done the usr-bin merge yet?
Boot a liveCD/USB, mount your arch partition to e.g. /mnt, and post back the output of:
ls -l /mnt/bin/bash
ls -ld /mnt/bin
ls -ld /mnt
cat /etc/fstabSakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
When is this installation from?
I installed it bit over a month ago, i haven't touched it for a while and then, this shows up.
Have you done the usr-bin merge yet?
no, not yet. i haven't been on arch for a few weeks, so i haven't upgraded any packages either.
output of:
ls -l /mnt/bin/bash
ls: cannot access /mnt/bin/bash: Not a directory
ls -ld /mnt/bin
-rw------- 1 root root 5511 Dec 31 05:08 /mnt/bin
ls -ld /mnt
drwxr-xr-x 19 root root 4096 Dec 31 05:08 /mnt
cat /etc/fstab
displays nothing
Last edited by JPisaBrony (2014-01-19 01:15:23)
Offline
Apologies, that should have been 'cat /mnt/etc/fstab', though you shouldn't get nothing from the liveCD, so that's a bit odd..
Also, if you installed in the last six months (and used any installation media from the last 18 months or so), then you shouldn't need to do the usr-bin update.
Your installation's /bin directory appears to be a file, not a synbolic link, which is what it should be. Can you check what this file is with (from the live environment again)
file /mnt/bin
cat /mnt/binIf your LiveCD is an Arch LiveCD, then could you also run
pacman -r /mnt -Qo /mnt/binSakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
/me guesses that was meant to be cat /mnt/etc/fstab rather than just /etc/fstab.
anyways, are you certain that, after booting the live cd, you mounted your root partition (as detailed here) and that there were no errors when doing so? if so, is there anything in the partition at all?
EDIT: beaten to the punch with a better response
Last edited by shmibs (2014-01-19 01:50:14)
[site] | [dotfiles] | あたしたち、人間じゃないの?
Offline
cat /mnt/etc/fstab displays the fstab info, i can paste it if necessary.
output of:
file /mnt/bin
/mnt/bin: Bourne-Again shell script, ASCII text executable
cat /mnt/bin
displays a lot of text
pacman -r /mnt -Qo /mnt/bin
/mnt/bin is owned by filesystem 2013.05-2
Offline
/me guesses that was meant to be cat /mnt/etc/fstab rather than just /etc/fstab.
anyways, are you certain that, after booting the live cd, you mounted your root partition (as detailed here) and that there were no errors when doing so? if so, is there anything in the partition at all?
The partitions mounted fine, there were no errors mounting. There are still files on the partitions aswell.
Last edited by JPisaBrony (2014-01-19 02:03:28)
Offline
Could you use a pastebin utility to upload your /mnt/bin file? This is purely for the sake of interest and won't help remedy your situation, I'm just curious how you got into this situation.
Somehow, your installation's /bin symlink has been replaced by a bash script. To fix this from the live environment, remove that file and reinstall the filesystem package:
pacman -r /mnt -S filesystemIf you get any error messages, post them back here before continuing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Post that script before you run WorMzy's command. /bin should definitely not be a script and I would be very interested as well to see what you ended up with there.
Offline
here is the script
http://ix.io/9Yt
i really have no idea how it got in there, but i must have derped somewere and copied it into the wrong directory.
after running the command WorMzy posted, arch boots right up, thanks everyone for your help.
Offline
Is it something you recognise though?
It looks harmless enough, so I don't think anyone was trying to do anything malicious on your machine, which is the main reason why I wanted to see what it was. If you're happy enough to put this down to user error then just mark it up as one to learn from. ![]()
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Is it something you recognise though?
yes, i do recognise this script. i use it to suspend my external hard drive so that it stops spinning after i unmounted/unplug it.
Last edited by JPisaBrony (2014-01-19 03:34:38)
Offline