juanfranblanco / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

miniDLNA - How to recreate database #156

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My database file has been doing some weird things lately (combining show show 
folders that start with the same letter).

I was hoping someone knew the command to have it rebuild its database file 
(files.db)?  I couldn't find it in the Wiki.

Thanks!

Original issue reported on code.google.com by TMason...@gmail.com on 8 Mar 2012 at 5:44

GoogleCodeExporter commented 8 years ago
Edit start script header:

# nano /opt/etc/init.d/S98minidlna

set DB_UPDATE_MODE=2

and restart the server

/opt/etc/init.d/S98minidlna restart

or just remove database file:

# rm -f /opt/var/cache/minidlna/files.db

and restart the server

Original comment by d...@soulblader.com on 8 Mar 2012 at 6:01

GoogleCodeExporter commented 8 years ago
Thank you!

I was trying to find the location of the file "files.db" and had attached the 
USB Flash Drive to my Desktop.  When I put it back in  the RT-N56u my files 
were arranged correctly! (Aqua Teen Hunger Force seasons 1-3 were not in the 
Archer season 2 folder.)

This is good information to have too.  

Thanks!

Original comment by TMason...@gmail.com on 8 Mar 2012 at 6:10

GoogleCodeExporter commented 8 years ago
You're welcome!

If you don't know some path in Linux, try to check it in config file. Config 
files are stored in /etc dir mostly. ( /opt/etc in our case, cause we use 
Optware)

# cat /opt/etc/minidlna.conf

You can can change database path by changing db_dir=/... value.

Original comment by d...@soulblader.com on 8 Mar 2012 at 6:19