Can't mount USB to router

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
wongsakorns
DD-WRT Novice


Joined: 29 Dec 2017
Posts: 15

PostPosted: Mon Jan 08, 2018 14:29    Post subject: Can't mount USB to router Reply with quote
Hi, I have Linksys E2500 with Mega version of dd-wrt installed.

I followed exactly what is in the wiki : Optware, the right way.

I have Apacer 32 GB flash drive.

I really don't know what is the cause of error so I go and try around many things, each time I went over all the process again.
Formatting the flash drive many times using FAT, NFTS.
Use only 3 partitions and left partition 4 unused, used all 4 partitions.
It still doesn't work.
I really need help on this, please.

This is the result from web-gui.

--- /dev/sda
Block device, size 28.91 GiB (31040995328 bytes)
DOS/MBR partition map
Partition 1: 512.0 MiB (536871424 bytes, 1048577 sectors from 32)
Type 0x83 (Linux)
Ext4 file system
Volume name "Optware"
UUID 9EBF6819-D903-4584-80C7-42BE4C2DA24E (DCE, v4)
Volume size 512 MiB (536870912 bytes, 131072 blocks of 4 KiB)
Partition 2: 64.00 MiB (67109376 bytes, 131073 sectors from 1048609)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 63.99 MiB (67100672 bytes, 16382 pages of 4 KiB)
Partition 3: 128.0 MiB (134218240 bytes, 262145 sectors from 1179682)
Type 0x83 (Linux)
Ext2 file system
Volume name "Shared"
UUID 5CDA9399-2383-4E04-B807-1230A4EF3124 (DCE, v4)
Volume size 128 MiB (134217728 bytes, 131072 blocks of 1 KiB)
Partition 4: 28.22 GiB (30302779904 bytes, 59185117 sectors from 1441827)
Type 0x83 (Linux)
Ext4 file system
Volume name "Data"
UUID 00AFAC3E-7A04-4785-8327-C3F2434538FD (DCE, v4)
Volume size 28.22 GiB (30302777344 bytes, 7398139 blocks of 4 KiB)
Status: Not mounted
Sponsor
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2319
Location: Canada

PostPosted: Tue Jan 09, 2018 11:14    Post subject: Entware 3X Reply with quote
Don't use Optware, use Entware: https://www.dd-wrt.com/wiki/index.php/Installing_Entware-3X

Label the partition "Optware" and dd-wrt will automount it to /opt.

USB flash drives are best formatted to ext2 in linux.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
wongsakorns
DD-WRT Novice


Joined: 29 Dec 2017
Posts: 15

PostPosted: Mon Jan 15, 2018 9:29    Post subject: Reply with quote
Thank you for your reply.
In order to install Entware, I need to mount my USB first anyway. So this time I changed from format by Linux command line and use G-Parted instead.

I only format it into 3 partitions because I use usb and not need jffs, however, when attempting to mount this was the result and I still cannot mount the usb.

--- /dev/sda
Block device, size 28.91 GiB (31040995328 bytes)
DOS/MBR partition map
Partition 1: 256 MiB (268435456 bytes, 524288 sectors from 2048)
Type 0x83 (Linux)
Ext2 file system
Volume name "Optware"
UUID 1C9B4CEF-A205-497B-B95F-A530A50BD652 (DCE, v4)
Volume size 256 MiB (268435456 bytes, 262144 blocks of 1 KiB)
Partition 2: 64 MiB (67108864 bytes, 131072 sectors from 526336)
Type 0x83 (Linux)
Ext2 file system
Volume name "Swapfile"
UUID 43D431DC-16ED-4787-B7E3-7E3861137DFC (DCE, v4)
Volume size 64 MiB (67108864 bytes, 65536 blocks of 1 KiB)
Partition 3: 28.60 GiB (30704402432 bytes, 59969536 sectors from 657408)
Type 0x83 (Linux)
Ext4 file system
Volume name "Data"
UUID 4E4B6F5E-F643-4447-852C-F5E98259F1FC (DCE, v4)
Volume size 28.60 GiB (30704402432 bytes, 7496192 blocks of 4 KiB)
Status: Not mounted
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Mon Jan 15, 2018 12:41    Post subject: Reply with quote
What version are you using?
Old versions had their problems and I read somewhere that in recent Mega versions the ext2 module was missing (because of size limitations?) not sure though
Try to format with FAT only?

