Posted: Sun Feb 24, 2019 22:22 Post subject: USB drive issue with E3000 and DDWRT v3-r35531
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/1 (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? )
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.
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
R7800- DD-WRT v3.0-r53562 (10/03/23) 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
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) 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)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
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
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 _________________ Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) 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
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) 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)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
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
R7800- DD-WRT v3.0-r53562 (10/03/23) 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
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) 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)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
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...
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
R7800- DD-WRT v3.0-r53562 (10/03/23) 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
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) 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)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
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
R7800- DD-WRT v3.0-r53562 (10/03/23) 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
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) 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)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge
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?? _________________ Location 1
R7800- DD-WRT v3.0-r53562 (10/03/23) 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
R7800- DD-WRT v3.0-r51855 (02/25/23) Gateway
R6300v2- DD-WRT v3.0-r50671 (10-26-22) 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)
RBWAPG-5HACT2HND-BE RouterOS-v6.46.4 (2/21/20) Outdoor Access Point
2x RBSXTG-5HPACD RouterOS-v6.46.4 (2/21/20) PTP Bridge 866.6Mbps-1GbpsLAN
Location 3
2x R7000- DD-WRT v3.0-r50671 (10/26/22) Access Points
2x RBWAPG-60AD RouterOS-v6.45.9 (04/30/20) PTP Bridge 2.3Gbps-1GbpsLAN
2x RBSXTsqG-5acD RouterOS-v6.49.7 (10/14/22) PTP Bridge 866.6Mbps-1GbpsLAN Thank You BrainSlayer for ALL that you do & have done, also to "most" everyone here that shares their knowledge