Jump to content


Photo
- - - - -

Ubuntu boot problem


  • Please log in to reply
6 replies to this topic

#1 Varjagy

Varjagy

    Linux-Noob Member

  • Members
  • PipPip
  • 61 posts

Posted 12 June 2007 - 03:18 PM

Well, now I have tinkered a bit to much for my own good. When I try to boot I get these messages:

init: Unable to execute "/bin/sh" for rcS: No such file or directory
init: rcS main process (2397) terminated with status 255
init: Unable to execute "/bin/sh" for rc-default: No such file or directory
init: rc-default main process (2398) terminated with status 255

I need a really noobish explanation on how to fix.
indecent and offensive signature removed.

#2 Varjagy

Varjagy

    Linux-Noob Member

  • Members
  • PipPip
  • 61 posts

Posted 12 June 2007 - 04:07 PM

I am using a LiveCD, to try and copy the /bin/sh from the CD to the partition.

I am using mount rw /xxx/xxx /xxx/xxx, but it won't let me write to the partition.

Any solution?
indecent and offensive signature removed.

#3 znx

znx

    Linux-Noob GURU

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,236 posts

Posted 12 June 2007 - 06:25 PM

After poking around with Varjagy in the IRC channel we were able to assist him to get this working. The permissions error was due to the LiveCD starting a shell with user permissions and not root. Using sudo su - we got in. Then a straight cd /mnt/crap/bin && ln -s dash sh and we were sorted. Yay!

#4 Varjagy

Varjagy

    Linux-Noob Member

  • Members
  • PipPip
  • 61 posts

Posted 12 June 2007 - 08:34 PM

Yes, I have learned a lot today thanks to znx and Ritter.

Thanks guys.
indecent and offensive signature removed.

#5 julied

julied

    Noob

  • Members
  • Pip
  • 1 posts

Posted 11 January 2008 - 06:26 AM

Yes, I have learned a lot today thanks to znx and Ritter.

Thanks guys.



How were you able to issue any linux commands from a command line when the computer wouldn't boot up due to the 'unable to execute bin/sh". I am receiving the same error. How can I move around this?

#6 znx

znx

    Linux-Noob GURU

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,236 posts

Posted 12 January 2008 - 06:21 PM

How were you able to issue any linux commands from a command line when the computer wouldn't boot up due to the 'unable to execute bin/sh". I am receiving the same error. How can I move around this?


By using a LiveCD distribution (for instance I would suggest Knoppix). Once you get booted from the CD you can then mount your main system's root partition and then issue commands to fix it. If you can get access to IRC then one of us should be online and can help walk you through the process. Indeed you should be able to IRC from the Knoppix LiveCD :)

#7 Chris Gray

Chris Gray

    Noob

  • Members
  • Pip
  • 1 posts

Posted 26 February 2009 - 10:14 PM

After poking around with Varjagy in the IRC channel we were able to assist him to get this working. The permissions error was due to the LiveCD starting a shell with user permissions and not root. Using sudo su - we got in. Then a straight cd /mnt/crap/bin && ln -s dash sh and we were sorted. Yay!

I am having the same message when Linux boots. I'I've read the posts , burned the livecd, and booted from it. I've done the sudo su successfully and am root. However, this post then says: cd
/mnt/crap/bin && ln -s dash sh ] and we were sorted. Yay! ]
I have no idea what that means or what to do here. To mount my computer hard drive, what commands should I issue?

Thanks.

CHris


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users