HooKooDooKu
Posts: 3
Joined: Fri Jun 15, 2012 1:21 pm

/bin/sh: can't access try; job control turned off

Wed Jun 20, 2018 5:47 am

So I modified fstab to mount a network drive and something is wrong with it. When I try to boot, the pi, I get "You are in emergency mode... Press Enter to continue.". But pressing enter just brings you back to the same message.

I've found tons of references that say to use another computer to modify the cmdline.txt file to append init=/bin/sh. But when I do that, I get "/bin/sh: can't access try; job control turned off"

Now what?

User avatar
thagrol
Posts: 3178
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: /bin/sh: can't access try; job control turned off

Wed Jun 20, 2018 3:22 pm

Use another linux computer to
  • mount that SD card
  • edit /mountpoint/etc/fstab and remove or comment out the offending line
  • undo changes you've made to cmdline.txt
The "other linux computer" can be another Pi, a PC running linux, a PC with a live linux CD/USB stick, the same Pi booting from another SD card, etc.

Oh, and if you post the offending fstab entry we might be able to help with that.
Arguing with strangers on the internet since 1993.

HooKooDooKu
Posts: 3
Joined: Fri Jun 15, 2012 1:21 pm

Re: /bin/sh: can't access try; job control turned off

Wed Jun 20, 2018 11:53 pm

Thanks for the suggestion. Fortunately I have a laptop running Mint with an SD card reader. I'll try to mount it when I get home.

I'm sure I'll be able to fix the fstab entry, already got one for the external hard drive. This one is a bit more complex trying to mount to a Windows share. Had gotten it to work from the command line. It's just reduculous pain when a minor problem trying to mount a drive that isn't important to you operating system can lock you out of the computer.

I was really ticked off this time because I included the nofail option (that let me tweek the settings for the external hard drive). I'm wondering if the problem might be that I have not checked the option to wait on network and this is a network drive.

I'll post the fstab later if I manage to recover it and still have problems

Thanks

User avatar
thagrol
Posts: 3178
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: /bin/sh: can't access try; job control turned off

Thu Jun 21, 2018 10:36 am

HooKooDooKu wrote:
Wed Jun 20, 2018 11:53 pm
I'm wondering if the problem might be that I have not checked the option to wait on network and this is a network drive.
Could be. Have you considered adding the "_netdev" mount option?
Arguing with strangers on the internet since 1993.

Return to “Troubleshooting”