Jump to content
Sign in to follow this  
Varjagy

Ubuntu boot problem

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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 :)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...