"sh-2.05a#" on crashing initial loading screen.

Yesterday, I had a problem with my cd drive:
http://discussions.apple.com/thread.jspa?threadID=1559020&tstart=0

Trying to fix it, I followed these instructions:
http://docs.info.apple.com/article.html?artnum=106345
which involved updating the hostconfig file. I now wish I hadn't of done this.

I restarted my computer as was told and now it doesn't get past the initial grey loading screen and has a:

"sh-2.05a#"

code message at the top left hand corner of the screen. The loading wheel now stops too.

Please help!!!!
I seriously can't lose everything on my harddrive, it would be a major problem for me.

Mac Powerbook G4, Mac OS X (10.2.x), Memory: 512 MB / Processor: 1.33 GHz PowerPC

Posted on Jun 14, 2008 6:11 PM

Reply
7 replies

Jun 14, 2008 8:07 PM in response to tom_dutch69

at the sh-2.05a# prompt you could undo what you did by reversing step 6.
You did do step 6 yes? If you didn't then this won't apply. What step 6 did was copy the original and save as a file called hostconfg.old.
Now following the code below replace the changed hostconfig with the original one that you saved.

6. Type

sudo mv /etc/hostconfig.old /etc/hostconfig


7. Press Return.
8. Type the Admin user password, and press Return. (that might not be necessary here but do so if requested)

Now restart and see if it boots correctly.

By the way, the article that you followed applies to 10.0.1 to 10.0.4. Your profile says you are on Jaguar 10.2, so at first glance, I would not have thought that solution would apply to you.

Try replacing the CD drive. Do you have a spare one around?

Jun 15, 2008 5:26 AM in response to roam

Thanks so much for replying!!
I believe I did do step 6, yes, I followed the instructions completely.

I typed the code you gave me and it now says:

"mv: rename /etc/hostconfig.old to /etc/hostconfig: Read-only file system
sh-2.05a#"

I've tried the admin password, return and restart here and it's goes back to the original sh-2.05a#.
So is there anything else I could try now?

And thanks for pointing out that I have the wrong profile for the 10.0.1, I feel quite stupid now as I didn't realise this at the time.

I'm really not worried about the Cd drive at the moment, I just want my laptop/harddrive back.

Jun 15, 2008 6:44 AM in response to roam

Oh My God! It worked!

Thank you so much, I am so grateful for your help. How can I ever repay you?

Is there anything I need to do now I can log back in, or did the code you gave me replace any mistakes I may have entered into terminal?

I am just going to go and back up everything that is valuable on my harddrive.
Thanks again roam, you are a saint!

Jun 15, 2008 7:00 AM in response to tom_dutch69

Is there anything I need to do now I can log back in...


No, you are back to normal now. The CD drive seems less important now.
Backing up is a good idea. If you have an external firewire drive, then using SuperDuper which is free can create a bootable clone on the external drive. The other day I was playing around with a configuration file trying to get a printer to work and ended digging myself into a hole. So a reinstall from the clone put me back to square one.

I am glad things worked out and thank you for your reply.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"sh-2.05a#" on crashing initial loading screen.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.