[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
mscanner mscanner.db fill all partition /dev/hdb1
11-24-2009, 04:35 AM (This post was last modified: 03-11-2010 06:25 PM by marianoacc.)
Post: #1
mscanner mscanner.db fill all partition /dev/hdb1
Someone knows what is mscanner service is?

When NMT start, it start growing file mscanner.db up to first partition is full (almost 140Mb).

Once this partition is full you can't install nmt apps anymore, myihome does not start again, etc

I moved it to HARD_DISK and symlink it, but when nmt restart it creates new mscanner.db on partition /dev/hdb1.

Why mscanner.db grows without limits? Which services uses it?

Regards
Mariano
Find all posts by this user
12-12-2009, 02:48 PM (This post was last modified: 12-12-2009 03:10 PM by Blaise.)
Post: #2
RE: mscanner mscanner.db fill all partition /dev/hdb1
It does some kind of indexing of all media files. Symlinks cause an infinite loop so the mscanner.db file grows until the partition is out of space.

It doesn't seem to create errors if you delete it, so I delete the file on boot in start_app.sh.
If there's some way to disable or fix mscanner, I'd be glad to hear it.

Edit: "Fixing" this issue was easier then I thought. Settings are in /mnt/syb8634/server/ms.conf. You can tell it to index a bogus folder or stop after 1 item.
My mscanner.db file is now steady at 28KB, and browsing my MNT is a lot faster!
Find all posts by this user
[+] 1 user says Thank You to Blaise for this post
12-14-2009, 11:15 AM
Post: #3
RE: mscanner mscanner.db fill all partition /dev/hdb1
(12-12-2009 02:48 PM)Blaise Wrote:  Edit: "Fixing" this issue was easier then I thought. Settings are in /mnt/syb8634/server/ms.conf. You can tell it to index a bogus folder or stop after 1 item.
My mscanner.db file is now steady at 28KB, and browsing my MNT is a lot faster!

Quick question: How did you tell the scanner to stop after 1 item?
I have found an option max_return but every time after restarting the PCH mscanner.db starts growing again!
Find all posts by this user
02-14-2010, 12:54 AM
Post: #4
RE: mscanner mscanner.db fill all partition /dev/hdb1
Hmm weird.

My ms.conf looks like[/php] this:

Code:
# version: 1.3.6

# shared media paths (Absolute Path)
# To support more than ONE media share folder,
# please repeat adding the "media_path" variable identifier
# with shared folder path in this configuration file.
# NOTE: Must have at least 1 media path.
media_path=/share/tmp

# media server friendly name
friendly_name=UPnP AV Server

# canche-control value in second
cache_control=1800

# max return
max_return=1

# For USB support, please specify "usb_path" as variable identifier
# If not, the feature will be ignore.
# Example: usb_path = /YOUR/USB/PATH
##usb_path=/opt/sybhttpd/localhost.drives  ###no need to check localhost, else c
Find all posts by this user
03-14-2010, 07:29 PM (This post was last modified: 03-14-2010 07:34 PM by marianoacc.)
Post: #5
RE: mscanner mscanner.db fill all partition /dev/hdb1
(02-14-2010 12:54 AM)Blaise Wrote:  Hmm weird.

My ms.conf looks like[/php] this:

Code:
# version: 1.3.6

# shared media paths (Absolute Path)
# To support more than ONE media share folder,
# please repeat adding the "media_path" variable identifier
# with shared folder path in this configuration file.
# NOTE: Must have at least 1 media path.
media_path=/share/tmp

# media server friendly name
friendly_name=UPnP AV Server

# canche-control value in second
cache_control=1800

# max return
max_return=1

# For USB support, please specify "usb_path" as variable identifier
# If not, the feature will be ignore.
# Example: usb_path = /YOUR/USB/PATH
##usb_path=/opt/sybhttpd/localhost.drives  ###no need to check localhost, else c
Hey guys,

Finally the work is done. I have myIhome running and up. The problem with mscanner is that in my egreat E32B with hard disk installed, /share is a symlink to /opt/sybhttpd/localhost.drives/HARD_DISK, and also in /opt/sybhttpd/localhost.drives/HARD_DISK there is another symlink HARD_DISK to /opt/sybhttpd/localhost.drives/HARD_DISK.

So I think mscanner enter in an infinite loop with this redundant symlinks and fill internal egreat disk.

I solved it in three steps:

1) I make a new folder named "ShareuPnP" in /share
2) I alter ms.conf puting this path:
media_path=/share/ShareuPnP
3) Then I do some others symlinks only for media I want to share with myihome:
cd /share/ShareuPnP
ln -s ../Video/Movies/
ln -s ../Music
ln -s ../Photo

Now I have all working OK.

Regars.
Mariano
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  mscanner process eats all cpu hoppy 4 1,528 08-03-2010 08:38 AM
Last Post: hoppy

Forum Jump: