Need advice for troubleshooting SMB

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2
Author Message
bermudahonk
DD-WRT Novice


Joined: 17 Aug 2025
Posts: 25

PostPosted: Sat Sep 06, 2025 10:37    Post subject: Reply with quote
dance85 wrote:
sorry but if I want to mount it manually I have this problem.
my partitions are all ext4


Ok, just use the fstype argument like that:
Code:
mount -t ext4 /dev/sda1 /mnt/sda1
Sponsor
dance85
DD-WRT User


Joined: 02 Jun 2017
Posts: 212

PostPosted: Sat Sep 06, 2025 13:57    Post subject: Reply with quote
This is the result


1.jpg
 Description:
 Filesize:  74.14 KB
 Viewed:  6773 Time(s)

1.jpg


bermudahonk
DD-WRT Novice


Joined: 17 Aug 2025
Posts: 25

PostPosted: Sat Sep 06, 2025 15:17    Post subject: Reply with quote
You have to pay more attention when you execute commands.
You have created mountpoints at /tmp/mnt/sda1 but then you tried to mount the partition at /mnt/sda1. This cannot work.
The error should be obvious to you.

Code:
mkdir -p /tmp/mnt/sda1
mount -t ext4 /dev/sda1 /tmp/mnt/sda1


This should work.
If not check with lsmod if the ext4 module is loaded. It should when you activate USB Storage Support under Services -> USB
dance85
DD-WRT User


Joined: 02 Jun 2017
Posts: 212

PostPosted: Sat Sep 06, 2025 16:13    Post subject: Reply with quote
Even though USB support is enabled, the ext4 module is not loaded.


1.jpg
 Description:
 Filesize:  413.04 KB
 Viewed:  6741 Time(s)

1.jpg



2.jpg
 Description:
 Filesize:  275.95 KB
 Viewed:  6741 Time(s)

2.jpg


dance85
DD-WRT User


Joined: 02 Jun 2017
Posts: 212

PostPosted: Sat Sep 06, 2025 16:28    Post subject: Reply with quote
I noticed that if I enable automount the ext4 module is loaded and visible in lsmod.
Loading the module with the mobprobe ext4 command solved the problem! I was able to mount the drive correctly. My question is, why do I have to manually load the module at every boot?
bermudahonk
DD-WRT Novice


Joined: 17 Aug 2025
Posts: 25

PostPosted: Sat Sep 06, 2025 17:19    Post subject: Reply with quote
To be honest, I have been running my router with 3 drives attached to it in a LVM setup for more then 10 years.
I have always loaded the modules manually via Startup. Back then it was necessary, I guess.
My own routine checks if the modules I need are already loaded and only loads them if they are not found.
Code:
for MODULE in mbcache crc16 jbd2 ext4 dm-mod; do
[ $(lsmod |grep -c $MODULE) -eq 0 ] && insmod $MODULE; done
dance85
DD-WRT User


Joined: 02 Jun 2017
Posts: 212

PostPosted: Sat Sep 06, 2025 22:02    Post subject: Reply with quote
And if I wanted to mount with the UUID, what would be a working command? There are many online, but they don't work...
bermudahonk
DD-WRT Novice


Joined: 17 Aug 2025
Posts: 25

PostPosted: Sat Sep 06, 2025 22:36    Post subject: Reply with quote
It seems dd-wrt mount doesn't support direct calls with UUID. You can use a workaround thou.
Code:
STORAGE_UUID="<your partition UUID>"
STORAGE_PART=$(blkid |grep ${STORAGE_UUID} |cut -d ":" -f1)
[ "${STORAGE_PART}" != ""  ] && mount -t ext4 ${STORAGE_PART} /mnt/storage
dance85
DD-WRT User


Joined: 02 Jun 2017
Posts: 212

PostPosted: Sun Sep 07, 2025 7:59    Post subject: Reply with quote
Code:
sleep 3
cd /
sleep 3
modprobe ext4
sleep 3
mkdir -p /mnt/sda1
sleep 3
#mount -t ext4 /dev/sda1 /mnt/sda1
STORAGE_UUID="6d924dbb28534414bb1e40cbfcaf7bea"
STORAGE_PART=$(blkid |grep ${STORAGE_UUID} |cut -d ":" -f1)
[ "${STORAGE_PART}" != ""  ] && mount -t ext4 ${STORAGE_PART} /mnt/sda1


In my case doesn't work! Please help me!!!! Smile
I would be happy just to mount the unit with the label
bermudahonk
DD-WRT Novice


Joined: 17 Aug 2025
Posts: 25

PostPosted: Sun Sep 07, 2025 8:39    Post subject: Reply with quote
Quote:
STORAGE_UUID="6d924dbb28534414bb1e40cbfcaf7bea"


This doesn't look like a UUID to me. Check again with blkid.
You can use the whole UUID or simply a small but significant/uniqe part of it.
I myself use the last part after the last dash "-". It is sufficient.

If you want to work with the fs-label, you can use this routine instead:
Code:
STORAGE_LABL="<your fs-label>"
STORAGE_PART=$(blkid |grep ${STORAGE_LABL} |cut -d ":" -f1)
[ "${STORAGE_PART}" != ""  ] && mount -t ext4 ${STORAGE_PART} /mnt/sda1

It is the same as before, since blkid also prints out the partition's fs-label.
dance85
DD-WRT User


Joined: 02 Jun 2017
Posts: 212

PostPosted: Sun Sep 07, 2025 19:13    Post subject: Reply with quote
@bermudahonk
IT WORKS!!!!!!!!!! Thanks!!!! You're great!!! All solved!

now the problem of permissions remains on linux/kodi because I can see the files but of 0kb and not with the real size
bermudahonk
DD-WRT Novice


Joined: 17 Aug 2025
Posts: 25

PostPosted: Mon Sep 08, 2025 7:30    Post subject: Reply with quote
Glad to see your issues resolved.
You could get yourself more familiar with scripting and align all sorts of stuff to better fit your needs. It is not difficult and it gets you in the position to really get stuff going, if needed.
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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