DIR-868L cannot get any sharing working

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Fri Jan 13, 2023 18:03    Post subject: DIR-868L cannot get any sharing working Reply with quote
I'm new to dd-wrt, but read through quite a bit before deciding to post since I could not resolve my issue. I cannot get neither Samba nor DLNA working on my router. External storage is recognized, miniDLNA service is working, and I can browser through Windows Explorer to the Sambe share. Unfortunately neither shows me the files on the external drive which is connected to the USB port of the router. As you can see from the screenshots, it has 3 partitions (followed suggestions from https://forum.dd-wrt.com/phpBB2/download.php?id=37134). First one is NTFS where my video files are, 2nd is jffs (Ext2) and 3rd one is opt (ext2).
Looking at the screenshots from the linked document above, it shows 3 mounted partitions in the USB tab, while as you can see on my end it only shows 2 (the jffs and opt). However the NTFS is shown as mounted from the logs just below the graphs. Any suggestions what I am missing are appreciated!

https://imgur.com/a/qHxgtb5
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Fri Jan 13, 2023 18:07    Post subject: Reply with quote
Use the latest build 51288 and use only ext2/4 file system and no NTFS
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Fri Jan 13, 2023 18:11    Post subject: Reply with quote
@egc I am on 51288. The screenshots from the guide clearly show the other person was able to use NTFS as share. Can you give me any link where it says NTFS is no longer supported? Or any guarantee that changing the FS would actually work?
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Fri Jan 13, 2023 18:35    Post subject: Reply with quote
Ok I am getting further, the NTFS partition is now getting mounted successfully.And Samba share is now working. However miniDLNA is still not picking up the files. I honestly can live without the Samba, but DLNA is essential as it is for the kids and their videos that they watch on either TV. All I did was to restart the router due to an unrelated setting elsewhere.


4.png
 Description:
 Filesize:  38.39 KB
 Viewed:  1533 Time(s)

4.png


silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Fri Jan 13, 2023 18:42    Post subject: Reply with quote
Happy End, got the DLNA to pick up the files! Apparently now that the NTFS partition is mounted, it wants to have the proper mounth path in the Path column and not in Subdir.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Sat Jan 14, 2023 7:09    Post subject: Reply with quote
The NTFS driver (we use the new paragon NTFS3 linux kernel driver) is rather picky and can easily flag an NTFS partition as dirty which will prevent it from mounting, further more there is the occasional crash reported.

So using ext2/4 is recommended (or even exfat) over NTFS.

Using Samba (we use ksmbd) and MiniDLNA can be resource/memory intensive so keep an eye on your memory.

Consider also using a 2 GB SWAP partition to prevent an OOM crash.

Attached my personal notes (only visible when you are logged in), slightly outdated but perhaps they are helpful.



DDWRT USB storage and NAS v3.pdf
 Description:

Download
 Filename:  DDWRT USB storage and NAS v3.pdf
 Filesize:  533.28 KB
 Downloaded:  1107 Time(s)


_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Sat Jan 14, 2023 21:57    Post subject: Reply with quote
@egc Yeah I've actually just encountered the problem with NTFS this morning and was unsure why the same drives that mounted successfully last night were not being mounted this morning. I am baffled that linux does not yet have a good ntfs driver!
Anyway, would try ext2 as I want to be able to write to the external drive from Windows and Ext4 is a bit problematic in this regards from my experience. I honestly did not know that EXFAT was supported option, if ext2 gives me grief would definitely switch to it.

