image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old October 11th, 2000, 07:37 PM
bfc bfc is offline
Registered User
 
Join Date: Oct 2000
Location: MN
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
bfc is on a distinguished road
Angry

The few posts about terminal.app not working are a result of this.

I have found a HORIBLE EVIL BUG in MacOSX!! All of these files have ben some zeroed out, they dont have a file size! Other people are reporting the problem on macosx.com but i'm afraid this might happen to alot more people as time goes on. I first noticed it when i started up Terminal.app and it said "[Prossess compleated]". You cannot copy the files from the cd, i cant chown them anyways! People have tried to reinstall but only left with a formated HD and lots of frustration! Someone HELP!

Some files that have been whiped out:
bfc% ls -la /usr/sbin | grep " 0 "
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 chown

bfc% ls -la /usr/bin | grep " 0 "
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 arch
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 at
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 atq
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 atrm
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 batch
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 chfn
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 chgrp
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 chpass
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 chsh
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 cksum
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 compress
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 cpio
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 emacs
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 emacs-20.7
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 ex
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 gawk
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 gawk-3.0.4
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 groups
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 gunzip
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 gzcat
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 gzip
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 hexdump
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 id
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 machine
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 od
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 perl
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 perl5.6.0
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 reset
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 sum
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 tar
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 texi2html
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 tset
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 uncompress
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 uptime
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 vi
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 view
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 w
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 whoami
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 zcat
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 zcmp
-rwxrwxrwx 1 root wheel 0 Sep 25 17:42 zdiff

bfc% ls -la /bin | grep " 0 "
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 [
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 csh
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 pax
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 test

bfc% ls -la /bin | grep " 0 "
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 [
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 csh
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 pax
-rwxrwxrwx 1 root wheel 0 Sep 25 17:39 test
Reply With Quote
  #2  
Old October 14th, 2000, 10:02 PM
Registered User
 
Join Date: Oct 2000
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
parody is on a distinguished road
Did you perchance try that hack in which you can run the OS 9 Finder in OS X after changing Finder's file type to APPL in ResEdit?

Apparently, if your OS 9 System Folder is on the same partition as OS X, running the OS 9 Finder as a Classic app zeroes out some OS X stuff, starting with /bin/tcsh, and spreading from there. There may well be other ways of awakening this bug.

Someone else reported that doing this hack doesn't zero these OS X files when the OS 9 Finder/System Folder is on a separate partition from OS X.



http://www.deja.com/getdoc.xp?AN=679973183
Reply With Quote
  #3  
Old October 14th, 2000, 10:09 PM
bfc bfc is offline
Registered User
 
Join Date: Oct 2000
Location: MN
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
bfc is on a distinguished road
maybe

I did dubble click on the finder once but i didnt notice the problem tell a few days after, and after a few restarts... this could posibly be the cause, Thanx for your comment.
Reply With Quote
  #4  
Old October 17th, 2000, 11:07 AM
Registered User
 
Join Date: Oct 2000
Location: Fort Lauderdale
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
HiperMac is on a distinguished road
I took a look around and I noticed that there are files that are considered o size .... when I look at the same file with the gui interface and I inspect them with the inspector they all come up with something around 32 ks ..... uhmmmmmmmmmmm

Can it be the way file size is read???

I did not use finder as an app....I think so.

Thanks
Reply With Quote
  #5  
Old October 17th, 2000, 05:12 PM
Registered User
 
Join Date: Oct 2000
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
LunaMorena is on a distinguished road
Different filesizes

Quote:
Originally posted by HiperMac
I took a look around and I noticed that there are files that are considered o size .... when I look at the same file with the gui interface and I inspect them with the inspector they all come up with something around 32 ks ..... uhmmmmmmmmmmm

Can it be the way file size is read???

Well in this case, the Mac OS and a *nix system read file sizes differently. The Mac OS reads up how much space it takes on the drive while the BSD system reads how big the file actually is.

Sound confusing? Well the reason is that the HD is divided up into little pieces called "blocks". How big these are under HFS and HFS+ depend directly on how big your hard drive is, because it is divided into a set number of blocks. HPFS+ has more blocks than HFS; that's the main difference between the two. You cannot put more than one file in a block but each file can take up more than one block.

So for instance each block on my hard drive is about 4k. if I have a 15k file, it will take up 4 of those blocks. The Mac will report the size as 16k since that's how big 4 blocks are, and the BSD system will report the size as 15k. A 0 k file, since it exists will still take up a block, so the mac OS will still report it as 4k (or however big one block is on your system).

Which method of reporting is better? Well, the Mac is a more accurate measure of how much space each file occupies ON YOUR SYSTEM, but if you ever plan on transferring the file to another system, the BSD reporting is more accurate, since the other system may have different-sized blocks.
__________________
Normality is a curse for the weak.
Sierra Kempster, http://www.lunamorena.net/
iMacDV/400, 192mb (Grape)
Reply With Quote
  #6  
Old October 21st, 2000, 04:56 PM
Registered User
 
Join Date: Oct 2000
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
bongoherbert is on a distinguished road
Exclamation

For what it is worth, it is probably a good idea to not confuse correlation with causation- to wit- I have had the same thing happen and I had not even heard about the res edit hack until I looked at this board.

I have a bunch of 0-length files right at this moment and, to the best of my memory, I can't even remember running Classic on this machine...

Reply With Quote
  #7  
Old October 21st, 2000, 07:36 PM
Official Volunteer
 
Join Date: Oct 2000
Location: UAF, Fairbanks, AK
Posts: 409
Thanks: 0
Thanked 0 Times in 0 Posts
macavenger is on a distinguished road
Speed Disk Fix???

It doesn't make sense to me, but I have been having this problem for several restarts. Then I ran Norton speed disk 6.0b45, and the next time I restarted my computer all the file sizes were back to normal, and have been fine ever since. Did SpeedDisk fix the problem, or was it just coincidence that the problem fixed itself after I ran Speed disk? it did not happen with earlier versions of speed disk.
Reply With Quote
  #8  
Old October 21st, 2000, 09:52 PM
Registered User
 
Join Date: Oct 2000
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
parody is on a distinguished road
Quote:
Originally posted by bongoherbert
For what it is worth, it is probably a good idea to not confuse correlation with causation- to wit- I have had the same thing happen and I had not even heard about the res edit hack until I looked at this board.

I have a bunch of 0-length files right at this moment and, to the best of my memory, I can't even remember running Classic on this machine...

By the way, that's why I included these words in my original post: "There may well be other ways of awakening this bug."

That said, it is worth reiterating that I am confident that the actions I described in my first reply do indeed directly result in the immediate appearance of zero length files. Further details may be found in the URL I supplied in that reply.

But how and why remain the open questions. The fact that another person has reported that the file sizes get automagically repaired after running Speed Disk is intriguing. Perhaps this suggests the bug is really symptomatic of a filesystem problem. I would expect the typical user to run Disk Doctor before applying Speed Disk, and perhaps Disk Doctor patched things up...


Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
geeks vs. computer users edX Opinions, & Open Letters 172 July 26th, 2003 12:21 AM
Login with a computer into an other computer with Mac OS X? senne Networking & Compatibility 4 April 20th, 2003 04:41 AM
Omniweb updated edX Mac OS X System & Mac Software 1 February 9th, 2003 11:23 AM
Arg!!! Annoying problem (and iTunes bug)! simX Apple News, Rumors & Discussion 2 December 16th, 2001 03:31 PM
AntiBody computer bug ! WhateverJoe Mac OS X System & Mac Software 0 August 15th, 2001 04:30 PM


All times are GMT -5. The time now is 11:45 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.