DNS325: USB key for minidlna is a mess

65 views
Skip to first unread message

Eric R. Wick

unread,
Jun 20, 2015, 7:03:17 AM6/20/15
to al...@googlegroups.com
Hello,

for months i have tried to use a USB key for the minidlna database. Because this benefits from immediate available database access while the harddisk can spin up in the background. I tried various USB filesystems from ext4,3,2 and vfat, then the expensive Corsair keys with wear levelling. But always i got the same result, the filesystem on the key is destroyed within weeks in a manner that only backup, reformat and restore helps.

My question to the user is: Is anybody out there with a stable USB key for variable data on a D-Link device?

 

João Cardoso

unread,
Jun 20, 2015, 10:39:46 AM6/20/15
to al...@googlegroups.com, think...@googlemail.com
There is no hope for that, that's inherent to the flash technology, a limited number of write cycles. Wear leveling only makes the flash lives longer, as it distributes the newly appeared bad block around the chip. That's why swap on USB devices is disabled by default on Alt-F.
But you already know all that.

It is possible that either minidlna or sqlite put an extra stress on the flash, don't know. Memory Caching/Buffering (which is automatic) could alleviate that to a certain extent, but the DNS-323 has very low memory for caching/buffering to be effective. Simple filesystems such as ext2 or vfat (not journaled), should also help.

This rises the question on how does minidlna/sqlite (or as a matter of fact any database  oriented app) performs on computers with SSD... don't know, never searched for that.

Will minidlna/sqlite perform unnecessary updates (writes) on the database? Or does your media files change frequently? Or do you have the minidlna "rescan shares" option turned on? Every one of those would explain the flash short life.

Just to let you know, on Alt-F "settings" are stored on the box flash memory, and the reason why configuration changes are not immediately saved to flash and instead you have to deliberately "save settings when done" is precisely to diminish the number of writes to the flash memory (that on the 323/321 can be as low as 10000 writes).
 

 

Eric R. Wick

unread,
Jun 28, 2015, 8:38:08 AM6/28/15
to al...@googlegroups.com
Thanks for your advise,

yes there are some days i add some music albums. Minidlna is using notification, but i did the final mistake to place his log on the usb key also. Have seen that all client requests and actions produce a lot of writes there. Now all is back on the harddisk again:-)

Seems that usb keys also got planned obsolescence from the industry, have a nearly 10 years old 256MB for rescue images and he outlive all later bought keys.



 
Reply all
Reply to author
Forward
0 new messages