kanotix.com

Anything goes - Odd startup error: cannot execute "/etc/init.d/rcS"

tuxedo - 28.08.2006, 16:41 Uhr
Titel: Odd startup error: cannot execute "/etc/init.d/rcS"
For some reason my freshly squeezed Kanotix woke up this morning with the following error during startup:

Code:

[..]
Switching root...
INIT: version 2.86 booting
INIT: cannot execute "/etc/init.d/rcS"
INIT: Entering runlevel: 5
INIT: cannot execute "/etc/init.d/rc"

Debian GNU/Linux testing/instable (none) tty1

(none) login:


That's as far as the startup goes. I can now log in as root but the following errors are shown:

Code:

Unable to change tty /dev/tty1: Read-only file system
attempt to acces beyond end of device
hda2: rw=0, want=722813760, limit=46138680
-bash: /bin/uname: cannot execure binary file
-bash: /bin/uname: cannot execure binary file
-bash: [: !=: unary operator expected
-bash: [: too many arguments
-bash: [: =: unary operator expected
root@(none)


The last couple of errors are repeated a few more lines.

I can run basic commands and traverse around what appears to be a intact file system. But I can't run netcardonfig; this returns "no supported cards are found", yet the cards definitely exist and worked fine yesterday. I probably can't start X-windows either.

I guess the easiest option may be to do CD update-install or even a complete reinstall. Fortunetaly I've documented and automated most things for a custom low-calorie Kanotix notebook installation.

If someone might however know what causes the above errors I would greatly appreciate any feedback, as of course, the same might happen again but in a less opportune moment.

By the way the Kanotix version I use is 2005-04.
ockham23 - 28.08.2006, 16:49 Uhr
Titel: RE: Odd startup error: cannot execute "/etc/init.d/rcS&
Zitat:
my freshly squeezed Kanotix
Geschockt
What exactly have you done with it?
tuxedo - 28.08.2006, 16:54 Uhr
Titel: RE: Odd startup error: cannot execute "/etc/init.d/rcS&
No big changes. Only adding a few standard programs and deleting some via apt-get. The last application I remember having installed however and for the first time was Real Player via KLIK. My orange squeezer broke this morning too.
ockham23 - 28.08.2006, 17:20 Uhr
Titel: RE: Odd startup error: cannot execute "/etc/init.d/rcS&
Ok, klik and realplayer are definitely not to blame; I've used them many times without any adverse effects.
I suggest you boot off the Kanotix cd, salavage your data to an external drive and then enter
Code:
sudo fdisk -l
sudo testdisk /list
to gather diagnostic information about your hard drive.
tuxedo - 28.08.2006, 19:19 Uhr
Titel: RE: Odd startup error: cannot execute "/etc/init.d/rcS&
Ok thanks for the tip. I have no data to restore. Its a brand new install. Maybe the problem was caused by a faulty hd.
piper - 28.08.2006, 19:46 Uhr
Titel: RE: Odd startup error: cannot execute "/etc/init.d/rcS&
Instead of sudo use su or sux then password

fdisk -l
testdisk /list
ockham23 - 28.08.2006, 19:56 Uhr
Titel: RE: Odd startup error: cannot execute "/etc/init.d/rcS&
@piper: The commands were meant for the LiveCD; i am not yet suffering from Ubuntu virus. Winken
piper - 28.08.2006, 20:03 Uhr
Titel: RE: Odd startup error: cannot execute "/etc/init.d/rcS&
ockham23

I am allergic to Ubuntu period Winken
Swynndla - 28.08.2006, 23:11 Uhr
Titel: RE: Odd startup error: cannot execute "/etc/init.d/rcS&
tuxedo ... I did a similar thing once ... I apt-get removed a few seemingly innocent apps, but I didn't read closely enough before pressing 'y' because it wanted to remove a whole lot more. If it's a new install, may be best to install again?
tuxedo - 28.08.2006, 23:55 Uhr
Titel: Re: RE: Odd startup error: cannot execute "/etc/init.d/
Swynndla hat folgendes geschrieben::
tuxedo ... I did a similar thing once ... I apt-get removed a few seemingly innocent apps, but I didn't read closely enough before pressing 'y' because it wanted to remove a whole lot more. If it's a new install, may be best to install again?


Thanks for sharing that bit of experience.

All I had done in terms of removing programs was:
apt-get remove --purge libwine
apt-get remove --purge wine
apt-get remove --purge quanta
apt-get remove --purge mozilla-thunderbird*

I tried a CD update-install but not even that worked, instead it stopped at the error:
/usr/bin/kanotix-update: line 678 5657 Segmentation fault rm -rf $FOLDER

Its hard to understand why the wine/quanta/mozilla removal should cause the problem.

I also did a bunch of automated installations via a shell script:

apt-get -y --force-yes install nedit
apt-get -y --force-yes install fmirror
apt-get -y --force-yes install fortune-mod
apt-get -y --force-yes install fortunes
apt-get -y --force-yes install fortunes-off
apt-get -y --force-yes install debian-hints
apt-get -y --force-yes install fortunes-de
apt-get -y --force-yes install gift
apt-get -y --force-yes install appolon
apt-get -y --force-yes install apache
apt-get -y --force-yes install gftp
apt-get -y --force-yes install antiword
apt-get -y --force-yes install 3ddesktop
apt-get -y --force-yes install kino
apt-get -y --force-yes install camstream
apt-get -y --force-yes install camstream-doc
apt-get -y --force-yes install ispell
apt-get -y --force-yes install wbritish

Now Kanotix 2005-04 is reinstalling fresh again....
piper - 29.08.2006, 00:08 Uhr
Titel: RE: Re: RE: Odd startup error: cannot execute "/etc/ini
apt-get remove --purge mozilla-thunderbird mozilla-thunderbird-dev mozilla-thunderbird-inspector mozilla-thunderbird-typeaheadfind

I won't comment on the others, I feel "forced" automated installations are not a good idea, but that is only my opinion, anything can go wrong, yes, I have done them in the past, but I have also had my system b0rked more often using it. Winken
slh - 29.08.2006, 00:20 Uhr
Titel: RE: Re: RE: Odd startup error: cannot execute "/etc/ini
--force-yes is actually one of the very stupid ways to ruin your system.
horo - 29.08.2006, 08:32 Uhr
Titel: RE: Re: RE: Odd startup error: cannot execute "/etc/ini
Zitat:
--force-yes is actually one of the very stupid ways to ruin your system.

There are also clever ways?

Ciao Martin
tuxedo - 29.08.2006, 09:28 Uhr
Titel: RE: Re: RE: Odd startup error: cannot execute "/etc/ini
My idea was to automate some application installation procedures, because I seem to find my self installing Kanotix on more than a regular basis, as such, it becomes somewehat monotonous to perform the same installation procedures over and over again... But following this experience I'm converting back to the more regular gui installers or manually typed interactive apt-get sessions.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007