USB drive issue with E3000 and DDWRT v3-r35531

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
bunglegrind
DD-WRT Novice


Joined: 24 Feb 2019
Posts: 12

PostPosted: Sun Feb 24, 2019 22:22    Post subject: USB drive issue with E3000 and DDWRT v3-r35531 Reply with quote
Dear all,
I've upgraded my Linksys Cisco E3000 to a recent version of DD-WRT, specifically DD-WRT v3.0-r35531 mega (03/26/1Cool (Kernel version: Linux 3.10.108-dd #18336 Mon Mar 26 12:37:55 CEST 2018 mips)

and I'm facing a couple of issue concerning USB drives.

Let me explain in details:
I've attached a 4 GB usb pen (by Verbatim), partitioned and formatted (using gparted) with the ext2 filesystem. Partition label is "Optware" (guess what I'm trying to do? Razz)

In the GUI USB table I've enabled Core USB Support, USB Storage Support and Automatic Drive Mount and I'm trying to mount the drive in /mnt.

Here's the result:


Code:
--- /dev/sda
Block device, size 3.725 GiB (3999268864 bytes)
DOS/MBR partition map
Partition 1: 3.724 GiB (3998220288 bytes, 7809024 sectors from 2048)
Type 0x83 (Linux)
Ext4 file system
Volume name "Optware"
UUID EFD91834-2EDE-4034-9EC4-F258CFC2378E (DCE, v4)
Volume size 3.724 GiB (3998220288 bytes, 976128 blocks of 4 KiB)
Status: Not mounted - Unsupported file system or disk not formated


I guess it's not detecting correctly filesystem type...

So, via telnet I've tried to manually mount the drive (mount -t ext2 -o noauto /dev/sda1 /tmp/mnt) but with no success. Rebooting and disabling automatic drive mount, too.




Previously my DDWRT version was a really old one (15962 big if I remember correctly) and that usb pen was working correctly.


Please give me some suggestions concerning this issue (or suggestion to which release I should upgrade/downgrade my ddwrt)

btw, i've upgraded ddwrt because of the krack vulnerability and the kernel that was too old for entware.

thanks in advance! Very Happy
Sponsor
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 1378

PostPosted: Sun Feb 24, 2019 23:51    Post subject: Reply with quote
I have 2 thumb drives mounted on 2 routers. 1 has 2 ext2 partitions and 1 ext3.
The other has 2 ext2 partitions.
All are recognized as ext4 in GUI. EXT2 is deprecated I believe.
I also used gparted. (On a linux laptop)
All are auto mounted just fine.
Have you tried "Mount this Partition to /opt" using the UUID?
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 442

PostPosted: Mon Feb 25, 2019 1:16    Post subject: Reply with quote
Just name it opt or jffs & dd-wrt will auto mount it just fine...
Though using the mount this to..UUID will also do it

Yes dd-wrt says it is ext4...because it uses an ext4 module...which is backwards compatible

Even if ext2 or ext3 are said to be outdated...there are good & valid reasons to use them on a USB thumb drive

Also I have had success without issues many times using free program
MiniTool Partition Wizard on Windows 7 & Windows 10 creating all types of Linux partitions

Just keep in mind that after a certain predetermined number of reboots the logs will recomend to run e2fsck on whatever partitions you have....weather it is actually necessary is totaly up to you
I'm guessing now, but I presume it's because the lack of Journaling on ext2

_________________
Location 1
R6300V2- DD-WRT v3.0-r39345M kongac (04-03-19) Gateway
WNDR3400v1 DD-WRT.v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Gateway
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
2 devices: SXT 5 ac (mipsbe) RB 6.46.4 (2/21/20) PTP Bridge (0.8km/0.5mi)tx/rx866.6Mbps-1GbpsLAN


Thank You BrainSlayer & <Kong> for ALL that you do & have done, also to "most" everyone here that shares their knowledge
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 1378

PostPosted: Mon Feb 25, 2019 1:38    Post subject: Reply with quote
Dr_K wrote:
Just name it opt

I will be interested in knowing if naming it opt fixes the problem.
I named mine optware because THE WIKI told me so.
And it automounts to opt.
bunglegrind
DD-WRT Novice


Joined: 24 Feb 2019
Posts: 12

PostPosted: Mon Feb 25, 2019 6:24    Post subject: Reply with quote
Thanks for the quick replies!

Here are my comments:
jxm wrote:
You used Windows to partition the thumb drive and it is not compatible with Linux

Download gparted and use it to remove the existing partition and repartition the thumb drive. Gparted is a Linux partitioning tool that runs on Windows computers.

Cheers.

No, I partitioned the usb drive using the gparted linux distro.
Dr_K wrote:
Just name it opt or jffs & dd-wrt will auto mount it just fine...
Though using the mount this to..UUID will also do it

Yes dd-wrt says it is ext4...because it uses an ext4 module...which is backwards compatible

Even if ext2 or ext3 are said to be outdated...there are good & valid reasons to use them on a USB thumb drive

