Invalid Key Length?

Had issues recently w/ power button not working until I reset power strip, lil problems w/firefox so ran verify permissions this morning...it noted some stuff & I repaired (mainly firewire? I recently transferred stuff to a Powerbook). Decided to verify disk when it came up with an error (don't remember the exact error) so ran repair which came up with the invalid key length, then went to repair, but just keeps repeating. Says 'repair attempted on 1 volume...could not be repaired.' What now? Don't want to exit disk utility until I know 'what next.' thx!

PowerMac G4 8839 MDD 1Ghz/256MB/60GB Combo, Mac OS X (10.4.11), Epson Perfection Scanner 1200U

Posted on Sep 30, 2011 10:08 AM

Reply
26 replies

Sep 30, 2011 10:23 AM in response to bootgal

I'm not sure I am fully getting this all through the somewhat terse sentence structure. I assume you booted from an installer disc or another hard drive and are trying to repair the drive with Disk Utility. If you are trying to do this with DU on the same drive as the error that won't work. You have to boot from a different drive in order to repair your main hard drive. If you have indeed done that then it is quite possible you have encountered one of hte many errors Du is incabable of fixing and you will ned a stronger utility such as Diskwarrior.


Permissions you can repair on the same drive, but not drive errors.

Sep 30, 2011 10:33 AM in response to Limnos

no, I booted up disk utility from the cd drive. it does say that the SMART status is verified. if I keep running the repair, will that eventually fix? I don't have disk warrior. & if I exit from the utility & try to back-up the ATA drive (my last backup was months ago, argh) ...any info & can give you first b4 I exit? sorry, didn't mean to sound terse...not much of geek so my ??'s may sound awkward, bear w/me. thx.

Sep 30, 2011 11:01 AM in response to bootgal

I'd give it perhaps three tries with Disk Utility but after that you have likely reached its limits, especially if the error message isn't actually changing.


A few things you can try before Diskwarrior. Try starting in Safe Mode by holding down the shift key while starting the computer. Be patient, especially since your drive is having problems. It's remotely possible that the

drive checking and repair routine run during Safe Mode cna do something DU cannot. Then too, you can try the free utility Applejack.


SMART is just a top level drive condition checker and doesn't really look at the directory structure of the drive which is what DU does.


No problem with the questions as such, just in the reading and understanding. I'm just an old fogey who can't handle the cryptic, modern, text-messaging style of writing sentences, and reminisces on the old days of sentence structure and punctuation...

Sep 30, 2011 12:30 PM in response to Limnos

Yes, I've gotten sloppy. OK, trying to start in safe mode now...took awhile, but it's up. alert says 'Startup Items folder does not have the proper security settings /library/startupitems/...click fix or skip...should I fix?


then 'item in startup items folder '/Library/startupitems/retrorun' doesn't have proper security settings. Using this item may cause problems. If you trust this tiem & want to fix the security settings, click Fix. To always prevent this item from being used, click Disable. To skip using this item & show this message again, click Decide Later. well, I said Decide Later to see if there was another message...but nothing so far.


Should I fix those? & how to I get them back...

Sep 30, 2011 1:59 PM in response to bootgal

Retrorun. Are you using Retrospect for backing up? http://forums.dealmac.com/read.php?4,2633577 I don't have any experience with it nor what its settings should be.


You say, "Nothing so far." Does that mean the computer has started up? If so, what does Disk Utility now say?


On the original issue, do a web search for: osx invalid key length You'll see many results (Some on Apple Discussions). The bottom line is, if Disk Utility won't fix it, try Diskwarrior ($100). If DW won't fix it you will have to reformat the your drive and re-install the operating system. Of course some files may already be damaged so it is best to try to fix it in the hope the files get fixed too. You could just copy off files and go straight for a format&re-install but it is possible you would copy off files that are corrupt because your computer has lost track of all the bits and pieces. You have to decide if you want to chance it in terms of copying off bad files, chancing it with spending $100 on DW and it still not being able to fix the problem.


Do you have a backup of your files? A backup system can cost as little as $100 which as you can see is about what a repair utility costs, and repair utilities can't fix everything such as a drive going completely belly-up.

Sep 30, 2011 2:35 PM in response to Limnos

ok, when I was in safeboot I got those two Alert messages, yes the second was Retrospect. I said 'fix' on both. I wasn't sure if I could use Disk Utility in safeboot? (couldn't access from the install disk) or just use from the utilities folder? Well, in the meantime, I restarted, starts up fine. But should I restart up from the install disk & run verify again & see if it cleared? Would those two startup items have caused the 'invalid key length' issue?


No, I don't have a current backup. When I was able to restart fine, I did try to run Retrospect, but it wasn't recognizing the last version to just copy new files. Have a firewire cable...can I back up everything to the Powerbook (that has a dvd burner, this does not, only cd).


I've used Applejack before...just downloaded the newest version & can try that as well. But should I try the disk utility first?


I think I need a step-by-step...thanks for your help!

Sep 30, 2011 9:59 PM in response to bootgal

You can verify using the copy of DU on your internal drive. You can't run repair though. The objective is to see if starting in Safe Mode did anything to help. You could even restart normally to check that.


