R7000: Yet Another Mount Point Issue

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


Joined: 06 Jun 2010
Posts: 51

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.

_________________
3x Netgear R7000; 2x Asus RT-N16; Running DD-WRT v3.0-r44191 std (08/15/20).
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 6398
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 R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), WRT54GS v1.
OpenVPN Policy Based Routing: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN Server Setup:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Wireguard Server setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1183135
Wireguard Client setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324624
Wireguard Advanced setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324787
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 51

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?

_________________
3x Netgear R7000; 2x Asus RT-N16; Running DD-WRT v3.0-r44191 std (08/15/20).
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 6398
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 R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), WRT54GS v1.
OpenVPN Policy Based Routing: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN Server Setup:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Wireguard Server setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1183135
Wireguard Client setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324624
Wireguard Advanced setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324787
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 51

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.

_________________
3x Netgear R7000; 2x Asus RT-N16; Running DD-WRT v3.0-r44191 std (08/15/20).
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum 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