Re: cannot execute "/etc/init.d/rc"

ilguSo7+ <[email protected]>
Newsgroups gmane.linux.debian.user.laptop
Message-ID <[email protected]>
Ivan Glushkov <glushkov <at> mail.desy.de> writes:

> 
> On Mon, 4 Oct 2004, Andrew Porter wrote:
> 
> > On Mon, 2004-10-04 at 12:59, Ivan Glushkov wrote:
> >
> > > INIT: cannot execute "/etc/init.d/rcS"
> > > INIT: Entering runlevel: 2
> > > INIT: cannot execute "/etc/init.d/rc"
> >
> > What does ls -l /etc/init.d/rc* show ?
> 
> it shows:
> 
> -rwxrwxrwx 1 root root 2235 Oct 4 14:25 /etc/init.d/rc
> -rwxrwxrwx 1 root root 1190 Oct 4 14:25 /etc/init.d/rcS
> 
> >
> >
> >
> >
> >
> >
> I found the following:
> the /bin/sh was missing, as well as /bin/bash. I linked:
> 
> ln -s /bin/zsh bin/sh
> 
> Basicly seems like the whole system is not working properly:
> "apt-get dist-upgrade"  wants libc6.
> "apt-get install libc6" says that it cannot get the debconf version. The
> debconf version is ofcourse installed... So, the first task in the moment
> is to find a way to install libc6...
> 
>  (a lot of things in /lost+found/.)is there a way with apt-get or so to
recover the
> previous state of the system?
> 
> 	Ivan
> 
> 


Hi there, i know it's an old post but I had a similar issue and want to
share the solution.
My problem started when I connected an external HD to my Raspberry Pi and it
couldn't feed it with enough power.
First I realized that the root partition was not propertly mounted and
followed
https://raymii.org/s/blog/Broken_Corrupted_Raspberry_Pi_SD_Card.html to
recover the access to it.
I couldn't boot anyway after this operation.
>From your post, Ivan, I understood that I was missing the /bin/ folder in my
root.
I doublechecked with a fresh Raspbian SD all the folders I was missing and
copied back all of them into my SD: that did the trick!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.