MiniDLNA on raspberry pi database disk image malformed


/usr/bin/minidlna -f /etc/minidlna.conf -R -d

rebuilds the database for miniDLNA. This fixes the minidlna database disk image malformed error i was receiving when minidlna wouldnt restart. I believe this was due to the usb HDD i was having getting IO errors and crashing the pi. Me then unplugging the pi was killing the database.
Hope this can help some other people!