Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: iPod manager (Read 1815298 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: iPod manager

Reply #4175
Hi. I ran into a bit of error situation where I'm starting to feel like this might be case where a restore via iTunes is needed, but thought asking here first wouldn't hurt.

Issue: After managing content and ejecting properly, my iPod (5.5 gen, 64MB RAM, flash-modded) resumed to its main menu suspiciously quickly considering the amount of content on it (~35k songs) and previous experience of its previously taking a bit longer. And indeed, iPod shows up as having no songs on it but the storage space appropriately used. Now I've had this happen a handful of times before and in those cases just rebooting the iPod (press & hold Menu + center buttons) had sorted it out, but not this time, unfortunately.

Tried rebooting the iPod - no effect.
Plugging the iPod back to my computer works OK, gets picked up by Windows as normal. In Foobar, the 'Load library' command brings up an error message saying: Error reading iTunesDB: Invalid format; expected header marker "dbhm" got "".
I next tried 'Rewrite database', but it gives the same error. I figured it might be a case of corrupted database files and tried reverting to the backups of dopdb and iTunesDB in the iPod_Control\iTunes folder. No luck, same thing happens.

Anything else I could try, or should I just do a factory reset in iTunes and then re-add my music?
I googled for foo_dop + the error message but the only hit was a post on this very thread from back in 2013, with a slightly different error message reported (expected header marker "dbhm" got "ʴ3DI"), 'Rewrite database' suggested to be tried, but nothing else.

Any idea what I might have done wrong here, or would this be just one of those random freak occurrences that just happen sometimes?

Re: iPod manager

Reply #4176
Hi,

That sounds odd, I haven't heard of that happening before.

iTunesDB.dop.backup is indeed the previous database file renamed, so odd that it would be corrupt as well.

I'd guess the corrupt files are full of zeroes based on the error. It may be worth looking at iTunesDB.dop.backup and iTunesDB in a hex editor (such as HxD) if you're interested in investigating further. Non-corrupt iTunesDB files would start with the characters mhbd (dbhm reversed). (dopdb files would start with the bytes 6D A4 21 B6 A4 0F 37 4C A6 C2 6B 19 58 31 8D BB.)

Yes, restoring the iPod and starting again is one option. Another is the the 'File/iPod/Recover orphaned tracks' command in foobar2000 (but that would need that corrupt database file to be removed first).

Another thing I'd check is that the removal policy of the drive is set to 'Quick removal (default)' in Device Manager (see attached screenshot).

Also, just to mention in case you're still using iTunes as well, iTunes should be closed before using any commands in foobar2000 that write to the iPod, as they may conflict otherwise.
.

Re: iPod manager

Reply #4177
Hi,
Thanks for the quick reply!

I installed HxD to have a quick look at the database files (as far as I can go really, my knowledge of hex editing being non-existent... :P)
Of the iTunesDB the main one starts with an H and then nothing for the remainder of the expected 'mhbd' string. The backup however does seem to show those, but now trying that out, loading the library in Foobar brings up an error message of an unsupported or corrupt file. (I might have done something differently the first time around...)
For the dopdb files, the main one starts with the same set of bytes as you mentioned, but the backup appears to be way off. (screenshots attached)

Hmm, I guess doing a restore in iTunes and starting anew might be the easiest, though not the quickest, solution here.
But if I were to remove the corrupt database(s) and try the orphaned track recovery route, wouldn't I need to introduce the iPod to iTunes first after removing the datase files to add at least one track in order to have the library database set up again, as IIRC, foo_dop doesn't do that, only being able to work on already existing databases?

Checked to confirm - yes, I have "Quick removal (default)" set for the iPod's drive device in Windows' device manager.

While I do have iTunes installed, I've never had it open at the same time as Foobar & foo_dop, as I do my iPod managing exclusively with that. I have had the iTunesHelper.exe process running in the background though, but that should be OK though, correct?

Re: iPod manager

Reply #4178
I installed HxD to have a quick look at the database files (as far as I can go really, my knowledge of hex editing being non-existent... :P)

From a quick look at those:

- iTunesDB – that looks like the start of the file is somehow missing
- iTunesDB.dop.backup – the start of the file in the screenshot looks normal from what I can see (but could be something wrong elsewhere if the new error message specifically said the problem was with iTunesDB)
- dopdb – same, the start of that looks fine
- dopdb.backup – now that does indeed look like something else completely (could be audio or image data if not complete gibberish...)

Note also, there is another database at \iPod_Control\Artwork\ArtworkDB.

Hmm, I guess doing a restore in iTunes and starting anew might be the easiest, though not the quickest, solution here.
Yes, I think so to be honest as I'd be worried about whether anything else is corrupt on there from those screenshots. (Although I think a restore reinstalls the iPod software as well, so it may not be zero risk.)

Was the flash mod recent or a while ago? I think in any case you'll want to keep an eye on whether anything else gets corrupted.

But if I were to remove the corrupt database(s) and try the orphaned track recovery route, wouldn't I need to introduce the iPod to iTunes first after removing the datase files to add at least one track in order to have the library database set up again, as IIRC, foo_dop doesn't do that, only being able to work on already existing databases?
No, it should be able to initialise a clean iPod as far as I remember.

I have had the iTunesHelper.exe process running in the background though, but that should be OK though, correct?
Yes, that shouldn't be a problem.
.

Re: iPod manager

Reply #4179
Hmm, I guess doing a restore in iTunes and starting anew might be the easiest, though not the quickest, solution here.
Yes, I think so to be honest. I'd be a little worried about whether anything else is corrupt on there to be honest from those screenshots.

Was the flash mod recent or a while ago? I think in any case you'll want to keep an eye on whether anything else gets corrupted.
Alright, I'll go with that then to be sure!  8)

That flash mod I did back around June 2020, so not exactly recent nor super old (I feel); like, by comparison my 2n iPod, a stock config. 160GB 7th gen has been going without a hitch for over three years without needing restores.

Thanks again for the help!

Re: iPod manager

Reply #4180
Now this is getting even weirder. Restoring via iTunes doesn't want to work for some reason.

On starting up iTunes, it sees the plugged-in iPod, sees something's off ( throws up error message: "iTunes cannot read the contents of the iPod [iPod name]") and prompts to restore to factory settings.
Restoring then seems to go OK initially (progress bar advances & finishes, device drops out, then reappears, with Windows' auto-start prompt popping up & stuff), but on showing up again in Explorer and iTunes, the iPod hasn't been wiped, and iTunes again shows the same error message about not being able to read the contents of the iPod [iPod name], prompting to do a restore. Everything on the device seems untouched.

I then thought of how I'm having a static drive number assigned to the iPod (I have two and keeping them from not occupying the same drive letter is important for foo_dop managing), so tried reverting it back to a dynamically assigned drive letter using diskpart, just in case, to rule out a possible variable. But no luck, restoring just doesn't want to work.

Next stop: Reboot iPod in disk mode, plug it in and try restoring again. Nope. Still doesn't want to restore. Just goes through the same process resulting in iTunes saying it can't read the iPod's contents.

Guess I'll have to open up the iPod, pull out the microSDs from the iFlash adapter and do a thorough reformatting on them from the ground up to try and force and actually fresh start on it... Really odd.  :o

Re: iPod manager

Reply #4181
Alright, turns out it was that one of the three microSDs I had in the iPod had decided to fail.
Took all three cards out today and proceeded to format them with AOMEI. Two Toshibas worked properly and formatted just fine, but the single Sandisk doesn't. Gotta get that replaced then.  8)