Init can't exec /bin/sh for /etc/rc

2006-04-14 Thread Günther Darwin
Hi, I was running the buildkernel command when the computer suddenly froze 
and the only option i had was a 'hard reset' unfortunatley it wasn't all 
trouble free this time. When i try to start FreeBSD

I get the message: Init can't exec /bin/sh for /etc/rc Exec format error.

I have tried to boot into Multiuser mode, with this error message
i have tried to boot into singeuser mode, with the same error message
i have tried to boot into failsafe mode with the same error message
i have tried to clean all my partions with fsck -y (in Fixit# mode), with 
the same error message

i have checked that sh is where it's supposed to be (ls /bin/sh)
i have tried smashing my head against the wall with the same error message


Any suggestions?

_
Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Init can't exec /bin/sh for /etc/rc

2006-04-14 Thread Chuck Swiger

Günther Darwin wrote:
[ ... ]

i have tried smashing my head against the wall with the same error message

Any suggestions?


Be nice to your walls, they keep rain and snow outside.  :-)

You could try doing a binary upgrade installation from a FreeBSD install 
CD-ROM; this will preserve your configuration and user files if you don't tell 
it to reformat your partitions.


Make a backup first, anyway.

--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Init can't exec /bin/sh for /etc/rc

2006-04-14 Thread Beech Rintoul
On Friday 14 April 2006 10:39, Günther Darwin wrote:
 Hi, I was running the buildkernel command when the computer suddenly froze
 and the only option i had was a 'hard reset' unfortunatley it wasn't all
 trouble free this time. When i try to start FreeBSD
 I get the message: Init can't exec /bin/sh for /etc/rc Exec format error.

 I have tried to boot into Multiuser mode, with this error message
 i have tried to boot into singeuser mode, with the same error message
 i have tried to boot into failsafe mode with the same error message
 i have tried to clean all my partions with fsck -y (in Fixit# mode), with
 the same error message
 i have checked that sh is where it's supposed to be (ls /bin/sh)
 i have tried smashing my head against the wall with the same error message

You do have backups, don't you?

You could try a binary upgrade. Other than that you're looking at doing a 
restore.

Beech

-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Mangohealth
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - XanGo - http://www.mangohealth.org
---













pgpnjoFCHdAdn.pgp
Description: PGP signature


Re: Init can't exec /bin/sh for /etc/rc

2006-04-14 Thread Garance A Drosihn

At 8:39 PM +0200 4/14/06, Günther Darwin wrote:
Hi, I was running the buildkernel command when 
the computer suddenly froze and the only option 
i had was a 'hard reset' unfortunatley it wasn't 
all trouble free this time. When i try to start 
FreeBSD

I get the message: Init can't exec /bin/sh for /etc/rc Exec format error.

I have tried to boot into Multiuser mode, with this error message
i have tried to boot into singeuser mode, with the same error message


When going into single-user mode, is there some other copy
of 'sh' that you could start off with?  It will ask you
before starting the shell.  One likely candidate would be
in  /rescue/sh

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]