R7000: Yet Another Mount Point Issue

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Sun Sep 06, 2020 16:55    Post subject: R7000: Yet Another Mount Point Issue Reply with quote
Hello,

I'm using an R7000 with Entware + Transmission client. For the /opt partition where entware packages live I'm using a small 128MB flash drive. For downloads / network share I'm using a 1TB USB HDD.

Now my problem is that DD-WRT seems to have issues keeping the mount point of my USB HDD across reboots. This leads to a broken Samba and Transmission.



Now a couple of questions:

1. Why does this happen?
2. Why can't the interface have a way to manually specify mount points based on UUIDs for ALL hard drives?
3. How can I fix this?
4. If I manually mount the HDD using a script will I be able to also use under the Services > NAS tab? Samba share and DLNA like this:



Thank you.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12834
Location: Netherlands

PostPosted: Sun Sep 06, 2020 18:03    Post subject: Reply with quote
Just name your partitions jffs and opt and those will mount automatically.

But indeed mounting can be a problem @eibgrad has a mount script to always mount the things you want.

Google that I will see if I can find it.

_________________
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
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Sun Sep 06, 2020 18:08    Post subject: Reply with quote
egc wrote:
Just name your partitions jffs and opt and those will mount automatically.

But indeed mounting can be a problem @eibgrad has a mount script to always mount the things you want.

Google that I will see if I can find it.


Isn't that script the same as going to the commands tab and add startup mount commands to the partitions I want?

Does the UI at Services > NAS tab pick my manually/script mounted drives so I can use them with Samba and DLNA?

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12834
Location: Netherlands

PostPosted: Sun Sep 06, 2020 18:12    Post subject: Reply with quote
https://pastebin.com/VDZ32r2D

This is the script

I am not using it I have one USB stick mounted with jffs and opt

_________________
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
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Tue Sep 08, 2020 10:13    Post subject: Reply with quote
egc wrote:
https://pastebin.com/VDZ32r2D

This is the script

I am not using it I have one USB stick mounted with jffs and opt


Once again thank you for tips egc! Inspired by the script I disabled "Automatic Drive Mount" and added this to my startup commands:

Code:

# Mount OPT
insmod crc16
insmod mbcache
insmod jbd2
insmod ext4
mkdir -p /opt
mount -t ext4 $(findfs UUID="90a42e1e-f700-40b1-b6c9-efdbdc46b9a1") /opt -o rw,noatime,nodiratime,nobarrier,data=ordered,init_itable=0

# Mount Data Storage
insmod fuse
mkdir -p /mnt/data
ntfs-3g -o compression,direct_io,big_writes $(findfs UUID=C0E4F8AFE4F8A934) /mnt/data

# Restart DLNA
killall minidlna
minidlna -f /tmp/minidlna.conf

# Start Entware
/opt/etc/init.d/rc.unslung start


I'm mounting my USB flash drive ext4 partition to /opt and my USB HDD ntfs partition to /mnt/data. The UI at Services > NAS is still able to pick both partitions and SMB file sharing works out of the box. DLNA was broken because whenever it starts /mnt/data isn't mounted yet thus it wouldn't pick any media. Restarting it after the partitions are mounted fixes the issue. Anyone looking to reproduce this setup may find their disks UUIDs using the blkid command.

I really wish DD-WRT had a way to manually specify UUIDs for multiple mount points, not just /opt.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Display posts from previous:    Page 1 of 1
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