G parted is recommended for formatting

Attached my notes for USB, do not know if it helps Sad



DDWRT USB storage support Public.doc
 Description:

Download
 Filename:  DDWRT USB storage support Public.doc
 Filesize:  406 KB
 Downloaded:  273 Time(s)


_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
wongsakorns
DD-WRT Novice


Joined: 29 Dec 2017
Posts: 15

PostPosted: Thu Jan 18, 2018 16:00    Post subject: Reply with quote
egc wrote:
What version are you using?
Old versions had their problems and I read somewhere that in recent Mega versions the ext2 module was missing (because of size limitations?) not sure though
Try to format with FAT only?

G parted is recommended for formatting

Attached my notes for USB, do not know if it helps Sad


Thank you very much and sorry for late reply.

At first I tried again using G-Parted to format and partition the USB Flash drive but it doesn't work so
I followed your paper and it suggested that it will be the most simplest to have 2 partitions, so I tried with that first but I still not able to mount it.




You can also see that there is no UUID field for me to fill in.

Here is what I did to my USB Flash Drive. The unused partition I planned for storing data but that will be handled later. Just want to make sure it can be mount first.


I have attempted mounting so many time and it still doesn't work Sad
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2319
Location: Canada

PostPosted: Thu Jan 18, 2018 17:46    Post subject: Volume name Reply with quote
Change the volume name in GParted or Partition wizard. Change the name to "Optware". It will auto mount to /opt.
JFFS may have to be written as "Jffs" or "JFFS", I am not sure about that one.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
wongsakorns
DD-WRT Novice


Joined: 29 Dec 2017
Posts: 15

PostPosted: Fri Jan 19, 2018 13:36    Post subject: Re: Volume name Reply with quote
ian5142 wrote:
Change the volume name in GParted or Partition wizard. Change the name to "Optware". It will auto mount to /opt.
JFFS may have to be written as "Jffs" or "JFFS", I am not sure about that one.


Thank you for your advice but it still doesn't work. Here what is appear.
I'm totally don't understand what's the problem is. I have attempt to use other USB stick, upgrade firmware, etc. What else could be the cause of the problem.



ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2319
Location: Canada

PostPosted: Fri Jan 19, 2018 13:48    Post subject: Partition Name Reply with quote
Why is the Partition name: Basic data partition?

Don't label the Volume. Label each partition. It should auto mount them. If this is a harddrive, use NTFS or EXT4.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
wongsakorns
DD-WRT Novice


Joined: 29 Dec 2017
Posts: 15

PostPosted: Fri Jan 19, 2018 15:34    Post subject: Reply with quote
I have labeled partition as you said and it still couldn't be mounted.

One things that weird here is that Optware partition become ext4 on dd-wrt web GUI but I did format in ext2. I have check it again on both partition tools and it confirmed that ext2.

What could be the problems ?





Please...., this is very important to me Sad
ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2319
Location: Canada

PostPosted: Fri Jan 19, 2018 16:37    Post subject: mount Reply with quote
You can manually mount them via the mount command.
mount --bind /(physical location from USB tab) /(mounted location)

ex: mount --bind /dev/sda2 /opt

If you want to always have them mounted, add it to your start up script (Admin tab, Commands), paste the command, click Save Startup. Reboot and see if it works.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
wongsakorns
DD-WRT Novice


Joined: 29 Dec 2017
Posts: 15

PostPosted: Tue Jan 30, 2018 14:16    Post subject: Reply with quote
[Solution]

Actually I'm doing this as my senior project in the university.

Finally my professor help me sort this out, after I have attempted for a month.

If no matter how much you're trying to mount it and it doesn't mount.

For USB FlashDrive
TRY
Format using MiniTool Partition Wizard, have only one partition and label it as "OPTWARE". Use FAT32 format instead of ext2. Magic happened, it's work !!

Thank you for all help Wink
Display posts from previous:    Page 1 of 1
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