Hi guys,
i'm running my media server over openwrt. Minidlna.
I'm very satisfied. My usb drive is mounted and it works. But when i unplug it and plug it again it wont detect it anymore. I need to restart openwrt and force a reboot to scan and detect my mediafiles again.
Is there any way to type a command to detect plugged in Usb drives while everything is working?
NTFS has some sort of issues which make it harder for the USB/Drive to get mounted at boot properly. For me even adding the entry to fstab did not work and I always need to mount it through /etc/rc.local. I am not really sure why this happens but ext4 works flawlessly without any problem. @trendy Can Windows detect f2fs if I plug my external drive into Windows?
I have my media for minidlna on a ntfs drive too and do the same thing as @ahmar16, mount it through /etc/rc.local, once minidlna has scanned all the files i disable minidlna (system>startup>minidlna>disable) and add /etc/init.d/minidlna start to /etc/rc.local under the mount command for the ntfs drive, that way when the router is rebooted the drive mounts and then minidlna starts and should see all the files without having to rescan. It's not as convenient as hot plug, but better than nothing if you have to use ntfs.
I am now little bit confused. Everthing works well and flawlessly. But if i unplug it and plug it soon it wont detect anymore.I need to reboot the openwrt Os. What is the most easiest way to perform this?
Yes only if transferring files didn't depend on the power of cpu and so wifi could actually provide 30 mb/s to transfer a file as large as 60 Gbs as quickly as possible.
Because right now I only get 3 mb/s on my BT HH5A.
A lot of that is because the format is NTFS. The Linux NTFS driver is very slow. A Linux-native filesystem will be a lot faster. Use ext4 if it's a mechanical disk or f2fs for a flash-based drive.
Yes I was using ext4 before but I was only able to transfer files at 3/4 mb/s via wifi and 5 mb/s through lan cable. But then I had to transfer a 60 Gbs file and it was taking ages so I physically connected the drive, couldn't copy the file because windows does not understand ext4 file system so then after a long search on internet I found a software that was able to transfer files.
In the end I just switched to ntfs because it seemed right. While the 200mb partition on the drive for ExtRoot is still ext4 because I don't need to access it in my pc.
Please be more specific, provide some logs. What exactly can you see in the syslog after connecting hard drive for the first time? What do you see after disconnecting it? What do you see after connecting it again?
Also be careful with unplugging. I unplugged a few times (without mounting) and the NTFS of the HDD got partially corrupted (had to fix it with chkdsk).