Please help! Invalid node structure and invalid record count

My MacBook Pro is about 6.5 years old. I upgraded to Snow Leopard 2 years ago and added RAM at the same time. My first problem ever occurred three days ago when my computer got super sluggish, I restarted and got the gray screen with apple and spinning wheel...no boot up. I ran disk utility from the snow leopard install disk and found "invalid node structure" and "invalid record count". After reading on here what to do...try to repair the disk and so on with no success I went out and bought Disk Warrior. Got home expecting to fix everything and Disc Warrior won't boot...I just get a file with a question mark and the disc is ejected. I tried erasing the hard drive but was only able to use the "don't erase data" option. Then I tried to reinstall Snow Leopard with no luck. Now I am stuck. Any ideas?


One thing to note is I am to the point of not caring about the files on the hard drive, I was a dummy and never backed them up...lesson learned! I just want my computer back without having to spend $1000+ for a new one. Then again I am always willing to do that too as a last resort.


PLEASE HELP!

MacBook Pro, Mac OS X (10.6.8)

Posted on Sep 19, 2012 6:08 PM

Reply
61 replies

Sep 26, 2013 2:29 PM in response to AEC22

Invalid Node Structure is not a hardware failure, it never was (you may still have a hardware failure, but the Invalid Node error is not indicative of this problem.


Still, Disk utility will certainly fail to fix it, and DiskWarrior will probably fail too.


But don't despair. Try this, and don't give up till you've tried it at least three times.


First, get the name of the partition of the failing volume. You can get it most easily by finding your disk in Disk Utility, selecting your partition (not the drive) and type cmd-i. Look for "Disk Identifier" right at the top.


Then, open up Terminal, and type this:


sudo /sbin/fsck_hfs -yprd /dev/disk5s2


substituting your disk identifier for the one already here. Keep the "/dev/" part. Enter your password, and wait. It may take a while. I have had this fail several times before finally working so its important to keep trying. It's faster than a reformat!!!


If the afflicted disk is your startup disk, you will need to do this in recovery mode: restart the computer, hold down option, and wait for the disk options to appear. Select that, then proceed to Disk Utility and then Terminal as described above.


Good luck, and always keep a backup!


chris watts

Aug 13, 2014 10:33 AM in response to Chris Watts1

Hi Chris,


Ok so here is the run down on what is happening/ what I've tried.


So our iMac froze and my husband did a hard shut down. Tried to reboot and was stuck on the grey apple boot screen. So I tried all of the tricks. Holding down option, holding down shift. Nothing worked. Didn't respond to any of those things. Left it for a day (off). My stubbornness kicked in so I powered up and tried those again. I was able to get it to get to the login screen but after trying to login it would freeze on the blank galaxy screen.


So then I did more searching - put in install disc and powered up from OS X disc. Tried to verify/ repair drive in which I got invalid node structure. Found this discussion. Followed the steps as outlined and got that NO WRITE error message. Read further and realized I had to drop the sudo part of the command. Still not working. Found another one of your discussions where you mentioned unmounting the drive and then trying sudo/sbin command. Got it to work. Tried restarting again from Install CD and ran disk repair. Instead of Invalid node structure it just stated that it couldn't fix the drive and to back up files.


So then I tried your other commands listed about and this is what the terminal screen saidUser uploaded fileUser uploaded file

So I am thinking things are looking up?


So I exit Terminal and try to go back into disk Utility and now whenever I try to go into disk utilities (while booting in OS X install disc), it freezes. I need to remount the HD and try and repair do I not? Why is it freezing at the Disk Utility?!?!??! And what Can I do now??? (If anything)

Sep 19, 2012 6:43 PM in response to AEC22

When you contact Alsoft, make sure you let them know that you are using Snow Leopard (10.6.8).


Try the following in the meantime -

Disconnect all peripherals from your computer.


Boot from your install disc & run Repair Disk from the utility menu. To use the Install Mac OS X disc, insert the disc, and restart your computer while holding down the C key as it starts up.

Select your language.

Once on the desktop, select Utility in the menu bar.

Select Disk Utility.


Select the disk or volume in the list of disks and volumes, and then click First Aid.

Click Repair Disk.

Restart your computer when done.


Repair permissions after you reach the desktop-http://support.apple.com/kb/HT2963 and restart your computer.


Try DiskWarrarior again if it's combatible with the os system.



YOu cannot reformat until you get your issue corrected.









User uploaded file

Sep 19, 2012 6:21 PM in response to AEC22

"I went out and bought Disk Warrior. Got home expecting to fix everything and Disc Warrior won't boot."


You inserted the disk and rebooted while holding down the c key? Have you the latest version of DiskWarrior? If yoy still have issues with the disk then contact Alsoft. You other option is to reformat the hard drive which erases everything.

Sep 19, 2012 6:46 PM in response to AEC22

Disk Warrior may be able to repair the invalid node structure, so that it might be possible to mount the disk and retrieve your data. However, it is very likely some has already been lost for good.


It is also possible that the hard disk cannot be repaired at all, and even if you can repair it I would no longer rely upon it.


You don't have to spend $1000 on a new MacBook. You can simply replace the hard disk. They are not expensive or difficult to replace.


I realize it's too late for you, but an external backup device can be purchased for not much more than the cost of Disk Warrior.

Dec 20, 2013 11:26 AM in response to Chris Watts1

Hi Chris.


If I run "Disk Repair", all I get are red error messages saying "Invalid Node Structure" and "Invalid Record Count". I can't run the sudo command within Terminal. The command cannot be found or permissions don't exist to run.


Also, as the "Repair Disk Permissions" runs, it's showing "Open error 5" messages. I just want to be able to salvage and transfer all my data files to another computer, and reinstall the OS on my notebook.


How can I solve this problem?




Cheers

Jan 16, 2014 3:44 PM in response to Chris Watts1

I tried that approach before, but I got the same results.


DiskWarrior recover the directory structure. However, I can replace on the same internal HDD because it's damaged and failing. I just bought a Toshiba Canvio Slim 2 external HDD so that I can transfer my files. This HDD supports both Mac OS X and Windows.


But, DiskWarrior sees it, but doesn't allow to transfer the files (i.e. the "Replace" button is still grayed out.).


What is the workaround?



Thanks.

Mar 22, 2014 11:42 AM in response to AEC22

I have been having the same codes coming up in disk utility when I've started up my computer with installation cd. I also saw a message that was

( node =81) unused node is not erased.

I have tried going into terminal and typing the sudo command but it says no command found or file type not recognized I am sure I found the proper disk code but it doesn't work. Can anyone help me with this?

I simply want to recover my personal stuff off my computer then redo the entire hard drive. I do not want to lose important photos and documents

Apr 23, 2014 11:47 AM in response to Chris Watts1

Hello there!


I just got a WD My Passport portable external, transferred and organized all of my files, and a month later it's not mounting do to 'invalid node structure.' Unfortunately that's as far as I've gotten. I took it in and they told me to reformat, but if there's a chance I can save my data...


I've gotten to the disk utility stage but I'm unsure as to where I should type in 'cmd-i'. So I just used information to tell me what the volume disk identifier is, plugged your formula into terminal (first time using that, very exciting!) and no luck. It's still telling me invalid offset, invalid node structure, invalid forward link, offsets are out of order, catalog file entry not found for extent, the volume could not be verified completely, volume check failed with error 7, etc, etc.


I sooo appreciate this! I was ready to just throw in the towel, but your post and the glowing responses gave me hope!

Thanks!

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.

Please help! Invalid node structure and invalid record count

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