NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
StephenB
Jul 07, 2012Guru - Experienced User
ReadyDLNA OS Partition Usage
I just noticed that ReadyDLNA's database and artwork cache are stored on the OS partition (/var/cache/minidlna). On my system that is about 600 MB of the limited OS partition space :shock:
Is there any way to shift that stuff to the C Volume???
Is there any way to shift that stuff to the C Volume???
18 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee Retired+1. I like this feature request. There is an option that can be added to /etc/minidlna.conf for this. They could use /c/.minidlna or something like that instead of /var/cache/minidlna
Looking around the web there does appear to be a db_dir option that could be tried.
From the minidlna 1.0.25 source there is this default /etc/minidlna.conf file:
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200
# network interfaces to serve, comma delimited
#network_interface=eth0
# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
# can prepend the type, followed by a comma, to the directory:
# + "A" for audio (eg. media_dir=A,/home/jmaggard/Music)
# + "V" for video (eg. media_dir=V,/home/jmaggard/Videos)
# + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
media_dir=/opt
# set this if you want to customize the name that shows up on your clients
#friendly_name=My DLNA Server
# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
#db_dir=/var/cache/minidlna
# set this if you would like to specify the directory where you want MiniDLNA to store its log file
#log_dir=/var/log
# set this to change the verbosity of the information that is logged
# each section can use a different level: off, fatal, error, warn, info, or debug
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn
# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes
# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no
# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
# which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no
# default presentation url is http address on port 80
#presentation_url=http://www.mylan/index.php
# notify interval in seconds. default is 895 seconds.
notify_interval=900
# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1
# specify the path to the MiniSSDPd socket
#minissdpdsocket=/var/run/minissdpd.sock
# use different container as root of the tree
# possible values:
# + "." - use standard container (this is the default)
# + "B" - "Browse Directory"
# + "M" - "Music"
# + "V" - "Video"
# + "P" - "Pictures"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=. - it should be a simple matter to symlink /var/cache/minidlna to /c/.minidlna
- SkywalkerNETGEAR ExpertYes, just changing the db_dir setting in the config file will do the trick, and won't get overwritten by firmware updates. We could probably do an addon for this without too much trouble.
- EtzAspirant
Skywalker wrote: Yes, just changing the db_dir setting in the config file will do the trick, and won't get overwritten by firmware updates. We could probably do an addon for this without too much trouble.
Would be really helpful, as db_dir grows expodentially, if you have lots of media files and most users wouldnt feel themselves very comfortable to edit config files by hand. - de_niroGuideThis would be great idea for most DLNA users to keep DLNA component running normally on Readynas,I have seen many Readynas boxes filled up DLNA cache DB files in /var/cache/minidlna which size risen up to 1.8GB or 3.5GB(Sparc and X86 based NAS),I hope there is an addon to allow users modify current setting without SSH access.
- jhobsonAspirant+1 URGENT vote for this to be provided as an addon.
I have tried also manually editing the /etc/minidlna.conf file and adding db_dir=/c/.minidlna
However finding that this file keeps on getting rewritten and that db_dir is wiped out, with the box then defaulting to using LOTS of space in /var/cache. - mdgm-ntgrNETGEAR Employee RetiredWhat model ReadyNAS was this on and what version of RAIDiator? What version of ReadyDLNA is installed on your NAS?
How did you manually edit the conf file, via SSH using vi or some other method?
When does the file get rewritten losing the changes? When you restart ReadyDLNA? When you reboot the NAS? When you make configuration changes to ReadyDLNA via the web-admin interface of the ReadyNAS? - jhobsonAspirantHi,
ReadyNAS NV+ v2 (ARM).
RAIDiator - 5.3.5
DLNA - 1.0.25
I believe that it's getting overwritten when restarting/rebooting or when making a config change via the WebGUI.
Also note that the scanning of the folders for new files to publish via DLNA is either stopping or taking an extremely long time between scans (i.e. many hours / 1-2 times a day at best) - mdgm-ntgrNETGEAR Employee RetiredYou didn't answer all my questions. How did you edit the minidlna.conf file?
- jhobsonAspirantHi sorry missed that question. I use Winscp, ssh'ing into the box to edit.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!