How can I reset the camera roll to photo IMG_0001.jpg on iOS?

I just restored an iPhone 5 backup to an iPod touch both on iOS 6.1.3 (10B329) to rapidly load every app and setting, yet I'd really like the camera roll to start over with 0001.

I've gone in and deleted all the photos that restored onto the iPad using Image Capture, but the counter is stored on the device in a manner I can't figure out how to access

Is there a way to clear this counter and get the next photo I take to be IMG_0001.jpg without needing to erase all content and settings and start without restoring the backup?

(As a postscript, on iOS 10 and later, this reset procedure is very much discouraged - I’ve taken to managing any file name changes entirely from Photos app once I have imported and archived the originals. The sync via iCloud works faster and more reliably for me since this question was first posted)


Solution 1:

With an Application such as iExplorer navigate to PhotoData / MISC where you'll find a file called DCIM_APPLE.plist which contains the following:

<plist version="1.0">
<dict>
    <key>DCIMLastDirectoryNumber</key>
    <integer>100</integer>
    <key>DCIMLastFileNumber</key>
    <integer>251</integer>
</dict>
</plist>

The DCIMLastFileNumber parameter is quite self explanatory. Set the number at which you want the counter to start at and restart the iPhone to apply the changes.