Frequent 'Filesystem Corrupt', Invalid File count

I have been getting this message every a couple of days in my MBP or iMac running 10.6.2. It happens/visible only when I runs Disk Utility and Verify Disk. Of course, this brings unsettling point to me when it comes now and then. Not to mention I have to boot from DVD to run disk utility to fix this
Error Message: Invalid file count (It should be xxxxx instead of xxx+1) AND
Error Message: Invalid volume directory count (It should be xxxxx instead of xxxx-1)
Any idea what causes this and what's the impact i.e. do I lose any files?
Thanks!!

Leonard Ong wrote:
Hi Tim,
By default, it is HFS+ Journaled (non-case sensitive). So I have also the same understanding that journalled filesystem should be robust as you wrote it. But the fact that this comes now and then, It created some doubts.
Is this a harmless error message or should I be worried about it. That basically my questions. I do repair when I see this.
It can't be because of disk is failing for a number of reason:
1) I have the same behavior both in my iMac and MBP
2) Both HDD has been replaced with new one recently
3) Both HDD has passed through surface scan from TechTool Deluxe 5.0.6, so no bad blocks
Still a puzzle...
Are you sure that the errors are showing up on both computers when performing either a "Verify Disk" or "Repair Disk" and NOT just a "Verify Disk Permissions" or "Repair Disk Permissions"? Permissions errors are mostly harmless. Filesystem errors (the sort you see when you ask for "Verify Disk" or "Repair Disk" in Disk Utility are not harmless and you should be worried about those.
If so, then either both drives are failing or your drives are being exposed to a strong enough magnetic field to damage their data (and that would have be pretty strong -- a common refrigerator magnet wouldn't do the trick.) In all of my years of working with journaled filesystems (or operating systems with "filesystem logging" which is the same thing) I have NEVER seen a journaled volume have filesystem errors unless it was physically failing.
Journaling will prevent filesystem errors if it's enabled for pretty much every cause except for a physically defective or damaged disk. Here's the short version of how journaling works...
Journaling (aka "filesystem logging") is intended to prevent filesystem corruption... and it's pretty rock-solid.
1) A "journal" (or "log") area is added.
2) A hard rule is established that, under no circumstances may the OS be performing writes to both the journal and the regular filesystem at the same time. One must be flushed before it can work on the other and vice versa.
3) When a write operation is about to happen, the OS writes information to the journal indicating which blocks on the filesystem are about to be changed and what it's about to change. This information is flushed to disk.
4) The OS can then perform the write on the actual filesystem areas it intended to change. These must then be flushed to disk.
5) The journal can now be cleared.
That's pretty much it (simplified). But think about what this does. Normally if something interrupts a write operation (something crashes, a kernel panic, a power loss, etc.) there is something that will still have integrity because the OS will not write to both the journal and the regular filesystem at the same time.
If a failure occurs while writing to the filesystem it's no big deal. When the system boots back up, it notices the journal wasn't cleared so it "replays" the journal. This re-writes any blocks that might only have been partially written thus clearing any chance of corruption on the volume.
If a failure occurs while writing to the journal it's still no big deal. When the system boots back up it notices a corrupt journal, but that means the regular filesystem itself wasn't being touched so the filesystem is guaranteed to not have errors on it (although it does mean the last file you were about to save probably didn't get saved -- and that file wouldn't have written successfully even if journaling were off. At least this way there is no filesystem corruption.)
While it sounds pretty solid (and it is) there's still a potential for corruption, but it's rare. If a drive swings the access arms to a specific track and starts writing data, the assumption is that the write head is above the correct track. If the head is "sloppy" due to wear, then the head may be slightly mis-aligned and bleeding writes into the adjacent track. This will cause filesystem corruption even with journaling enabled.
If these drives came with the computers then the only warranty would be via Apple. If you purchased these drives on your own then they probably came with a pretty good manufacturer warranty -- most drives I've purchased in recent years had at least a 3 year warranty.

