http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&action=history&feed=atom Mounting USB drive without located onboard fs modules - Revision history 2024-03-29T05:37:44Z Revision history for this page on the wiki MediaWiki 1.10.1 http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=43107&oldid=prev Glenn: + Category:USB 2012-06-22T20:37:12Z <p>+ <a href="/wiki/index.php/Category:USB" title="Category:USB">Category:USB</a></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 20:37, 22 June 2012</td> </tr> <tr><td colspan="2" align="left"><strong>Line 273:</strong></td> <td colspan="2" align="left"><strong>Line 273:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Enjoy :-)</td><td> </td><td style="background: #eee; font-size: smaller;">Enjoy :-)</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Kirill Varlamov, Russia</td><td> </td><td style="background: #eee; font-size: smaller;">Kirill Varlamov, Russia</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:USB]]</td></tr> </table> Glenn http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41050&oldid=prev Kvarlamov: USB drive mount without fs modules moved to Mounting USB drive without located onboard fs modules 2011-08-18T21:59:01Z <p><a href="/wiki/index.php/USB_drive_mount_without_fs_modules" title="USB drive mount without fs modules">USB drive mount without fs modules</a> moved to <a href="/wiki/index.php/Mounting_USB_drive_without_located_onboard_fs_modules" title="Mounting USB drive without located onboard fs modules">Mounting USB drive without located onboard fs modules</a></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 21:59, 18 August 2011</td> </tr> </table> Kvarlamov http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41049&oldid=prev Kvarlamov: /* Problem description */ 2011-08-18T21:39:44Z <p><span class="autocomment">Problem description</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 21:39, 18 August 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Problem description ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Problem description ==</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">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 <del style="color: red; font-weight: bold; text-decoration: none;">needed </del>modules for filesystems support on it.</td><td>+</td><td style="background: #cfc; font-size: smaller;">Fact is: <ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins>not all<ins style="color: red; font-weight: bold; text-decoration: none;">''' </ins>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 modules for <ins style="color: red; font-weight: bold; text-decoration: none;">common </ins>filesystems support on it.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">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.</td><td> </td><td style="background: #eee; font-size: smaller;">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.</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">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!</td><td>+</td><td style="background: #cfc; font-size: smaller;">It's very sad if you were going to extend router by external USB drive and use router for running <ins style="color: red; font-weight: bold; text-decoration: none;">[[[</ins>optware<ins style="color: red; font-weight: bold; text-decoration: none;">]]] </ins>or to use it as fileserver. But there is one trick to mount your drive on it!</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Note: This is extention of gouryella way (taken from [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647] 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).</td><td>+</td><td style="background: #cfc; font-size: smaller;">Note: This is extention of gouryella<ins style="color: red; font-weight: bold; text-decoration: none;">'s </ins>way (taken from [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647] 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).</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">This method is described [http://www.dd-wrt.com/wiki/index.php/Asus_RT-N13U#Automounting_ext3.2FFAT.2FFAT32.2FNTFS 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<del style="color: red; font-weight: bold; text-decoration: none;">.</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">This method is described [http://www.dd-wrt.com/wiki/index.php/Asus_RT-N13U#Automounting_ext3.2FFAT.2FFAT32.2FNTFS here], but I think, this is not good way because <ins style="color: red; font-weight: bold; text-decoration: none;">result of </ins>getting script from internet depends on a lot of things. <ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins>The most convenient storage for this on USB-flash itself, and the absence of fs drivers isn't a problem<ins style="color: red; font-weight: bold; text-decoration: none;">!'''</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td></tr> </table> Kvarlamov http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41048&oldid=prev Kvarlamov: /* Solution */ 2011-08-18T21:37:52Z <p><span class="autocomment">Solution</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 21:37, 18 August 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 9:</strong></td> <td colspan="2" align="left"><strong>Line 9:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">Proper way is to enable USB Support under Services - <del style="color: red; font-weight: bold; text-decoration: none;">USB</del></td><td>+</td><td style="background: #cfc; font-size: smaller;">Proper way is to enable USB Support under Services - <ins style="color: red; font-weight: bold; text-decoration: none;"> first</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> Core USB Support</td><td> </td><td style="background: #eee; font-size: smaller;"> Core USB Support</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> USB 2.0 Support</td><td> </td><td style="background: #eee; font-size: smaller;"> USB 2.0 Support</td></tr> </table> Kvarlamov http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41047&oldid=prev Kvarlamov: /* Startup script on box for mounting */ 2011-08-18T21:37:06Z <p><span class="autocomment">Startup script on box for mounting</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 21:37, 18 August 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 200:</strong></td> <td colspan="2" align="left"><strong>Line 200:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Now eject USB drive from PC - it's ready for mounting on dd-wrt board.</td><td> </td><td style="background: #eee; font-size: smaller;">Now eject USB drive from PC - it's ready for mounting on dd-wrt board.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Startup script on box for mounting ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Startup script on box for mounting ===</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">After plugging USB device into box, new drive should appear in dmesg listing</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@dir-620:~# dmesg</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ...</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;6&gt;usb 1-1: new high speed USB device using dwc_otg and address 2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;6&gt;usb 1-1: configuration #1 chosen from 1 choice</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;6&gt;scsi0 : SCSI emulation for USB Mass Storage devices</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;7&gt;usb-storage: device found at 2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;7&gt;usb-storage: waiting for device to settle before scanning</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;5&gt;scsi 0:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;5&gt;sd 0:0:0:0: [sda] 7995392 512-byte hardware sectors (4094 MB)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;5&gt;sd 0:0:0:0: [sda] Write Protect is off</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;7&gt;sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;3&gt;sd 0:0:0:0: [sda] Assuming drive cache: write through</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;5&gt;sd 0:0:0:0: [sda] 7995392 512-byte hardware sectors (4094 MB)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;5&gt;sd 0:0:0:0: [sda] Write Protect is off</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;7&gt;sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;3&gt;sd 0:0:0:0: [sda] Assuming drive cache: write through</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;6&gt; '''/dev/scsi/host0/bus0/target0/lun0''': p1 p2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;5&gt;sd 0:0:0:0: [sda] Attached SCSI removable disk</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;5&gt;sd 0:0:0:0: Attached scsi generic sg0 type 0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;7&gt;usb-storage: device scan complete</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">If they don't appear check if USB support enabled in Services-USB, otherwise enable save config and reload box. Highlited string is address of your USB-drive, it may differ. By the fact, it's a directory containing block partitions part1 and part2:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@dir-620:~# ls /dev/scsi/host0/bus0/target0/lun0/</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> disc part1 part2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Then make a simple script, to uncompress part2 somewhere into rw filesystem: /tmp or /var, load needed modules, and finally mount part1 to /opt mount point. In my case it looks like</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@dir-620:~# nvram set rc_startup=&quot;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> sleep 15</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mkdir /var/lib/fs</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> cd /var/lib/fs</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> tar -zxvf /dev/scsi/host0/bus0/target0/lun0/part2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod jbd.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod mbcache.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> insmod ext3.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> sleep 10</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mount -t ext3 -o noatime /dev/scsi/host0/bus0/target0/lun0/part1 /opt&quot;</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">This script works after executing manually, also works on restart:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@dir-620:~# lsmod</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Module Size Used by</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> '''ext3 106496 1'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> '''mbcache 8192 1 ext3'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> '''jbd 57344 1 ext3'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nf_nat_pptp 4096 0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nf_conntrack_pptp 4096 1 nf_nat_pptp</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nf_nat_proto_gre 4096 1 nf_nat_pptp</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nf_conntrack_proto_gre 4096 1 nf_conntrack_pptp</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> etherip 8192 0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> n_hdlc 8192 0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> rt2860v2_ap 479232 1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> usblp 8192 0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> scsi_wait_scan 480 0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@dir-620:~# mount</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> rootfs on / type rootfs (rw)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /dev/root on / type squashfs (ro)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> none on /dev type devfs (rw)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> proc on /proc type proc (rw)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> sysfs on /sys type sysfs (rw)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ramfs on /tmp type ramfs (rw)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> devpts on /dev/pts type devpts (rw)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> devpts on /proc/bus/usb type usbfs (rw)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> '''/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw,noatime,data=ordered)'''</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@dir-620:~#</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Enjoy :-)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Kirill Varlamov, Russia</td></tr> </table> Kvarlamov http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41046&oldid=prev Kvarlamov: /* Solution */ 2011-08-18T21:16:03Z <p><span class="autocomment">Solution</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 21:16, 18 August 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 15:</strong></td> <td colspan="2" align="left"><strong>Line 15:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> Automatic Drive Mount</td><td> </td><td style="background: #eee; font-size: smaller;"> Automatic Drive Mount</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">, and on boot your USB-drive will become accessible via /dev filesystem</td><td> </td><td style="background: #eee; font-size: smaller;">, and on boot your USB-drive will become accessible via /dev filesystem</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">It's impossible to mount filesystem, but it's accessible as block device, and this is core idea to store modules on micro-sized dedicated partition linearly, without mounting it.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Building / finding suitable kernel modules ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Building / finding suitable kernel modules ===</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">You should have your set of kernel modules as .ko files (for your architecture and kernel version). You can use precompiled ones [http://home.karneval.cz/10102207/fs.gz], or build them on your own. I used precompiled, and this works fine for me (kernel 2.6.23.17, mips32r2).</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Preparing USB stick/ USB HDD as modules storage ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Preparing USB stick/ USB HDD as modules storage ===</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">USB drive should be partitioned into 2 parts: huge partition for main storage space (to format to filesystem) and little one (just some megabytes, not for formatting) to place tar'ed modules archive linearly.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">I've prepared flash stick on Linux PC. Just inserted flash has sdb identifier </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> [11500.435285] sd 6:0:0:0: [sdb] Attached SCSI removable disk</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">It's mounted automatically, you should unmount it to break into parts then</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:~# umount /dev/sdb</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Run fdisk utility with USB flash device as argument</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:~# fdisk /dev/sdb</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> WARNING: DOS-compatible mode is deprecated. It's strongly recommended to</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> switch off the mode (command 'c') and change display units to</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> sectors (command 'u').</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Entering command &quot;p&quot; prints out partition table. You should delete all of them if you want to make partitions from scratch. But it isn't requirement. Anyway you should have at least two partitions: big for formatting and little one for system reasons</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): p</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Disk /dev/sdb: 15.1 GB, 15103688704 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 64 heads, 32 sectors/track, 14404 cylinders </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Units = cylinders of 2048 * 512 = 1048576 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Sector size (logical/physical): 512 bytes / 512 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> I/O size (minimum/optimal): 512 bytes / 512 bytes </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Disk identifier: 0x6f20736b</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">This doesn't look like a partition table</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Probably you selected the wrong device.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Device Boot Start End Blocks Id System</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /dev/sdb1 ? 379950 937327 570754815+ 72 Unknown</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition 1 does not end on cylinder boundary.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /dev/sdb2 ? 82368 1027695 968014120 65 Novell Netware 386</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition 2 does not end on cylinder boundary.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /dev/sdb3 ? 913029 1858355 968014096 79 Unknown</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition 3 does not end on cylinder boundary.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /dev/sdb4 ? 1409025 1409052 27749+ d Unknown</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition 4 does not end on cylinder boundary.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition table entries are not in disk order</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">I had some mess on flash and going to remove all partitions and create new ones. Deleting is &quot;d&quot; command</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): d </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition number (1-4): 1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): d</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition number (1-4): 2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): d</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition number (1-4): 3</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): d</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Selected partition 4</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">I've got a clean flash (filesystem isn't written to disk yet until &quot;w&quot; entered)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): p</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Disk /dev/sdb: 15.1 GB, 15103688704 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 64 heads, 32 sectors/track, 14404 cylinders</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Units = cylinders of 2048 * 512 = 1048576 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Sector size (logical/physical): 512 bytes / 512 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> I/O size (minimum/optimal): 512 bytes / 512 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Disk identifier: 0x6f20736b</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Device Boot Start End Blocks Id System</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): u</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Changing display/entry units to sectors</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Creating pair of partitions - primary number 1 started from default sector and with end at sector DEFAULT(LAST) - some megabytes/512 bytes per sector:</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): n</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command action</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> e extended</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> p primary partition (1-4)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> p</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition number (1-4): 1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> First sector (32-29499391, default 32): </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Using default value 32</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Last sector, +sectors or +size{K,M,G} (32-29499391, default 29499391): 29444000</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">And second partition with default start (just space after 1st partition) and ending at the end of the disk </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): n</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command action</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> e extended</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> p primary partition (1-4)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> p</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Partition number (1-4): 2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> First sector (29444001-29499391, default 29444001): </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Using default value 29444001</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Last sector, +sectors or +size{K,M,G} (29444001-29499391, default 29499391): </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Using default value 29499391</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Print result of repartitioning: p command</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): p</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Disk /dev/sdb: 15.1 GB, 15103688704 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 64 heads, 32 sectors/track, 14404 cylinders, total 29499392 sectors</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Units = sectors of 1 * 512 = 512 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Sector size (logical/physical): 512 bytes / 512 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> I/O size (minimum/optimal): 512 bytes / 512 bytes</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Disk identifier: 0x6f20736b</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Device Boot Start End Blocks Id System</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /dev/sdb1 32 29444000 14721984+ 83 Linux</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> /dev/sdb2 29444001 29499391 27695+ 83 Linux</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">If all is ok - commit changes </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Command (m for help): w</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> The partition table has been altered!</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Calling ioctl() to re-read partition table.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Syncing disks.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Format large partition to ext3</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:~# mkfs.ext3 /dev/sdb1</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mke2fs 1.41.14 (22-Dec-2010)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Filesystem label=</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> OS type: Linux</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Block size=4096 (log=2)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Fragment size=4096 (log=2)</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Stride=0 blocks, Stripe width=0 blocks</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 920272 inodes, 3680496 blocks</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 184024 blocks (5.00%) reserved for the super user</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> First data block=0</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Maximum filesystem blocks=3770679296</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 113 block groups</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 32768 blocks per group, 32768 fragments per group</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 8144 inodes per group</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Superblock backups stored on blocks: </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Writing inode tables: done </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Creating journal (32768 blocks): done</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Writing superblocks and filesystem accounting information: done</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> This filesystem will be automatically checked every 36 mounts or</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 180 days, whichever comes first. Use tune2fs -c or -i to override.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Filling second partition with binary zeros </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:~# dd if=/dev/zero of=/dev/sdb2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> dd: writing to `/dev/sdb2': No space left on device</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 55392+0 records in</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 55391+0 records out</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 28360192 bytes (28 MB) copied, 6.49572 s, 4.4 MB/s</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:~# </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">After that get archive and copy it block-by-block over little partition</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:~# wget http://home.karneval.cz/10102207/fs.gz</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> --2011-08-18 18:24:46-- http://home.karneval.cz/10102207/fs.gz</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Resolving home.karneval.cz... 80.109.240.73</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Connecting to home.karneval.cz|80.109.240.73|:80... connected.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> HTTP request sent, awaiting response... 200 OK</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Length: 166663 (163K) [application/x-gzip]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Saving to: `fs.gz'</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 100%[=================================&gt;] 166,663 422K/s in 0.4s </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 2011-08-18 18:24:47 (422 KB/s) - `fs.gz' saved [166663/166663]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:~# dd if=fs.gz of=/dev/sdb2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 325+1 records in</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 325+1 records out</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> 166663 bytes (167 kB) copied, 0.0163577 s, 10.2 MB/s</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Try to get files directly from disk - it works pretty well.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:~# cd /tmp</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:/tmp# tar -zvxf /dev/sdb2</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ext3</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> ext3.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> fat</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> fat.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> fuse.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> jbd.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> mbcache.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nls_cp437.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nls_iso8859-1.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nls_iso8859-2.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> nls_utf8.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> vfat.ko</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> root@ubuntu:/tmp# </td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Now eject USB drive from PC - it's ready for mounting on dd-wrt board.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Startup script on box for mounting ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Startup script on box for mounting ===</td></tr> </table> Kvarlamov http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41045&oldid=prev Kvarlamov: /* Solution */ 2011-08-18T20:26:50Z <p><span class="autocomment">Solution</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 20:26, 18 August 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 8:</strong></td> <td colspan="2" align="left"><strong>Line 8:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Proper way is to enable USB Support under Services - USB</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Core USB Support</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> USB 2.0 Support</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> USB Storage Support</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> Automatic Drive Mount</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">, and on boot your USB-drive will become accessible via /dev filesystem</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">=== Building / finding suitable kernel modules ===</td><td> </td><td style="background: #eee; font-size: smaller;">=== Building / finding suitable kernel modules ===</td></tr> </table> Kvarlamov http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41044&oldid=prev Kvarlamov: /* Problem description */ 2011-08-18T20:23:18Z <p><span class="autocomment">Problem description</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 20:23, 18 August 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 5:</strong></td> <td colspan="2" align="left"><strong>Line 5:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Note: This is extention of gouryella way (taken from [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647] 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).</td><td> </td><td style="background: #eee; font-size: smaller;">Note: This is extention of gouryella way (taken from [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647] 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).</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">This method is described [http://www.dd-wrt.com/wiki/index.php/Asus_RT-N13U#Automounting_ext3.2FFAT.2FFAT32.2FNTFS 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 flash itself, and the absence of fs drivers isn't a problem.</td><td>+</td><td style="background: #cfc; font-size: smaller;">This method is described [http://www.dd-wrt.com/wiki/index.php/Asus_RT-N13U#Automounting_ext3.2FFAT.2FFAT32.2FNTFS 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 <ins style="color: red; font-weight: bold; text-decoration: none;">USB-</ins>flash itself, and the absence of fs drivers isn't a problem.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td></tr> </table> Kvarlamov http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41043&oldid=prev Kvarlamov: /* Problem description */ 2011-08-18T20:22:49Z <p><span class="autocomment">Problem description</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 20:22, 18 August 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 5:</strong></td> <td colspan="2" align="left"><strong>Line 5:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">Note: This is extention of gouryella way (taken from [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647] 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).</td><td> </td><td style="background: #eee; font-size: smaller;">Note: This is extention of gouryella way (taken from [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647] 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).</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">This method is described [http://www.dd-wrt.com/wiki/index.php/Asus_RT-N13U#Automounting_ext3.2FFAT.2FFAT32.2FNTFS 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 flash itself, and the absence of fs drivers isn't a problem.</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td></tr> </table> Kvarlamov http://wiki.dd-wrt.com/wiki/index.php?title=Mounting_USB_drive_without_located_onboard_fs_modules&diff=41042&oldid=prev Kvarlamov: /* Problem description */ 2011-08-18T19:42:15Z <p><span class="autocomment">Problem description</span></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 19:42, 18 August 2011</td> </tr> <tr><td colspan="2" align="left"><strong>Line 1:</strong></td> <td colspan="2" align="left"><strong>Line 1:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Problem description ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Problem description ==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">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.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">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.</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">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!</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">Note: This is extention of gouryella way (taken from [http://www.dd-wrt.com/phpBB2/viewtopic.php?p=454647#454647] 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).</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Solution ==</td></tr> </table> Kvarlamov