Hi,
I just installed r22.03.3 on Xiaomi Mi Router 3 Pro; minidlna reads no files in mounted USB flash drive (f2fs or vfat, doesn't matter), but if I copy a mp3 file into /tmp and add list media_dir '/tmp/'
to minidlna config it can read it. I tried to change minidlna user to root, no success. Setting log_level to debug gives no clue what to do about it
thanks in advance
have you added the package(s) for file system support ?
which packages do you mean?
root@MIAMI:~# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_1 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=1)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
/dev/sda1 on /mnt/movies type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root@MIAMI:~# opkg list_installed | grep kmod
kmod-cfg80211 - 5.10.161+5.15.81-1-1
kmod-crypto-aead - 5.10.161-1
kmod-crypto-ccm - 5.10.161-1
kmod-crypto-cmac - 5.10.161-1
kmod-crypto-crc32 - 5.10.161-1
kmod-crypto-crc32c - 5.10.161-1
kmod-crypto-ctr - 5.10.161-1
kmod-crypto-gcm - 5.10.161-1
kmod-crypto-gf128 - 5.10.161-1
kmod-crypto-ghash - 5.10.161-1
kmod-crypto-hash - 5.10.161-1
kmod-crypto-hmac - 5.10.161-1
kmod-crypto-manager - 5.10.161-1
kmod-crypto-null - 5.10.161-1
kmod-crypto-rng - 5.10.161-1
kmod-crypto-seqiv - 5.10.161-1
kmod-crypto-sha256 - 5.10.161-1
kmod-fs-f2fs - 5.10.161-1
kmod-fs-vfat - 5.10.161-1
kmod-gpio-button-hotplug - 5.10.161-3
kmod-hwmon-core - 5.10.161-1
kmod-leds-gpio - 5.10.161-1
kmod-lib-crc-ccitt - 5.10.161-1
kmod-lib-crc32c - 5.10.161-1
kmod-mac80211 - 5.10.161+5.15.81-1-1
kmod-mt76-connac - 5.10.161+2022-09-06-d7054646-5
kmod-mt76-core - 5.10.161+2022-09-06-d7054646-5
kmod-mt7615-common - 5.10.161+2022-09-06-d7054646-5
kmod-mt7615-firmware - 5.10.161+2022-09-06-d7054646-5
kmod-mt7615e - 5.10.161+2022-09-06-d7054646-5
kmod-nf-conntrack - 5.10.161-1
kmod-nf-conntrack6 - 5.10.161-1
kmod-nf-flow - 5.10.161-1
kmod-nf-log - 5.10.161-1
kmod-nf-log6 - 5.10.161-1
kmod-nf-nat - 5.10.161-1
kmod-nf-reject - 5.10.161-1
kmod-nf-reject6 - 5.10.161-1
kmod-nfnetlink - 5.10.161-1
kmod-nft-core - 5.10.161-1
kmod-nft-fib - 5.10.161-1
kmod-nft-nat - 5.10.161-1
kmod-nft-offload - 5.10.161-1
kmod-nls-base - 5.10.161-1
kmod-nls-cp437 - 5.10.161-1
kmod-nls-iso8859-1 - 5.10.161-1
kmod-nls-utf8 - 5.10.161-1
kmod-ppp - 5.10.161-1
kmod-pppoe - 5.10.161-1
kmod-pppox - 5.10.161-1
kmod-scsi-core - 5.10.161-1
kmod-slhc - 5.10.161-1
kmod-usb-core - 5.10.161-1
kmod-usb-ledtrig-usbport - 5.10.161-1
kmod-usb-storage - 5.10.161-1
kmod-usb-storage-uas - 5.10.161-1
kmod-usb-xhci-hcd - 5.10.161-1
kmod-usb-xhci-mtk - 5.10.161-1
kmod-usb3 - 5.10.161-1
I see the packages there, is the drive mounted, and can you list them in cli ?
if you mean these sure there are installed, otherway I wouldn't be able to mount and access the volumes
f2fs-tools
kmod-fs-f2fs
dosfstools
kmod-fs-vfat
/dev/sda1 on /mnt/movies type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root@MIAMI:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 4352 4352 0 100% /rom
tmpfs 254916 10712 244204 4% /tmp
/dev/ubi0_1 214004 10008 199160 5% /overlay
overlayfs:/overlay 214004 10008 199160 5% /
tmpfs 512 0 512 0% /dev
/dev/sda1 16759792 868888 15890904 5% /mnt/movies
minidlna seems to monitor the mounted volume but reads no media files in it, but in /tmp/ it does:
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[13777]: minidlna.c:200: warn: received signal 15, good-bye
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: monitor.c:155: info: Added watch to /mnt [1]
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: minidlna.c:1184: warn: HTTP listening on port 8200
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: monitor.c:155: info: Added watch to /mnt/movies [2]
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: monitor.c:155: info: Added watch to /tmp [3]
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: getifaddr.c:342: info: Enabling interface 192.168.31.1/255.255.255.0
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: monitor.c:155: info: Added watch to /mnt [1]
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: monitor.c:155: info: Added watch to /mnt/movies [2]
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: monitor.c:155: info: Added watch to /tmp [3]
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: monitor.c:155: info: Added watch to /tmp/dnsmasq.d [4]
Wed Feb 22 10:56:59 2023 daemon.info minidlnad[15790]: monitor.c:155: info: Added watch to /tmp/etc [5]
what are the permission on the files ?
same for /mnt and /mnt/movies
root@MIAMI:/tmp# ls -al *mp3
-rw-r--r-- 1 root root 8199875 Feb 21 20:26 serebro_mama.mp3
root@MIAMI:/tmp#
root@MIAMI:/# ls -al
drwxr-xr-x 1 root root 544 Jan 1 1970 .
drwxr-xr-x 1 root root 544 Jan 1 1970 ..
drwxr-xr-x 2 root root 778 Jan 3 00:24 bin
drwxr-xr-x 5 root root 1560 Feb 21 21:06 dev
drwxr-xr-x 1 root root 1800 Dec 27 07:05 etc
drwxr-xr-x 1 root root 368 Dec 27 07:05 lib
drw-rw-rw- 1 root root 224 Feb 21 16:23 mnt
drwxr-xr-x 4 root root 360 Jan 3 00:24 overlay
dr-xr-xr-x 138 root root 0 Jan 1 1970 proc
drwxr-xr-x 16 root root 235 Jan 3 00:24 rom
drwxr-xr-x 2 root root 3 Jan 3 00:24 root
drwxr-xr-x 1 root root 224 Feb 21 16:22 sbin
dr-xr-xr-x 11 root root 0 Jan 1 1970 sys
drwxrwxrwt 20 root root 560 Feb 22 10:37 tmp
drwxr-xr-x 1 root root 416 Oct 23 2021 usr
lrwxrwxrwx 1 root root 3 Jan 3 00:24 var -> tmp
drwxr-xr-x 1 root root 232 Jan 21 09:59 www
root@MIAMI:/#
root@MIAMI:/mnt# ls -al
drw-rw-rw- 1 root root 224 Feb 21 16:23 .
drwxr-xr-x 1 root root 544 Jan 1 1970 ..
drwxr-xr-x 11 root root 8192 Jan 1 1970 movies
root@MIAMI:/mnt#
root@MIAMI:/mnt/movies# ls -al *.mp3
-rwxr-xr-x 1 root root 8199875 Feb 21 21:07 serebro_mama.mp3
-rwxr-xr-x 1 root root 7785068 Feb 21 21:08 zivert.mp3
root@MIAMI:/mnt/movies#
I also tried to symlink /mnt/movies into /tmp, no success.
would it help to add (which is what I have on my minidlna install)
kmod-fs-exfat
kmod-fs-ext4
kmod-usb-ehci
kmod-usb2
I've made a /media folder and mounted my usb drive directly in /media, then IT WORKED. pretty weird...
glad its fixed though - if the issue is fixed could you edit the heading to mark as SOLVED?
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.