What's new

Media Server faster then the USB 3.0 mount....

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Speedy1205

Regular Contributor
Hi Guys,

not sure if someone saw the issue before. I have a USB 3.0 Disk connected to the USB 3.0 Port. When I restart the router then the Media Server (dlna) is starting faster then the Mount of the DISK and because of this, the disk gets mounted to a different location (ESB-CM(1) ) which makes thinks difficult :-( Any Ideas what could happened ?

I believe that the DLNA Server is writing the database before the mount.... is there a way to stop and start the Media Server manually ?
 
Hi Guys,

not sure if someone saw the issue before. I have a USB 3.0 Disk connected to the USB 3.0 Port. When I restart the router then the Media Server (dlna) is starting faster then the Mount of the DISK and because of this, the disk gets mounted to a different location (ESB-CM(1) ) which makes thinks difficult :-( Any Ideas what could happened ?

I believe that the DLNA Server is writing the database before the mount.... is there a way to stop and start the Media Server manually ?

That only happens to me if the router is not rebooted properly. by that I mean rebooted using the power button no the GUI.
 
It is a known problem..
It happens to me, too.
Also reeboting through interface.

I have to disable DLNA, reboot, Re-enable DLNA.

Don't know why it isn't fixed yet.. it should be very very simple.. just a delay in DLNA start..

Merlin.. I know you don't like messing up with Asus USB functions.. but it would be great if you fix that..
 
It is a known problem..
It happens to me, too.
Also reeboting through interface.

I have to disable DLNA, reboot, Re-enable DLNA.

Don't know why it isn't fixed yet.. it should be very very simple.. just a delay in DLNA start..

Merlin.. I know you don't like messing up with Asus USB functions.. but it would be great if you fix that..

If you want you can use this script which I use. In the GUI I just left Media Server disabled and I run the script which will not screw up my mount points:

Code:
#!/bin/bash
sleep 2m
datestr=$(date +%Y%m%d_%H%M%S)
ps=/jffs/ps
# date used to add to the log file (append) so all the logs will be collected with the date and time no log overwriting....

if grep ESB-TB /etc/mtab &>/dev/null; then
echo $datestr "USB disk for ESB-TB is mounted for media server operation" >> /tmp/syslog.log
else exit
fi

/bin/ps > $ps
if
grep minidlna /jffs/ps &>/dev/null; then
echo $datestr "minidlna server is already started and is not using its new configuration" >> /tmp/syslog.log
else
/usr/sbin/minidlna -f /tmp/mnt/ESB-TB/TB-DISK/Scripts/minidlna.conf -R
fi
rm $ps

I just added this in the /jffs/script/post-mount
like this: sh /mnt/ESB-TB/TB-DISK/Scripts/mini_dlna_start.sh &

this works fine now.... If you have some question....
 
Interesting..

If you want you can use this script which I use. In the GUI I just left Media Server disabled and I run the script which will not screw up my mount points:

Code:
#!/bin/bash
sleep 2m
datestr=$(date +%Y%m%d_%H%M%S)
ps=/jffs/ps
# date used to add to the log file (append) so all the logs will be collected with the date and time no log overwriting....

if grep ESB-TB /etc/mtab &>/dev/null; then
echo $datestr "USB disk for ESB-TB is mounted for media server operation" >> /tmp/syslog.log
else exit
fi

/bin/ps > $ps
if
grep minidlna /jffs/ps &>/dev/null; then
echo $datestr "minidlna server is already started and is not using its new configuration" >> /tmp/syslog.log
else
/usr/sbin/minidlna -f /tmp/mnt/ESB-TB/TB-DISK/Scripts/minidlna.conf -R
fi
rm $ps

I just added this in the /jffs/script/post-mount
like this: sh /mnt/ESB-TB/TB-DISK/Scripts/mini_dlna_start.sh &

this works fine now.... If you have some question....

I have not really understand how to use it..
Do I have to name it post.mount and put in scripts?
Than I only have to replace HDD mount point with mine?

I don't understand this "sh /mnt/ESB-TB/TB-DISK/Scripts/mini_dlna_start.sh &"
 
ok here a bit more details:

Maybe you have the file or you need to create it:

create the file:
Code:
touch /jffs/scripts/post-mount
will create the file when it isn't there yet.

the content of my file is:

Code:
#!/bin/sh
sleep 5
[B]sh /mnt/ESB-TB/TB-DISK/Scripts/mini_dlna_start.sh &[/B]

So well that's just telling that the script should wait 5 Minutes and than execute the the script for DLNA where you have to change the mount point for you script location.

You need to change this:
Code:
if grep ESB-TB /etc/mtab &>/dev/null; then
you have to replace the ESB-TB with the mount point your USB disk uses

and
Code:
/usr/sbin/minidlna -f /tmp/mnt/ESB-TB/TB-DISK/Scripts/minidlna.conf -R
where you need to change the path.

If you want you also can just copy paste the complete text into the /jffs/scripts/post-mount which will work also. I just have mine in a different location that's why I add there just to execute the script with the location.

Its up 2 you.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top