Similar Messages

  • Frequent Filesystem Corruption

    *+Hello Interwebs!+*
    OK, I'll just jump right into the heart of the matter. I'm a tech for my local school district and we are having some problems with our iMac Multimedia Lab. Over the past nine months, 5 of the 22 iMacs have suffered from filesystem corruption. The only recourse for these machines has been to completely wipe out the OS X partition and start fresh (with appropriate restore from Time Machine.)
    *_Here's the list for why I know it's file system corruption:_*
    The iMac will not boot OS X. I have seen it stop at the "throbber", the progress bar, or just the Apple logo.
    Mounting the iMac disk via Target Disk Mode (love that feature) succeeds, but only for the Bootcamp partition. The OS X partition fails to mount.
    A verify of the disk reveals the OS X partition needs to be repaired (I've seen invalid sibling entries, orphaned children etc.). Attempting to repair the disk fails. This latest attempt (just yesterday) said that the catalog B trees could not be rebuilt. I should have made more complete notes on what was said each time, but each time until this last one I assumed it was an odd one-in-a-million kind of event. A fluke
     Attempting to repair or rebuild the drives with Drive Genius 3 also fails
    So far 98% of the user's files have been recoverable via Data Rescue 3
    The physical hard drive does not appear to be failing (retrieving files from the drive does not hang or "beachball", the drive does not appear and disappear in Disk Utility, Finder remains responsive, etc.)
     Normally I'd chalk it up to a series of bad drives. Just happened to be the unlucky guy who purchased a bad run of iMacs, right? Here's where things start to get interesting. I submit to you, the list of oddities:
     The drives verify as good via SMART
     The RAM checks out
     After deleting and re-creating the partition (and re-installing OS X) all problems disappear.
     The corruption has not happened to the same Mac twice
     Bootcamp is installed on the same drive and functions before, after, and during the corruption on the Mac side.
     The Bootcamp partition has not had this issue on ANY of the iMacs
    *_Also, to rule out the obvious:_*
     There have been no brownouts or surges
     We seriously doubt a virus, as the malfunctions appear anywhere from simultaneously (two machines went down at the same time about a month ago) to months apart. Plus, the user's documents are restored after reformat, so one would surmise that if it were a malicious program the Mac would keep failing again and again.
     The machines have been in a climate-controlled area
     It has not been the same user affected
     Sometimes the problem occurs after an unavoidable hard shutdown (which occurs only infrequently. These machines are not being excessively powered down improperly. Only what you would expect with a Mac Lab running multimedia five days a week), other times it is completely out-of-the-blue
    *_And last but not least, the specs:_*
     iMac 10,1 (21.5 inch)
     Stock drives
     OS X Snow Leopard (latest updates)
     Stock memory
     Joined to our Active Directory infrastructure
     HFS+ file system (not case sensitive, the default for OS X Snow Leopard)
     No out-of-the-ordinary drive maint. programs. Drive Genius was loaded yesterday afternoon (AFTER recovering from the latest failure) to run a verification on all iMacs, but was not installed prior. All Macs, both those that have failed in the past and those that have never failed, passed with flying colors.
    *_Frequently used software includes:_*
     iPhoto
     iDVD
     iMovie
     Safari
    The machines are also loaded with Parallels 5, which loads the Bootcamp partition into a VM. Parallels was setup via the standard wizard, no oddball configuration or hacks.
    TL;DR:
    *The OS X partition has become corrupted on five different iMacs, but the physical drives are fine. WHY!?*

    I have TechTool Pro: what tests do you run with that?
    I'm inclined to believe that you may have a failing drive that's just not being recognised by the tools you have to hand.  I'd encourage you to make a couple of secure backups as soon as possible, and consider changing the drive forthwith.
    Maybe someone else can offer less scare-mongery advice…

  • Invalid File Count (Disk Utility)/slow machine. Possible RAM/HD issue?

    I have an entry-level macbook (2010, white plastic unibody). Over the past year, every few months or so my system would become painfully slow (30 minute boot times, the rainbow beach ball popping up every few minutes). I would run the disk verification via Disk Utility and it would often come back with the error "Invalid Volume File Count". After booting into the OSX cd and running a repair, everything would be back to normal and the system was working as good as new. However, over the two months, this issue has been happening a lot more frequenty (almost once a week). I've ran the "Apple Hardware Test" and memtest and both came up with nothing. I decided to format the system and start from scratch. The boot time is now as fast as it was when I first bought the machine, however it's still hanging up on the most trivial processes (opening finder, typing a URL into Safari). Now that i've reformatted, I ran all of the diagnostics again (Disk Utility reports that "The Macintosh HD appears to be ok", memtest reports no issues, and neither does the Apple hardware test). Due to the number of times I had to run the disk repair, and the fact that the system is still having issues after formatting, i'm leaning towards this being an issue with the hard drive, however, all of the diagnostic tools I've tried so far want to tell me otherwise haha. Does anyone have any ideas/have experienced anything like this?

    I went into Recovery HD and ran Disk Utility. It verified and repaired the permissions without any data loss or problems. As a bonus the boot problem seems to have been recitifed.

  • Illustrator CS4 - frequently generates corrupt EPS files that will not parse

    I have used many versions of Illustrator prior to and including the CS lines.  I am currently running CS4 and this is the first time I have experienced this issue.  Approximately half of my EPS formatted illustrator files will not parse.  I use Quark Xpress 7 for my layout (never liked any of the Indesign programs).  If I try to generate a PDF with my CS4 generated EPS files placed at least 60% of the time the placed file will corrupt the PDF export resulting in no PDF being generated. 
    Further to this PDF export issue, if I attempt to parse the same EPS file into Photoshop, Photoshop will give me the error message "Could not complete your request because Photoshop was unable to parse the PostScript" and it will abort the attempt to open the file.
    Anyone else having Illustrator EPS file issues?
    Background info (if needed) Dual 2.0 Ghz, PowerMac G5, 8 gb RAM, running Tiger 10.4.11
    I have attached a sample Illustrator file that will not Parse.  It will open in Illustrator but not parse into Photoshop or if placed in Quark will not parse and allow for a PDF to be exported.

    Thanks for taking the time to write Steve. 
    I understand that I can drag and drop between programs.  Ultimately, when attempting to parse an EPS in photoshop I am merely doing it to confirm that the EPS is indeed corrupt. 
    As mentioned previously, I predominately use Quark Xpress for my page layout program and until I installed CS4 I have had zero complications with using EPS files.  Now I quite commonly can not export PDFs due to corrupt EPS files. 
    My question to the public is I am alone in this glitch or do others experience the same issue.  My first thoughts are that CS4 has a glitch and I should be expecting an update in the near future.  But, if I am the only person suffering from this issue than maybe I should be looking at my own software.

  • First Aid Services reports Errow "Invalid Volume File Count"

    In attempt to deleate a small Windows psrtition and creating a larger new Windows partition, Boot Camp directed to First Aid where the resulting error messages are "Invalid Volume File Count" and Invalid File Count",  Directions to reboot with program disks failed to work.  What next??

    What failed to work? Booting to your OS installer disk or running Repair Disk from Disk Utility when you were booted to the installer disk?

  • Invalid volume file count

    My system gets stuck on gray screen at start-up. I boot as target drive and use disk utility from my laptop to repair the invalid file count. It starts up fine for a few starts, them hangs on gray screen again. Any fixes?
    Once I've repaired the drive remotely from my laptop using the disk utility with the mac pro booted in target mode it starts up ok 2 or 3 times... then gets stuck again and disk utility reports the same invalid count message.

    You may be getting that notice from a drive that is having problems.
    Do you have current backups? If not, put everything aside and make backups as soon as possible, as the drive may be about to fail catastrophically.
    There is a lot you can do to restore your faith in that drive. But several steps in the process take all afternoon. I suggest you buy a new drive and replace the one that is being unreliable, then work on the unreliable drive at your leisure.
    One thing that makes a drive unreliable is blocks that are Bad, or that require many retries to get good data. The classic way of dealing with this problem is to security Erase and write Zeroes into every data Block. It takes Hours, but can be done in the background IF this were not your Boot Drive.
    When completed without error, the drive has substituted spares from its private stash to replace any Blocks found bad after Zeroing. If too many blocks were spared out, the Zeroing can be repeated, but the drive should be assigned lighter-duty use, such as periodic Backups. Sometimes the drive never passes, and must be retired.

  • Invalid volume file count and directory count

    My wife's macbook pro started shutting down by itself randomly, so i performed Disk Utility Verify Disk and found these errors:
    Invalid volume file count
    (It should be 800651 instead of 800653)
    Invalid volume directory count
    (It should be 191005 instead of 191003)
    The volume Macintosh HD needs to be repaired.
    Error: Filesystem verify or repair failed.
    As i do not have the Mac OS Leopard disks physically with me, I target-disk started her mac on my mac, and use my mac to run Disk Utility on her hard-disk, and repaired the disk without problems.
    However, this is the 3rd or 4th time this has happened. After the 1st time, i figured something is causing it, so i checked this forum, and found that for some, the Blackberry Messenger app causes programs, so i promptly uninstalled it fully (including associated system files) and this problem didnt come back for a while.
    Or could this be a sign the hard disk is physically failing soon? It is out of warranty now. We have regular TimeMachine backups. We are actually kinda waiting out until the new line of macbook pro's come out.. (hopefully in June at WWDC)
    Any suggestions as to how else to address this? Thanks!
    Laptop stats: MacBook Pro 15"
    2.4 GHZ Intel Core 2 Duo
    2 GB RAM
    HDD: 250GB
    Graphics: NVDIA GeForce 9400M VRAM 256MB
    OS: Mac OS Leopard

    Well, the disk errors are due to corruption caused by the random power downs, so focus on getting that issue solved first. What's the stats on the battery?

  • Verify Disk: Invalid Volume File Count

    So... I'm not really sure what to do or what exactly is wrong. I'm hoping not to reboot or reinstall all together, but if I have to... I suppose there's no choice.
    I tried 'Verify Disk' from the utilities, but is fails and says
    Invalid volume file count
    (It should be 712836 instead of 712840)
    Invalid volume directory count
    (It should be 171417 instead of 171413)
    The volume Macintosh HD needs to be repaired.
    Error: Filesystem verify or repair failed.
    I tried doing a 'Repair Disk' from the installation CD, but it says it fails because it could not unmount the HD.
    what am I doing wrong and how can I fix it and is it really bad?
    I've heard some suggest to go buy Disk Warrior. Will this fix it... or.. probably not?

    *"Will this fix it... or.. probably not?"*
    You won't know until you give it a try. You should own a copy of Disk Warrior anyway for at least some peace of mind in the future.
    If it doesn't work, then you'll need to backup your files, erase the drive and start from scratch.

  • Verify Disk gives message invalid volume file count/invalid directory count

    My Powerbook G4 (running Leopard 10.5.5) was running slower and slower. So I ran Disk Utility. When running “Verify Disk”, I received the following message -
    Quote
    At “checking volume information”, got the following message –
    Invalid volume file count
    (it should be 608262 instead of 608269)
    invalid volume directory count
    (it should be 126277 instead of 126270)
    The volume Macintosh HD needs to be repaired.
    Error: Filesystem verify or repair failed.
    Unquote
    A friend told me my hard drive was DEAD and needed to be repaired. Is this true or is there some way to fix my drive?

    I started up from my latest OS X Installer (Leopard) and opened Disk Utility (although it seems to give me the Disk Utility that's on my Hard Drive, NOT one on the installation disk). Repair Disk was NOT an option (even after running Verify Disk again to see if that helped).
    So, now what do I do now? Disk Warrior may help (or it may not) and a new hard disk isn't THAT expensive. Should I just go ahead and bite the bullet and get a new hard drive???
    Oh, and while I'm asking questions - my PowerBook G4 is 5 years old. Besides the dodging hard drive everything else is running ok. But after 5 years (mainly run on mains power, not the battery), is it about time for a new battery? Is there a way to tell whether your battery is about to die before it actually dies and you can't start up?
    Message was edited by: paswines

  • Disk Utility: invalid volume file count & directory count

    My MacBook OS X version 10.5.8 has ran quite slowly occasionally but I think that's due to the fact I've had it for almost 5 years. But then yesterday it kept on freezing every few seconds so that it was impossible to do anything. I then left it overnight and in the morning cleared the safari cache and kept rebooting it which eventually stopped it freezing so often. But now certain applications such as iTunes keep quitting before they even open properly and applications that do work still freeze every so often. So then I ran disk utility and verified the disk which came up with this:
    "Performing live verification.
    Checking Journaled HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Checking volume information.
    Invalid volume file count
    (It should be 759557 instead of 759584)
    Invalid volume directory count
    (It should be 157930 instead of 157903)
    The volume Macintosh HD needs to be repaired.
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Checking volume information.
    Error: Filesystem verify or repair failed."
    However the 'repair disk' button is dimmed so I can't click on it. Then when I typed in my problem on the help bar it said I need to use the installation disk to be able to repair this but I don't know where this disc is, so was wondering if there are any ways of fixing this without needing a disc?

    was wondering if there are any ways of fixing this without needing a disc?
    No.
    You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair:
    http://support.apple.com/kb/HT1782?viewlocale=en_US
    Once that is complete reboot again from your usual start-up disk.
    Call Apple Customer Support 1-800-767-2775, provide the Serial Number and specifications of the Mac, and for a reasonable fee, they will supply a replacement set of system discs (if available).
    The discs will be for the original version of the OS that was pre-installed when the Mac was manufactured.

  • Invalid File/Volume Count

    Over many years I've had many Macs, but I've never seen this problem. I recently purchased a new unibody MacBook 13.3 and LED Cinema Display. I didn't use Time Machine to populate it...I installed all my apps from scratch.
    Every couple of days, if I run "Verify Disk" from Disk Utility, it finds the file count off by two or three and the directory count off by two or three. Each time I run "Repair Disk" and it fixes the problems, but they always return. I'm not changing anything on the computer, running new software, etc., just normal computing, albeit quite a few hours a day.
    Could this be caused by hardware (read: is there something wrong with this new MacBook)? Thanks in advance for any hints.
    Larry

    Use your install disc instead ...
    Check out this thread >  Disk Utility: invalid volume file count...: Apple Support Communities

  • Invalid or COrrupt JAR file

    I have one jar file of java classfiles created in eclipse. Its working fine with eclipse after giving Run Configuration (main class).
    But when I try to run jar file from command prompt its giving me error - ' Invalid or corrupt jar file'
    I have edited Manifest.mf for adding Main-Class also.
    I have also checked in Tools-->folder option-->File Types-->Selecting Jar-->Advanced-->Edit and given the correct path of javaw.exe like - "D:\SDP75\jdk\bin\javaw.exe" -jar "%1" %*. The same jdk used for compling the classes.
    Please help me. I have done volumes of googling for this. This is very crtytical to me.
    Thanks

    802387 wrote:
    Its working fine with eclipse after giving Run Configuration (main class).So it works if you just run the main class.
    >
    But when I try to run jar file from command prompt its giving me error - ' Invalid or corrupt jar file'
    But it doesn't when you attempt to run it as an executable jar.
    I have edited Manifest.mf for adding Main-Class also.
    As a guess that is the problem. You messed up that file.
    Or you are not running the same thing in both cases.

  • Recurring invalid volume file count (I repair, it comes back)

    On my desktop system (10.6.8), every once in a while Disk Utility says there is an invalid volume file count  (off by 2) and an invalid volume directory count (also off by 2). I boot off the DVD, use Disk Utility to repair the file system, and a couple of weeks later, it recurs. Any way to figure out what's causing this and put an end to it?

    A Cortez wrote:
    I generally don't post here unless a problems has become a REAL problem. I upgraded a few months back to MacOS10.6.8 and have experienced some pretty strange behavior. It starts with horizontal lines across the screen and these can appear for several hours and then hang or within 10-15 minutes of starting up. The obvious check for me is to run disk utility because it looks to me like something is getting overwritten - virtual memory maybe. When I run disk verify I get:
    Performing live verification.
    Checking Journaled HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Checking volume information.
    Invalid volume file count
    (It should be 759557 instead of 759584)
    Invalid volume directory count
    (It should be 157930 instead of 157903)
    I then have to repair the disk by starting  up from original install disks...
    I'm getting the horizontal lines right now and I just ran disk repair!
    I can't run/find/access Apple Hardware test - seems to have disappeared from this release!
    Any ideas as to how to fix/stop it from happening. It seems to be happening daily, today it has happened at least 3 times....
    making me nuts!
    Appears you have directory damage & need a stronger 3rd party utility to fix.  You should not use your computer until the damage has been repaired to avoid damaging your directory any further.
    Utilities are best run from the CDs  to avoid system interference & false readings/reports.  You must use the versions that are compatible w/your OS system & keep the utilities updated to avoid damaging/harming/trashing your system.
    You need to make your own decision on which to purchase.  Read up on them on their websites because each do something a little different.
    DiskWarrior (Highly Recommended for Directory Damage Repair)
    Techtool Pro
    Drive Genius
    ================
    Check out:
    Apple Hardware Test

  • INVALID VOLUME FILE COUNT and INVALID VOLUME DIRECTORY COUNT

    Every few days, something on my machine is causing an invalid volume file count and an invalid volume directory count. Error message will read something like:
    Invalid volume file count
    (it should be 520176 instead of 520178)
    Invalid volume directory count
    (it should be 152750 instead of 152748)
    This causes the machine to lock up.
    This is my SECOND machine (same set up on the previous machine) that is experiencing these issues. Once I run the disk utility off of the original OS disk everything is fine.

    This is my SECOND machine (same set up on the previous machine) that is experiencing these issues. Once I run the disk utility off of the original OS disk everything is fine.
    Invest in a couple things - backup drive, Disk Warrior, and SuperDuper
    Install OS X to part of your external (small and just big enough for an emergency system and minimal programs).
    Booting off DVD is fine, but no Finder and you are limited to the (older) version of Disk Utility on there (and it does get updated and changed).
    Clone your system for boot backup, especially before updates and changes.
    Disk Warrior recognizes and repairs more issues, some of which Apple First Aid doesn't even look for.
    So even though it appears okay afterward...
    Next would be to run Apple Hardware Test, and along with that check your RAM with MEMTEST (REMBER is handy and is just GUI wrapper to memtest program) or run Memtest yourself from the Terminal.

  • I always get the following error msg when trying to update add-ons "Invalid file hash (possible download corruption) -261"

    I get the following error msg when I try to update add-ons ...
    ErrorFirefox could not install the file at
    http://releases.mozilla.org/pub/mozilla.org/addons/1865/adblock_plus-1.2.2-fx+sm+tb+fn.xpi
    because: Invalid file hash (possible download corruption)
    -261
    Why, and is there a solution. Im fully patched on osx.
    + Fredrik

    * "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    You can also try to enable third-party cookies<br />
    Firefox > Preferences > Privacy > Cookies: [X] "Accept third-party cookies"
    See [[Disabling third party cookies]] (you need to enable)

Maybe you are looking for

  • Can't add file to library

    for some reason my itunes will not let me add any files to my library. it was working fine every day before today. all of my formats are in .mp3 form and they will not be added in either "add file" or "add folder". i tried redownloading itunes and re

  • Delivery Notes

    What is a delivery note? What is its meaning and which are the transactions for it? Edited by: Wilian Segatto on Jan 22, 2010 4:13 PM

  • Fire wire question

    I just purchased a new mac book pro and I want to sync it up with my old mac book pro, but I don't know what kind of fire wire cable to buy. The old mac book pro was purchased in 2006-I have no clue waht the correct size cable is for that specific po

  • RichEditableText with embedded images does not handle mouse events reliably

    I'm using Flash Builder "Burrito".  downloaded a couple of weeks ago.  Flash Player 10.1.85.3 debug version. I have the following MXML object: <s:Scroller width="100%" height="100%" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe

  • How to display a string in separate line in a jsf page?

    Hi, my view bean returns a string say, " Java Server Faces" .I just want to display all the three in a separate line like Java Server Faces If i go for concatenation or append method it is displaying in a way as before in java console.But when i disp