Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers

Thread Tools Rate Thread Display Modes
Old 03-31-2002, 04:41 AM   #1
Join Date: Jan 2002
Posts: 11
Unhappy Deleted /bin/sh ... Oops!

While trying to write a sample script to print the date, I moved it to /bin/sh hoping that would get it to run.

Howerver, as you probably guessed, /bin/sh is not a folder, but a file. So I stupidly replaced my sh file with the simple script.

Realizing what I had done... I then quickly connected to another OS X computer and copied their /bin/sh file over.

Then I rebooted.

Lo and behold, it seems I forgot to set permissions, or something, because now it won't boot!!~!!!

I get the semblance of a kernel panic and the message that it can't execute the file.

I need serious help in fixing this. Keep in mind I can only boot in OS 9.


Han_Solo is offline   Reply With Quote
Old 03-31-2002, 06:18 AM   #2
Triple-A Player
Join Date: Mar 2002
Location: Sydney, Australia
Posts: 158
are u able to boot in single user mode (command+s, at start up) and run fsck.
gowrann is offline   Reply With Quote
Old 03-31-2002, 08:13 AM   #3
Join Date: Jan 2002
Posts: 11
Smile Fixed


Thanks for the tip. didn't have to use it after all.

I booted in OS 9 and used ResEdit to make visible the file and replace it with the original from the CD. I then made it invisible again...

Seems to work so far.

Anyone know if 10.1 sh is different from 10.0?


Han_Solo is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 08:30 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.