You are not logged in.

#1 2014-01-19 00:05:00

JPisaBrony
Member
Registered: 2014-01-18
Posts: 6

Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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

#2 2014-01-19 00:39:50

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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/fstab

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

#3 2014-01-19 01:14:19

JPisaBrony
Member
Registered: 2014-01-18
Posts: 6

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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

#4 2014-01-19 01:42:56

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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/bin

If your LiveCD is an Arch LiveCD, then could you also run

pacman -r /mnt -Qo /mnt/bin

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

#5 2014-01-19 01:49:03

shmibs
Member
Registered: 2012-09-11
Posts: 93
Website

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

/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

#6 2014-01-19 01:54:28

JPisaBrony
Member
Registered: 2014-01-18
Posts: 6

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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

#7 2014-01-19 02:02:52

JPisaBrony
Member
Registered: 2014-01-18
Posts: 6

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

shmibs wrote:

/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

#8 2014-01-19 02:25:06

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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 filesystem

If 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

#9 2014-01-19 02:39:21

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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

#10 2014-01-19 02:59:51

JPisaBrony
Member
Registered: 2014-01-18
Posts: 6

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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

#11 2014-01-19 03:25:25

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

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. wink


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

#12 2014-01-19 03:30:23

JPisaBrony
Member
Registered: 2014-01-18
Posts: 6

Re: Can't boot Arch sulogin: failed to execute /bin/bash:Not a dir[SOLVED]

WorMzy wrote:

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

Board footer

Powered by FluxBB