USB HDD - Dlink 882

Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware
Author Message
samgurung
DD-WRT Novice


Joined: 15 May 2020
Posts: 5

PostPosted: Sat Jun 20, 2020 12:58    Post subject: USB HDD - Dlink 882 Reply with quote
Been looking for this but cant seem to find any information.

I want to use the USB ports on the Dlink 882 router. I have it flashed with build 43471(19/06/2020). However I am unable to mount the USB HDD. Formatted the disk as ext3 and followed instructions on the website but to no avail.

Any help is appreciated.

Thank you all,

S
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sat Jun 20, 2020 13:43    Post subject: Reply with quote
Via telnet/ssh to the router, you can do lsmod to see what kernel modules are loaded. You can also check in /lib/modules/(kernel version)/ using ls to see if any ext*.ko files exist. If they do not, then ext* filesystem support is not in the firmware for this device. I am willing to bet that it only supports msdos, vfat or fat, and ntfs.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
samgurung
DD-WRT Novice


Joined: 15 May 2020
Posts: 5

PostPosted: Sun Jun 21, 2020 14:24    Post subject: Reply with quote
I sshd into the router and saw that it has ext4.ko files. I guess it has ext4 support. I then formatted my external HDD as ext4 and attached it back to the router. Rebooted but alas the HDD still does not show when I go to services->usb.

Lsmod does not show ext4 in the list. How do I load the module?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sun Jun 21, 2020 22:29    Post subject: Reply with quote
insmod ext4

For it to survive a reboot, you will need to add it to your startup script.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
samarthp
DD-WRT Novice


Joined: 06 Jun 2020
Posts: 7

PostPosted: Tue Jun 30, 2020 5:21    Post subject: Reply with quote
Well, I faced a similar issue and was able to fix it by explicitly inserting xhci-mtk kernel module.

Can you try by adding below command in your start-up script? You can even try executing it over SSH and see if USB HDDs are getting detected.

insmod xhci-mtk.ko

Ref: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=325226
Milax
DD-WRT User


Joined: 24 Oct 2020
Posts: 175

PostPosted: Sat Dec 19, 2020 9:44    Post subject: Reply with quote
Hello everyone,

I also solved the issue of usb drive not getting mounted on my DIR-882 (r44715) by adding the command insmod xhci-mtk.ko at startup, but i observed that if the router reboots for whatever reason (ex: power outage), sometimes the usb mount is not there anymore. However, if i turn off then on the router with power button, mounting is almost always successful.

Should i add something to startup command (for example sleep command) to be sure that usb is always mounted after reboot ?

Thanks


Last edited by Milax on Sat Dec 19, 2020 14:08; edited 1 time in total
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sat Dec 19, 2020 12:38    Post subject: Reply with quote
May require sleep 20 due to the timing of the init.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Milax
DD-WRT User


Joined: 24 Oct 2020
Posts: 175

PostPosted: Sat Dec 19, 2020 14:38    Post subject: Reply with quote
Thanks kernel-panic69, will try that !

kernel-panic69 wrote:
May require sleep 20 due to the timing of the init.
Milax
DD-WRT User


Joined: 24 Oct 2020
Posts: 175

PostPosted: Wed Dec 30, 2020 16:57    Post subject: Reply with quote
After some testing on my DIR-882 - r44715), it appears that the flash drive sandisk 128MB, ext4 formatted) connected to the front USB port (3.0), stops being mounted after reboot for unknown reason. Rebooting or switching off then on, doesn't help. Sometimes, it strangely appears again with NAS working very well.

Interrestingly, the flash drive (16GB ext 2 formatted) connected to rear port and mounted as jffs works very well with no issues at all.

It seems that the issue is specific to front usb3 port or that ext4 format of flash drives provoques issues with this router/firm.

EDIT: may be a hint: i connected the ext4 flash drive to my windows 10 laptop and launched Minitools wizard, then connected it back to the router and it works again. This is the second time this happens, i don't know if it makes sense, but it worked more than once.


Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink 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 cannot attach files in this forum
You cannot download files in this forum