Difference between revisions of "Linksys AC Series Router Configuration Tips for OpenWRT"

m
m
Line 280: Line 280:
[[File:USB 3.0 Extension.jpg|alt=USB 3.0 Extension|none|thumb|120x120px|USB 3.0 Extension]]
[[File:USB 3.0 Extension.jpg|alt=USB 3.0 Extension|none|thumb|120x120px|USB 3.0 Extension]]
But there is a solution...  A USB 3.0 A Male to A Female Adapter (Part # 1206-N, UPC 848076012233) from a company named CMPLE.  It is available from several places: [https://www.walmart.com/ip/Cmple-USB-3-0-A-Male-to-A-Female-Adapter/172246645 Wal-Mart], [https://www.ebay.com/itm/NEW-USB-3-0-A-MALE-TO-A-FEMALE-M-F-ADAPTER-CONNECTOR-NEW-/362695174727 eBAy], and from the company that appears to have it manufactured (in China), [https://www.cmple.com/ProductsBySKU/1206-N CMPLE].  Even at about $3.00 it is a bit more expensive than other similar products (and there are only a few).  But it has one advantage in that the orientation of the male and female part of the connector are arranged such that the above noted 3 Port USB 3.0 hub from Sabrent can connect and be in the "up" position.  All other similar items found require that the hub be rotated to the left, right, or down.  Down isn't a choice unless one's router is on the edge of a table.  Left and right are good as the adapter provides enough clearance for the hub so it doesn't contact the power cord or the Ethernet cable on the WAN port.
But there is a solution...  A USB 3.0 A Male to A Female Adapter (Part # 1206-N, UPC 848076012233) from a company named CMPLE.  It is available from several places: [https://www.walmart.com/ip/Cmple-USB-3-0-A-Male-to-A-Female-Adapter/172246645 Wal-Mart], [https://www.ebay.com/itm/NEW-USB-3-0-A-MALE-TO-A-FEMALE-M-F-ADAPTER-CONNECTOR-NEW-/362695174727 eBAy], and from the company that appears to have it manufactured (in China), [https://www.cmple.com/ProductsBySKU/1206-N CMPLE].  Even at about $3.00 it is a bit more expensive than other similar products (and there are only a few).  But it has one advantage in that the orientation of the male and female part of the connector are arranged such that the above noted 3 Port USB 3.0 hub from Sabrent can connect and be in the "up" position.  All other similar items found require that the hub be rotated to the left, right, or down.  Down isn't a choice unless one's router is on the edge of a table.  Left and right are good as the adapter provides enough clearance for the hub so it doesn't contact the power cord or the Ethernet cable on the WAN port.
==== Bottom Line ====
Use an mSATA SSD in a USB 3.0 enclosure.
A quick test using the DD utility to copy a "Zero Byte" file to various devices (Flash Drive, mSATA SSD, etc.) resulted in the following speeds;
* Average USB 3.0 Flash Drive: 26 MB/S
* Good USB 3.0 Flash Drive: 45 MB/S
* mSATA SSD: 300 MB/S (in this enclosure: https://www.newegg.com/riitop-mstu3c-zhi-enclosure/p/0VN-006F-00017?Item=9SIA6V86C51798)
...not even close.  An mSATA SSD in the above enclosure blew everything else out of the water.  And it was just an average mSATA SSD (https://www.newegg.com/vaseky-v800-128gb/p/0D9-00D6-00008?Item=9SIAGKC7VJ8289).  Together, maybe a bit more expensive than a similar sized good Flash Drive, but as DeadPool said, "...worth it!"
===Overlay===
===Overlay===
Before getting into the "how" with an external storage device, it is worth pointing out one of the more useful features available in OpenWRT.
Before getting into the "how" with an external storage device, it is worth pointing out one of the more useful features available in OpenWRT.
Line 3,284: Line 3,296:


*dd if=[[wikipedia:/dev/zero|/dev/zero]] bs=64K conv=noerror,sync status=progress of=/overlay/ZeroByteFile (change the destination to suit your needs)
*dd if=[[wikipedia:/dev/zero|/dev/zero]] bs=64K conv=noerror,sync status=progress of=/overlay/ZeroByteFile (change the destination to suit your needs)
**When the /overlay partition is full DD will produce an error (IE, the partition is full, which is the objective, so this is a good "error")
*sync (this writes any unwritten files stored in RAM / Buffer to the physical media)
*sync (this writes any unwritten files stored in RAM / Buffer to the physical media)
*rm ZeroByteFile (this deletes the "Zero Byte File" to free up space as the above DD command made the ZeroByteFile as large as all of the available free space on the drive.)
*rm /overlay/ZeroByteFile (this deletes the "Zero Byte File" to free up space as the above DD command made the ZeroByteFile as large as all of the available free space on the drive.)


=====Partition Cloning Example=====
=====Partition Cloning Example=====