Got the same problem.
- Tried bracketing off
- Tried inserting the date and time again.
- Tried a full battery.
- Tried resetting the camera (hold i button + info button together for a couple of seconds).
- Tried all possible modes and settings.
Then I've read somewhere to somebody had issues due his 64gb card. Now I see Kevin above here say something similair. Back in the day the D5000 came out, 64gb cards were not that normal. So I might buy a cheap 8gb and see if that resolves the problem. If not, I'm out of options.