You need to explore the file in your iphone, you can use SSH or you can use this tool i-FunBox (it’s free at http://i-funbox.com/)

Please navigate to

/private/var/mobile/Media/iTunes_Control/iTunes

and rename folder iTunes_control to iTunes_control2 (or BAD)

When you connect to iTunes then it will ask you to configure your ipod then

I’ve renamed it, connect to iTunes and iTunes will recreate a new iTunes_Control database (hence I deleted iTunes_Control2 folder)