I get disk I/O errors, which are the computer equivalent of coughing up blood; ominous.
They only happen with certain files. I notice it when syncing to my iPod or listening to music, for example. One music file will be a DEVIL FILE and cause the system to throw the I/O errors into the log after hanging up really badly (slow UI, processes crash, etc).
If I delete that one file then no problems for a while until another DEVIL FILE shows up.
I’m trying to figure out if maybe the iTunes-LAME script I use so I can use the LAME MP3 encoder might be contributing to this, or maybe LAME itself, but I can’t see how. Maybe something is messed up with 10.4.3?
It sounds to me like one or two physically bad blocks on your hard drive — you get a problem in a file, delete that file, and then see no more problems until another file decides to use those blocks. I actually don’t know of anything else that would cause something like what you’re seeing; software errors can cause I/O errors, but generally those would be disk-wide and pretty much fatal, the result of a configuration issue. I’ve never seen sporadic I/O errors be caused by anything other than physical disk degradation.
I’m not sure how it works in OSX but I know in unix, fsck has a mark-bad-blocks thing, which goes through and tries to read/write every block on your disk, and tells the OS not to use any blocks that are bad.
The only problem is what you mention in the first sentence — when a hard disk gets one bad block on it, IME it means that it’s going to start getting some more. It might not work out that way though — my general plan when I see stuff like this is to just mark the bad blocks as I see them and start thinking about buying new hardware, but only actually do so once the incidence rate starts really going up.
Backups are a good idea too.
LikeLike
What ^ he said. I used to get all kinds of I/O errors on my Linuux server, not enough to crash it or render it unuseable but when I tried to run certain programs it’d spit. Deleting those was a temporary fix that’d maybe buy me a month.
Luckily it wasnt devastating to the point of inoperability so I was able to get everything but a very few files off it.
Replacing the HDD cured it.
LikeLike
Most likely, it’s the hardware (hard disk). Back up, then speculate ! I’ve seen a similar problem with bad memory, but it’s probably the hard disk.
If you have no space to swap out to, and/or don’t feel like recreating your world, you could try this:
http://techrestore.com/xcart/home.php?cat=255
LikeLike
back up the whole drive to an external firewire drive pronto. you can boot from it if things go south badly.
LikeLike
I have also encountered the devil file before. No idea what it is, but I’m certain it’s not a bad sector thingy.
LikeLike
I get disk I/O errors…
Yes, ominous. These might be the result of filesystem damage that can be repaired with Disk Utility if you start up the computer with the Mac OS X installer disc. On the other hand, they might be the result of exhausting your the “bad sector” list in your hard disk with crashed media. Disk drives wear out. How old is yours?
In the former case, I probably wouldn’t worry— especially if your startup volume isn’t formatted with HFS+ Journaling. The journaling filesystem seems better at avoiding the filesystem failures that result from poorly handled power interruptions. In the latter case, I’d get that puppy backed up and the drive replaced in a big fscking hurry (pardon the pun), before your Powerbook turns into an archeological investigation.
LikeLike
What is this iTunes-LAME “script” you are using? Unless it runs with admin permissions and changes to root (which requires a password dialogue of some kind), I can’t see how it could reasonably be blamed for filesystem corruption.
LikeLike
it’s an applescript + mp3 decoder binary
i didn’t necessarily think it caused the problem, but so far all the issues have been with music files. also the problem occurred after a 10.4.3 update which makes me wonder if there’s some ugly subtle kernel or filesystem bug, ug.
LikeLike
Hmm… um… what were you running on it before 10.4.3? Panther, perhaps?
LikeLike
Tiger. It came with tiger. This is a nearly brand new powerbook.
LikeLike
hfs_fsck in single user mode is clean. powerbook is almost new but a refurb. i have applecare so hardware replacement just requires fistfight at apple store. startup disk has HFS+ journaling. probably just going to back it up and take it in. mostly I dread their “you broke it” routine there lately and the fight-or-flight response I get when a couple of the dicks who work there decide to make me feel bad.
LikeLike
What do the “I/O errors” look like?
LikeLike
Nov 7 15:40:53 abe kernel[0]: disk0s3: I/O error.
Nov 7 15:41:56 abe kernel[0]: disk0s3: I/O error.
LikeLike
Ouch. Show those to the AppleCare people. Looks like evidence of a serious hardware problem. AppleCare has a proprietary diagnostic suite that should let them see what’s wrong and fix it. They may want to take it to a lab for a few days, so be prepared to live without it for a few days. Or weeks, if the hardware gods hate you.
LikeLike
Try “Disk Utility” from the install disc. Yes, I’m recommending that because Disk Utility does things that hfs_fsck does not.
LikeLike
I’ve actually done that. And run Applejack. And a few other things 🙂
LikeLike
For what it’s worth, I don’t think you broke it. I suspect you have a drive that AppleCare would really like to get their hands on.
LikeLike
To add to your list of tools, I hear Tech Tool Pro is pretty snazzy, although I cannot personally recommend it as I have never used it. It looks to be a bit spendy, too.
LikeLike