hum: Minidlna needs to rescan the files, try going to System>Startup>Minidlna and Restart.
-> i add this infos:
I just want to be able to play the videos with the minidlna without restarting the box (it's quite long) knowing that besides the box has no button off and I have to look for the socket back …
it is not practical when you are lying in bed and watching with a TV the videos in the USB HDD
I do not have no computer in my bed !!!
With samba I can immediately read the contents by changing the disk
notify_interval should be the time of announcing service over network.
Inotify (0 or 1) is to enable the update of db when is created new file or changed within the target directory.
A persistent directory for database file could be a solution but not so reliable, assuming that when minidlna starts he is looking for the database, checking his consistency and the presence of files in target directories, in case of one fail of that starts recreating db (at that moment your usb drive is already connected and ready to be scanned?), but at least if you use a remote smb directory and his content is unchanged minidlna will not rescan becoming ready faster....
You could also use hotplug to force minidlna to rescan when use drive is mounted.
Just add /etc/init.d/minidlna reload after the mount line or better:
sleep 1
/etc/init.d/minidlna stop
/usr/bin/minidlnad -r -f /tmp/minidlna.conf # conf should be there
Or again:
/etc/init.d/minidlna stop
rm path/to/minidlna/database/..../files.db
/etc/init.d/minidlna start