I don't know exactly what the error means but reading some of the links I recommended suggest it is a must-fix. I don't know the cause of it. Just having Retrospect installed probably doesn't mean it caused it. It is possible Retrospect may be causing other problems but I don't really know much about it.


The directory on your computer keeps track of all your files. It is a kind of master catalog of what is on your drive and where all the bits and pieces are located. Once it starts going bad there is danger of losing files and of the computer crashing if something critical in the system gets accidentally overwritten because the computer thinks that space is free. The thing is, your computer may already have started losing track of your files, but with the hundreds of thousands of files on modern computers it is hard to test each one. You can back up to an external drive right now and hope that not much has happened or nothing irreplaceable has been erased. A Powerbook isn't the best way to do this because the best way involves copying 100% of your files which requires an empty destination drive.


If you must use the Powerbook then start the bad computer in Target Disk Mode. Connect it to the Powerbook with the Firewire cable and copy off your data files, realizing that some may be damaged already but you won't know it unless it happens to give a copy error.


[How to use FireWire target disk mode|http://support.apple.com/kb/HT1661] - includes description of hardware and software requirements.


Once you have done that and you decide not to try Diskwarrior then the only way to repair the drive is to simply erase the whole thing. Note that all your user settings and everything will be erased. You'll need to boot to your installer disk and use Disk Utility to erase the drive, formatting it to Mac extended. It might be worth doing a secure erase with write zeros once because this does an addditional drive check (but takes longer). After erasing you can re-install the operating system, and do updates. To get straight to 10.4.11 you can use the combination updater which does it in one step.


[PowerPC-based Macs|http://www.apple.com/support/downloads/macosx10411comboupdateppc.html]


[Intel Macs|http://www.apple.com/support/downloads/macosx10411comboupdateintel.html].


[About the Mac OS X 10.4.11 Update|http://support.apple.com/kb/TA24901?viewlocale=en_US]


There will probably be a whole bunch of Java updates which you have to do one by one. You can use Software Update to see what needs to be updated.


You can then go back into Target Disk Mode and copy your data files back on, keeping your fingers crossed they are intact.

Oct 1, 2011 11:38 AM in response to Limnos

thx much! I only used Retrospect 1x...not the easist for backup IMO. Anyway, the G4 seems to hummin along smoothly, but thought at a minimum before I try to verify/repair the disk again from the install/C drive, I'd go thru my user stuff (important info I'd want to copy over via FW) & clean thru it. In the past couple weeks, I've 'uninstalled' a few things (Norton Systemworks, Vuze & Cleanmymac) & wanted to be sure there were no pieces left that might be an issue...found a few & deleted, hidden in the Library stuff.


BUT, as I worked thru I found in the ~Library/Log a couple of crash reports, all from 9/20/11 for GoogleSoftwareUpdateAgent...hmmm..was right about the time 'things' started happening here. Appears it's sneaky spyware, see: http://macosx.com/forums/unix-x11/317751-googlesoftwareupdateagent.html and http://raamdev.com/howto-remove-google-software-update-on-mac-os-x (unfortunately, this how-to-remove is only for 10.5+)


I also noted on another Apple forum this: https://discussions.apple.com/thread/3025958?start=0&tstart=0

which had the same verify/repair issues with invalid key length


Do you think this could be my issue?? I'm thinking so...the question is how to get rid of it completely. If you want copies of my logs etc. just let me know. Thx for your help!!

Oct 1, 2011 11:50 AM in response to bootgal

Well, you have to fix/repair the disk one way or another besides any other problems, doing anything with it, even just booting it up could feasibly destroy your data, Invalid key Length is a serious error in the directory of the disk.


As mentioned by Limnos, your best bet is DiskWarrior, the other option is erasing the disk.


https://discussions.apple.com/thread/713292?start=0&tstart=0

Oct 1, 2011 12:14 PM in response to BDAqua

thx, what I'm wondering is if I get rid of the googlesoftwareupdateagent (& how best to do)...then move my valuables to the Powerbook via Target Disk...should I try disk repair utility again to see if it corrects? & if it doesn't, does Applejack fix such issues if they're still there? If I can move my user info over is it worth trying? worst case I'm buying DiskWarrior or opting to wipe the drive & start over, yes? Appreciate all your help!...just evaluating my options.

Oct 1, 2011 12:43 PM in response to bootgal

Very first thing, backup your User data, next, not a good idea to even delete or save anything when there is directory damage, the directory is like a street map of a city, but damage is like somebody switched a bunch of street signs and house addresses, now you wouldn't want to send a house wrecking crew out to an address only to find somebody switched the signs & house number, and the wrong house got torn down! ℹ


Normally DU & AJ won't fix this error, it won't hurt to try once you're certain your User data is safe somewhere else.


worst case I'm buying DiskWarrior or opting to wipe the drive & start over, yes?

Yep.

Oct 2, 2011 11:55 AM in response to BDAqua

thx for all your help so far! ok, yesterday I connected the desktop to PB via FW & copied everything in my user file to the PB. Checked it was there b4 trashing/disconnecting & I renamed the user file (just in case, since same name on PB). I had just set up the PB a few weeks ago w/Migration Asst. & transferred the apps over. I guess once I clear this desktop (as above) & reinstall OSX, etc. I can do the reverse & transfer the apps/user stuff back the same way? Before I wipe the desktop, is there anything I might've missed moving over that wouldn't have been in the user file?? e.g. I had one iPhoto library that I had archived, renamed that I moved over...do I need to open that on the PB to make sure it's all there? Sorry, if I'm confused...just don't want to lose anything. (yes, 50 lashes for no current backup!)


After I transferred, I did run DU again...same error. And AJ...just to see. Same error 'invalid key length (8, 4). Also ran the Apple Hardware test but all passed (I had just installed 4x512's of memory recently, says ok)...does that mean my HD's likely ok, just a directory problem?

Oct 2, 2011 12:14 PM in response to bootgal

Well, some Apps keep info in places other than the User's folder, I wouldn't feel safe myself without a complete clone of the whole drive, but not likely you could do that without another drive.


Never the less, did you copy your whole Home Folder over, or just selected parts?


Also ran the Apple Hardware test but all passed (I had just installed 4x512's of memory recently, says ok)...does that mean my HD's likely ok, just a directory problem?

The 2 aren't connected, so impossible to tell, right now it looks like your drive may be OK, but how old is it?

Oct 3, 2011 10:44 AM in response to BDAqua

Yes, copied the whole user folder, not just parts. That said, I wonder 2 things, cuz as you say a clone would be the best. Since the PB is a new addition, can I use DU to clone/backup the desktop to it? (like here? http://nerdvittles.com/?p=55 ) I have less than 20G on the desktop used out of 60G. Or will a clone also transfer all the bad directory stuff w/it to the PB. 2nd, I could pick up a WD My Passport 250GB portable HD (Target has for $30?)...would this be the best way?


no...on the Hardware test, what I meant was that the new memory I just installed passed (thought maybe I had bad RAM) and separately, the 'mass storage' (HD?) also 'passed'...the test didn't show any issues, therefore I thought both the memory and HD were ok. HD is original to the MDD, so 2004? but I'm not a power user...doesn't mean it couldn't be on it's way to fail, tho.

Oct 3, 2011 11:26 AM in response to bootgal

Since the PB is a new addition, can I use DU to clone/backup the desktop to it? (like here? http://nerdvittles.com/?p=55 ) I have less than 20G on the desktop used out of 60G.

The point of doing a clone is to copy everything of intact, along with hidden files and files that a normal drag and drop won't copy. To do it that way you have to erase everything on the volume to which you are copying. If you have a lot of space on the PCB drive you could partition it into two volumes - but in order to do that you first end up losing everything that's on the drive during partitioning.

Or will a clone also transfer all the bad directory stuff w/it to the PB.

Possibly. It isn't so matter orf truly bad stuff, it's a matter of your present drive doesn't know where all the bits and pieces of the files are. I rip up several books, put the sections on a shelf in your room and then leave you a note telling you to move the books to another room. With the note are cards telling you where the sections are on the shelf so you can find them for moving, but unknown to you I destroy one card. You just go by what's on the cards. That section gets left behind, and when you empty the room it gets tossed out forever. Maybe 3 years from now you try to read your books. Most are okay but suddenly discover that one it isn't complete and is essentially unreadable. That's your computer files - maybe. The only thing you can do to ensure that all your books are transferred in their entirety is to run a program that checks to make sure the cards I left you really are accurate and complete, perhaps by actually doing a full inventory. Well, maybe I omitted a section, maybe I didn't. You don't know and are you willing to chance it during the move?


I could pick up a WD My Passport 250GB portable HD (Target has for $30?)...would this be the best way?

Um, BDAqua has a list but some WD external drivemodels don't work well with Macs. If I were contemplating buying a drive I would consider getting one for proper backup purposes to mitigate this kind of situation in hte future. Some day your internal drive will die and nothing will bring it back or the files on it. That said, I would make sure the new drive is at least as large as the drive inside your computer, and if you are going to continue to own a G4 that it has a Firewire connector. Most inexpensive drives only have USB. With Firewire if your internal drive dies you can always start up your computer using the external drive. These are more expensive but in my humble opinion having a computer without a decent backup system is like driving a car with no spare tire - if something goes wrong you're in a much bigger mess than you need to be.


It is pretty difficult to second guess a hard drive failing, unless you're lucky. You could run hardware test on it today and it would report fine, then tomorrow not start. However, don't confuse a hard drive failing with the keys thing. Do you remember old card catalogs? Your computer's directory is similar. The cards (directory) keep track of which books are in the library (your files on the drive) and where they are kept. Now if you drop your card catalog on the floor (directory damage which is what you have) that doesn't necessarily mean the cards are damaged or the box (your hardware) or even the books themselves (your files). You just need to sort the cards again, maybe check with your book collection to make sure they are all there, and continue to use them and the box. If there's a fire (hardware failure) then it is unlikely your cards or books will survive, and certainly the box won't and you'll need to replace everything.

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.

Invalid Key Length?

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