Mounting USB drive without located onboard fs modules
From DD-WRT Wiki
Revision as of 20:23, 18 August 2011 (edit) Kvarlamov (Talk | contribs) (→Problem description) ← Previous diff |
Revision as of 20:26, 18 August 2011 (edit) (undo) Kvarlamov (Talk | contribs) (→Solution) Next diff → |
||
Line 8: | Line 8: | ||
== Solution == | == Solution == | ||
+ | |||
+ | Proper way is to enable USB Support under Services - USB | ||
+ | Core USB Support | ||
+ | USB 2.0 Support | ||
+ | USB Storage Support | ||
+ | Automatic Drive Mount | ||
+ | , and on boot your USB-drive will become accessible via /dev filesystem | ||
=== Building / finding suitable kernel modules === | === Building / finding suitable kernel modules === |
Revision as of 20:26, 18 August 2011
Contents |
Problem description
Fact is: not all dd-wrt images include well-known filesystems support (vfat, ext2, ext3, ntfs) because of lack of router's EEPROM memory to store them. If on Supported_Devices page your board has 4MB of Flash or less, there is no needed modules for filesystems support on it. Although in web-interface you see option to enable ext3/ext2 support - it doesn't really work because of absence of these kernel modules files. It's very sad if you were going to extend router by external USB drive and use router for running optware or to use it as fileserver. But there is one trick to mount your drive on it!
Note: This is extention of gouryella way (taken from [1] http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647), also by calvin18 and others of the community. Gouryella wrote a smart script that downloads the ext3 driver and mounts the 1st partition to /opt during boot (after WAN is up). This method is described here, but I think, this is not good way because getting script from internet depends on a lot of things. The most convenient storage for this on USB-flash itself, and the absence of fs drivers isn't a problem.
Solution
Proper way is to enable USB Support under Services - USB
Core USB Support USB 2.0 Support USB Storage Support Automatic Drive Mount
, and on boot your USB-drive will become accessible via /dev filesystem