User Name
Password
AppleNova Forums » Genius Bar »

My 'ls' is broken!


Register Members List Calendar Search FAQ Posting Guidelines
My 'ls' is broken!
Thread Tools
colivigan
Veteran Member
 
Join Date: Nov 2005
 
2006-12-05, 07:33

I came down this morning and was greeted by the infamous "startup disk nearly full" warning displayed over top of my login window. WTF? Inconceivable!

In fact, it was completely full. After a little investigation, I discovered a 25 GB windowserver.log file in /private/var/logs. it was full of messages like this:

Quote:
Dec 05 06:48:07 [5902] (ipc/rcv) invalid name: CGXRunOneServerPass: mach_msg (gServiceSet) failed (last RPC: LaunchAppRequestWithAuditInfo)
Deleted the offending log file and got my disk space back. Ran Disk Utility and repaired permissions, rebooted, and now everything seems fine ... almost.

I cannot run an 'ls' command from Terminal! It gives an error similar to those that were in the windowserver.log:

Quote:
bash> ls
/bin/ls: line 1: syntax error near unexpected token `('
/bin/ls: line 1: `id name: CGXRunOneServerPass: mach_msg (gServiceSet) failed (last RPC: LaunchAppRequestWithAuditInfo)'
Syntax error? Huh? I Googled unsuccessfully. Any ideas?
  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2006-12-05, 07:46

Boot into single-user mode (cmd-S) and do, in this order:

Code:
fsck -fy mount -rw / rm -rvf /var/log/windowserver.log rm -rvf /System/Library/Caches rm -rvf /Library/Caches rm -rvf /Users/(you)/Library/Caches reboot
Naturally, replace "(you)" with whatever your main account's user name is.

FWIW, it's not ls that's broken.
  quote
colivigan
Veteran Member
 
Join Date: Nov 2005
 
2006-12-05, 09:34

Thanks, chucker, I'll try this tonight when I get home.

If I'm understanding correctly, I probably have one or more corrupt or partially written cache files (directory cache?), most likely a result of the disk-full condition. This is causing 'ls' to choke, and scrubbing the caches will eliminate the problematic file(s) and resolve the immediate issue.

Any idea what would cause windowserver.log to asplode like this in the first place?
  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2006-12-05, 12:29

Quote:
Originally Posted by UncleJohn View Post
If I'm understanding correctly, I probably have one or more corrupt or partially written cache files
Yup, that's my guess.

Quote:
Any idea what would cause windowserver.log to asplode like this in the first place?
No. Seems a very rare bug.
  quote
colivigan
Veteran Member
 
Join Date: Nov 2005
 
2006-12-05, 18:58

Well, I cleared the caches per chucker's suggestion, and it didn't fix the ls problem. And now my fans run continously, full-on.

I tried resetting PRAM and NVRAM per the sticky in this forum, and still no joy. Any other ideas?

This is a PM 1.8 single running 10.4.8 with the latest security updates.

Update: Powered off and unplugged for several minutes to reset SMU, and that has fixed the fans. Thank goodness, that thing sounded like a jet engine! But I still can't 'ls'. Does OS X have a utility like truss or strace so I can try to figure out what files it's opening and possibly choking on?

Last edited by colivigan : 2006-12-05 at 20:24.
  quote
colivigan
Veteran Member
 
Join Date: Nov 2005
 
2006-12-05, 20:53

Quote:
Originally Posted by chucker View Post
FWIW, it's not ls that's broken.
Believe it or not, it was.

Even though Finder didn't show a recent modification date for /bin/ls (obviously, I couldn't run ls -al)
I decided to try copying /bin/ls from my iMac running the same OS version over to the PM G5, and now all is well!

I can't wait to find out what else is broken. Full disk BAD!
  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2006-12-06, 04:28

Hmmm, I would recommend installing BaseSystem.pkg, Essentials.pkg and then Mac OS X 10.4.8 Combo(! not delta!).
  quote
colivigan
Veteran Member
 
Join Date: Nov 2005
 
2006-12-06, 09:28

Quote:
Originally Posted by chucker View Post
Hmmm, I would recommend installing BaseSystem.pkg, Essentials.pkg and then Mac OS X 10.4.8 Combo(! not delta!).
Yeah, I was thinking that a reinstall might be wise. Can I just install those packages individually off the Tiger DVD, without going through the installer itself?
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2006-12-06, 09:39

Quote:
Originally Posted by UncleJohn View Post
Yeah, I was thinking that a reinstall might be wise. Can I just install those packages individually off the Tiger DVD, without going through the installer itself?
It's possible, but I wouldn't recommend it.
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken iPod nano. Genius Bar? Windowsrookie Genius Bar 12 2006-07-27 10:48
Broken Powerbook 867 = DVD Jukebox? b00ts Genius Bar 0 2006-04-07 19:34
Broken key on PB RTB Genius Bar 4 2005-02-15 14:10
powerbook accident - broken keyboard and body writesimon Genius Bar 10 2004-12-22 21:00


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 05:10.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova