Mounting USB drive without located onboard fs modules

From DD-WRT Wiki

Revision as of 19:42, 18 August 2011 by Kvarlamov (Talk | contribs)
Jump to: navigation, search

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).

Solution

Building / finding suitable kernel modules

Preparing USB stick/ USB HDD as modules storage

Startup script on box for mounting