Thank you for sharing that file, it is essentially almost the same file I linked in my original post with the addition of swap and some other things. However I also read https://wiki.dd-wrt.com/wiki/index.php/Linux_SWAP and it states: Swap won't really be needed if your system has a lot of RAM (such as 64+ MB). D-link DIR-868L has 256Mb and I am barely using any at the moment (see attached).
Am I to expect that the samba and dlna services leak memory and would eventually use all of it? I am using an HDD docking station (poor man's NAS) and plan to turn it of when we're not using it. Will this reset the used memory then?

Either way, I have no problem creating swap partition, but it seems over complicated. Do I really need all these tools mentioned in https://wiki.dd-wrt.com/wiki/index.php/Linux_SWAP ? Is there an easier way to do this?



5.png
 Description:
 Filesize:  34.98 KB
 Viewed:  1463 Time(s)

5.png


egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Sun Jan 15, 2023 7:59    Post subject: Reply with quote
The wiki was written when kernels and software was less bloated.

So now I see an occasional use of a SWAP file although very rare still.

If you regularly restart the router then memory leaks are mitigated.

If you are going to reformat anyway then consider adding a SWAP file.
When doing it from Windows with Minitool partition Wizard is just a click in the GUI, other wise leave it as is.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Sun Jan 15, 2023 18:07    Post subject: Reply with quote
@egc So created a swap partition and formatted the main partition to ext2 last night. Copied some videos on it from my Windows machine and the dlna service scanned it and all looked promising. This morning all videos from the ext2 partition are gone like they never were there. Tried a data recovery but it doesn't find anything. MEGA WEIRD. So had enough with NTFS and EXT, I formatted with ExFAT and different problem - the miniDLNA service does not want to index the drive. Honestly I am at my wits end! DD-WRT looks like a great idea, but probably the 868L implementation is lacking .. I don't want to go back to original firmware and have no mental strength to try tomato if there is similar experience over there.
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6858
Location: Romerike, Norway

PostPosted: Sun Jan 15, 2023 20:04    Post subject: Reply with quote
EXT2 is not a journaling file system. God for Memory Sticks. For HD, use EXT4.

You can format the partition in the dd-wrt GUI. No reason to connect the drive to a Windowz Machines.
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Sun Jan 15, 2023 20:46    Post subject: Reply with quote
Per Yngve Berg wrote:
EXT2 is not a journaling file system. God for Memory Sticks. For HD, use EXT4.

You can format the partition in the dd-wrt GUI. No reason to connect the drive to a Windowz Machines.


Except that those HDDs are in a NAS and I want to copy videos directly from various Windows machines over to them. I couldn't find any way to access the EXT4 partition under Windows 10 and write to it. Ideas?
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6858
Location: Romerike, Norway

PostPosted: Sun Jan 15, 2023 21:35    Post subject: Reply with quote
You copy the files to the NAS over the network. That is the main idea.
If you are in for videos, you should have a NAS with an Ethernet port.
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Sun Jan 15, 2023 23:10    Post subject: Reply with quote
Per Yngve Berg wrote:
You copy the files to the NAS over the network. That is the main idea.
If you are in for videos, you should have a NAS with an Ethernet port.


That is exactly what I can't do if I have ext4, at least not from a Windows machine and all machines in our household are with Windows OS. I don't need a dedicated NAS machine, a HDD docking station through router's USB port would suffice me well, if I can get it to work reliably. If there was no issue with NTFS driver in DDWRT, I would have forgotten all about it .. alas ..
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Sun Jan 15, 2023 23:30    Post subject: Reply with quote
Use a native linux file system such as ext4 with dd-wrt, ksmbd and minidlna files will be transparent to clients.
If you need to directly connect drive to windows: https://www.paragon-software.com/home/linuxfs-windows/#
Maybe NTFS support will improve or code sync in the future but still makes no sense to use with a linux router.
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Mon Jan 16, 2023 10:56    Post subject: Reply with quote
I understand why extFS would be the preferred choice for a linux based router, but for my needs I really need FS that is Windows friendly. Anyway I was able to track down why miniDLNA would not scan for files when using ExFat or FAT32 - the "Keep Metadata on Storage" setting was the culprit, setting it to Disable resolved the issue. I am not overly concerned about that setting, so all good at the end, but would be nice if there is a FAQ somewhere where such "little details" can be shared, so others do not have to bang their head. Thanks all for the help!
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum