What's new

[TUTORIAL] Minidlna Media Server through debian-optware-arm

  • 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!

How this works for you?


  • Total voters
    10
Unmount disk from router ui, details here https://www.asuswrt.eu/how-to-format-usb-drive/
Disable swap
Code:
swapoff /opt/swap
Check with this command
Code:
e2fsck -fv /dev/sda1
If you still get errors, format disk directly from router


This come out:

Code:
e2fsck 1.42.8 (20-Jun-2013)
Backing up journal inode block information.

Pass 1: Checking inodes, blocks, and sizes
Error allocating icount link information: Memory allocation failed

/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****
e2fsck: aborted

/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****

how can i install the newest e2fsck and put cache on the disk for the scan?

thanks in advance
 
how to share sdb3?

I want to share additional folder on sdb3 drive.
I added mount command into S99debian to mount /tmp/mnt/sdb3/VideoTutorials/ to /tmp/mnt/sda1/asusware.arm/debian/mnt3
and added mnt3 folder into minidlna configuration.

When I reboot router, /opt/debian/mnt3/ appears to be not mounted.
If I stop and start S99debian, mn3 folder gets correctly mounted.
So scripts are correct but mounting fails if started in post-mount script for some reason. Maybe sdb3 is not avaialbe there yet?

Similar solution works fine on folder on sda1.

Is there a way to fix this?
 
maybe try to increase the sleep time in the post-mount script?

sleep 10 to maybe sleep 20?
 
I get a 5-6 minutes delay of post-mount script after router reboot, check on yours.
Post here S99debian script.
 
Post-mount:

Code:
#!/bin/sh
sleep 10
/opt/etc/init.d/S95Pyload start
swapon /dev/sdb2
sleep 300
/opt/etc/init.d/S99debian start

S99debian:

Code:
#!/bin/sh

EXT_DIR=/tmp/mnt/sda1/movies
EXT_DIR2=/tmp/mnt/sda1/downloads/
EXT_DIR3=/tmp/mnt/sdb3/VideoTutorials/

...

	for dir in dev proc sys; do
		mount -o bind /$dir $CHROOT_DIR/$dir
	done
	[ -z "$EXT_DIR" ] || mount -o bind $EXT_DIR $CHROOT_DIR/mnt
	[ -z "$EXT_DIR2" ] || mount -o bind $EXT_DIR2 $CHROOT_DIR/mnt2
	[ -z "$EXT_DIR3" ] || mount -o bind $EXT_DIR3 $CHROOT_DIR/mnt3
	for item in $(cat $CHROOT_SERVICES_LIST); do
		chroot $CHROOT_DIR /etc/init.d/$item start
	done
...
 
hey thehasX,

what can it be, i have to go via aicloud on my usb hard disk(plugged into the usb3.0 port of the router) to put the minidlna for my TV visible? (Asus AC87u with 1.4 minidlna Arm)

Sometimes its enough to use dropbox via my Samsung 4K Smart TV, but sometimes i have to open a file from aicloud from the smartphone and then a little bit later, maybe 2 minutes, it can be visible in sources on my TV...

Thats Crazy....

If you know a Solution, i would be very thankful for... :-(
 
Last edited:
If I understand right, you installed minidlna from debian abd will not shown on input list on your tv?
Do you have the same issue with minidlna built in router?
Try to reduce notify_interval from 895 to 300 or less in /opt/debian/etc/minidlna.conf
 
Can you please share the source code to enable the thumbnails? I would also like to install Minidlna on my Raspberry Pi with the thumbnails enabled.

Many thanks.
 

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