Also I have had success without issues many times using free program
MiniTool Partition Wizard on Windows 7 & Windows 10 creating all types of Linux partitions

Just keep in mind that after a certain predetermined number of reboots the logs will recomend to run e2fsck on whatever partitions you have....weather it is actually necessary is totaly up to you
I'm guessing now, but I presume it's because the lack of Journaling on ext2

bushant wrote:
Dr_K wrote:
Just name it opt

I will be interested in knowing if naming it opt fixes the problem.
I named mine optware because THE WIKI told me so.
And it automounts to opt.


Ok, I will change the label name to 1) opt then 2) optware (all lowercase - at the moment the first letter is capital case).

bushant wrote:

Have you tried "Mount this Partition to /opt" using the UUID?


No, because I don't have that option in the GUI...please check the attached screenshot

Anyway, I'll let you know if I will succeed!



usb.jpg
 Description:
usb selection window
 Filesize:  22.46 KB
 Viewed:  893 Time(s)

usb.jpg


Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 442

PostPosted: Mon Feb 25, 2019 7:56    Post subject: Reply with quote
I can assure you that an extX partition labeled "opt" will automount..as I'm sure one named optware will also...
so long that your router's build contains the ext4 module

Maybe check /sys/module/ has a folder named ext4 in it
Or if /lib/ contains libext2fs.so &/or libext2fs.so2...or libext2fs.so.2.4
Or more importantly /lib/modules/4.4.124(or whatever your builds only folder in there is named)/ has ext4.ko

I can also assure you that if you explore the wiki enough..you will see that it will teach you that there are more ways than one to accomplish the same thing....on different pages

Look even harder & you will find information that is outdated and dare I say...flat out wrong....not accusing anyone here, just pointing out information

If you don't have the module...and your flash has enough space left to create a jffs2 partition you can move a copy of ext4.ko there and insmod it at startup

If not enough flash left for jffs2.. see if
/lib/modules/4.4.124(or whatever your builds only folder in there is named)/ has exfat.ko, fat.ko &/or vfat.ko?
Then use that file type to create & mount a jffs partition on your USB drive and insmod ext4.ko from there at startup

Just trying to help the OP.. not argue with anyone insecure with any information that may conflict with what they feel is the only way to do something Rolling Eyes

_________________
Location 1
R6300V2- DD-WRT v3.0-r39345M kongac (04-03-19) Gateway
WNDR3400v1 DD-WRT.v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Gateway
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
2 devices: SXT 5 ac (mipsbe) RB 6.46.4 (2/21/20) PTP Bridge (0.8km/0.5mi)tx/rx866.6Mbps-1GbpsLAN


Thank You BrainSlayer & <Kong> for ALL that you do & have done, also to "most" everyone here that shares their knowledge
BR07H3R
DD-WRT User


Joined: 24 Dec 2017
Posts: 135

PostPosted: Mon Feb 25, 2019 8:03    Post subject: Reply with quote
When I was using an e3000 the only thing it would recogonise was NTFS.

EDIT: forgot to mention I was on the same build as you at the time. Optware still ran I used it to run bind
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 442

PostPosted: Mon Feb 25, 2019 8:46    Post subject: Reply with quote
Just wanted to add that that for you the folders name in
/lib/modules/(is probably)3.10.108-dd/

I checked a couple of my routers on the same build as you

The ones with a 16Mb & greater build flash do have the ext4.ko

While the ones with only a 8Mb build flash do not...but do have the other partition types modules

The ext4.ko module is available with better insmodding instructions through a simple search, or if it's ok to post I could give you a copy from one of mine

_________________
Location 1
R6300V2- DD-WRT v3.0-r39345M kongac (04-03-19) Gateway
WNDR3400v1 DD-WRT.v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Gateway
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
2 devices: SXT 5 ac (mipsbe) RB 6.46.4 (2/21/20) PTP Bridge (0.8km/0.5mi)tx/rx866.6Mbps-1GbpsLAN


Thank You BrainSlayer & <Kong> for ALL that you do & have done, also to "most" everyone here that shares their knowledge
bunglegrind
DD-WRT Novice


Joined: 24 Feb 2019
Posts: 12

PostPosted: Mon Feb 25, 2019 21:19    Post subject: Reply with quote
Dr_K wrote:
Just wanted to add that that for you the folders name in
/lib/modules/(is probably)3.10.108-dd/

I checked a couple of my routers on the same build as you

The ones with a 16Mb & greater build flash do have the ext4.ko

While the ones with only a 8Mb build flash do not...but do have the other partition types modules

The ext4.ko module is available with better insmodding instructions through a simple search, or if it's ok to post I could give you a copy from one of mine
you're completely right. My firmware doesn't have any library for ext2-3-4 in the folders you listed. Only vfat and ntfs.
I could hardly image an (embedded) linux distro that could not read ext2...it really suprised me.

Anyway, I need ext2/3 suppport to install entware...so, the problem now is:

1) add jffs2 partition (if I have enough space...I'll check it) or create a jffs2 in a fat32 partition of the usb drive

2) copy a ext4.ko and insmod it in the kernel at startup

