New Build - 02/28/2023 - r51887

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, 4
Author Message
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Mon Mar 20, 2023 15:56    Post subject: Reply with quote
dale_gribble39 wrote:
Holding onto old practices after past issues were resolved is pointless. Seems to be the norm around here, though.


If I may, how are they solved? If you go into the UI and enable /jffs, /opt with UUIDs and you also have another partition you wish to be auto-mounted you'll have issues. Your 3rd partition will end up in paths like /mnt/sdb1 or /mnt/sda1 etc that WILL randomly change at every boot.

The situation is indeed fixed for jffs and opt but not for other automatic mounts.

I see two possible solutions for the problem above:

1. let the user manually assign mount points (/mnt/xxx) to volume UUIDs. (A similar UI to the "Static Leases" but for mounts).
2. automatically mount the drives by UUID like Linux does instead of using the device name.

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


Joined: 16 Nov 2015
Posts: 6436
Location: UK, London, just across the river..

PostPosted: Mon Mar 20, 2023 19:55    Post subject: Reply with quote
well...on multi-partitioned disk what is the problem if your other partitions are
mounted to /mnt/sdb1 or /mnt/sda1..

On lunux based OS which is DDWRT, do you use non native FS like,
FAT32 or NTFS and ect. why...or do you have more than one /opt and /jffs.. again why ??

Most of the Linux distros will always mount non native partitions as /mnt/sdb1 or /mnt/sda1..and ect.

So, you are compromising the DDWRT system, than trying to fix it. Razz

For DDWRT its best to use native linux formats..ext2, ext3 or ext4...all the others are prone to a mess..
I used to have /jffs /opt and another ntfs with no troubles for years, 3 partitions and it was ok...but now i have only 2 /jffs and /opt all using ext2 or ext3 on my other routers...basically ext2,3 for thumb drives and ext4 for hdd, sdd should be ok...

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913


Last edited by Alozaros on Mon Mar 20, 2023 20:41; edited 1 time in total
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2972
Location: Germany

PostPosted: Mon Mar 20, 2023 20:12    Post subject: Reply with quote
In linux systems you usually have an /etc/fstab where you can configure where which device is mounted.

Linux systems usually also have udev, udev creates device files in /dev/disk

:~$ ls -la /dev/disk/
total 0
drwxr-xr-x 8 root root 160 Mar 20 09:59 .
drwxr-xr-x 21 root root 5240 Mar 20 17:04 ...
drwxr-xr-x 2 root root 1040 Mar 20 09:59 by-id
drwxr-xr-x 2 root root 300 Mar 20 09:59 by-label
drwxr-xr-x 2 root root 80 Mar 20 09:59 by-partlabel
drwxr-xr-x 2 root root 320 Mar 20 09:59 by-partuuid
drwxr-xr-x 2 root root 600 Mar 20 09:59 by-path
drwxr-xr-x 2 root root 360 Mar 20 09:59 by-uuid

with the device files you can easily mount the drives...

mount /dev/disk/by-uuid/5acdf48a-c75b-11ed-afa1-0242ac120002 /tmp/blub
mount /dev/disk/by-label/bla /tmp/bla

I don't understand why dd-wrt doesn't offer this, it only supports /opt and /jjfs.


a modern stand alone "mount" binary can also mount by label or uuid...

Code:
Source:
 -L, --label <identifier> synonym for LABEL=<identifier>.
 -U, --uuid <uuid> synonym for UUID=<uuid>
 LABEL=<identifier> Specification of the device using file system identifier.
 UUID=<uuid> Specification of the device by file system UUID
 PARTLABEL=<identifier> Specification of the device by partition identifier
 PARTUUID=<uuid> Specification of the device by partition UUID
MesMurized
DD-WRT User


Joined: 08 Aug 2017
Posts: 84

PostPosted: Tue Mar 21, 2023 6:14    Post subject: Reply with quote
Would be great to extend USB mounting as suggested but it's been this way for years even with ext2/3/4. I've had automount issues ending up with multiple mounts to /opt. And never knew where the 3rd partition was mounted. All this crazy stuff and I stopped trying. Sure don't want important data mistakenly changed by a invalid mount.

Many have solved this with manual mount cmds in Startup, etc. There are several posts floating around with great suggestions. Just remember to carefully choose available cmds at boot. I use blkid.

Good luck.

_________________
Current: Netgear R9000 DD-WRT v3.0-r55460 std (03/25/24)
Retired: Linksys WRT32X r39296, TP-Link Archer C7 v2, LinkSys WRT54G v5
Goto page Previous  1, 2, 3, 4 Display posts from previous:    Page 4 of 4
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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