3) then proceed to configure the usb drives and install entware.

Concerning the wiki pages, I've read a lot during the last few days, but the amount of information is huge and often is outdated, or not related to my particular context.


and yes, if you can lend the ext4.ko file I really appreciate. Extracting from another firmware is just another pain in...


thanks a lot for the info! I'll keep you updated!
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 442

PostPosted: Tue Feb 26, 2019 1:17    Post subject: Reply with quote
Not mine... but thank you @egc

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1151285&highlight=nice+job+razercortex#1151285

Jus a note...as I haven't personally been in your particular situation

Since your startup script insmoding the module may run after dd-wrt would normally automount things you may need to manually mount your extX partition after a pause, in your startup script...
You seam to already know how to accomplish that if needed...but I'd try without first

Or bypass all this and follow as @BR07H3R suggested

I agree that it is rather ridiculous to not be in every build

It seams to be in most all the K26 big & mega builds but just about everyone say they are now broken

Good luck

_________________
Location 1
R6300V2- DD-WRT v3.0-r39345M kongac (04-03-19) Gateway
WNDR3400v1 DD-WRT.v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Gateway
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
2 devices: SXT 5 ac (mipsbe) RB 6.46.4 (2/21/20) PTP Bridge (0.8km/0.5mi)tx/rx866.6Mbps-1GbpsLAN


Thank You BrainSlayer & <Kong> for ALL that you do & have done, also to "most" everyone here that shares their knowledge
bunglegrind
DD-WRT Novice


Joined: 24 Feb 2019
Posts: 12

PostPosted: Wed Feb 27, 2019 6:41    Post subject: Reply with quote
just for an update

My router does not have a jffs2 option in the GUI Razz

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=990465&sid=856423dd461cfb0d52f2b89b4d34d9ce


I'm going to create a fat32 partition jffs in the usb drive and add the following commands at startup:

sleep 15 #should check if needed
mount --bind /tmp/mnt/sda_part1/ /jffs
and then the stuff with insmod
and then mounting the partion ext2 to /opt
....
BR07H3R
DD-WRT User


Joined: 24 Dec 2017
Posts: 135

PostPosted: Wed Feb 27, 2019 8:36    Post subject: Reply with quote
I forgot about that.

Heads up you can enable jffs2 using commands
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 442

PostPosted: Wed Feb 27, 2019 14:01    Post subject: Reply with quote
Courious.....whould it NOT automatically mount the partition named "jffs"?

I'd suggest aginst "forcing" a creation of jffs2...
Your router only has 8Mb of flash space and the mega build usual takes all that up on more recent builds
Which is probably why you do not have option in gui

_________________
Location 1
R6300V2- DD-WRT v3.0-r39345M kongac (04-03-19) Gateway
WNDR3400v1 DD-WRT.v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Gateway
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
2 devices: SXT 5 ac (mipsbe) RB 6.46.4 (2/21/20) PTP Bridge (0.8km/0.5mi)tx/rx866.6Mbps-1GbpsLAN


Thank You BrainSlayer & <Kong> for ALL that you do & have done, also to "most" everyone here that shares their knowledge
BR07H3R
DD-WRT User


Joined: 24 Dec 2017
Posts: 135

PostPosted: Wed Feb 27, 2019 14:37    Post subject: Reply with quote
I had enabled it after I had usb up
Dr_K
DD-WRT User


Joined: 23 Mar 2018
Posts: 442

PostPosted: Wed Feb 27, 2019 14:51    Post subject: Reply with quote
BR07H3R wrote:
I had enabled it after I had usb up

With all due respect....either there is confusion or a typo by one of us...
jffs & jffs2 are not the same "under the hood" to dd-wrt....."end result" yes

How could having a USB attached somehow make the router's rom flash space bigger?

If I'm wrong.....this could be a godsend for people with older hardware?? Rolling Eyes

_________________
Location 1
R6300V2- DD-WRT v3.0-r39345M kongac (04-03-19) Gateway
WNDR3400v1 DD-WRT.v3.0-r35531_mega-nv64k (03/26/18 ) Access Point
WRT160Nv3 DD-WRT ?v3?.0-r35531 mini (03/26/18 ) Access Point
WRT54GSv5 DD-WRT v24-r33555_micro_generic (10/20/17) Repeater
Location 2
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Gateway
R6300V2- DD-WRT v3.0-r39345M kongac (04/03/19) Access Point
WNDR3700v2 DD-WRT v3.0-r35531 std (03/26/18 ) Access Point
E1200 v2 DD-WRT v3.0-r35531 mega-nv64k (03/26/18 ) Gateway(for trivial reasons)
2 devices: SXT 5 ac (mipsbe) RB 6.46.4 (2/21/20) PTP Bridge (0.8km/0.5mi)tx/rx866.6Mbps-1GbpsLAN


Thank You BrainSlayer & <Kong> for ALL that you do & have done, also to "most" everyone here that shares their knowledge
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
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