Netgear WNR2200: USB ext2 not working in 23320

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
rodri
DD-WRT Novice


Joined: 24 Sep 2012
Posts: 5

PostPosted: Tue Jan 28, 2014 22:31    Post subject: Netgear WNR2200: USB ext2 not working in 23320 Reply with quote
After some time, I am trying again to install optware in my wnr2200. I formatted a USB key with the recommended four partitions setup: the first with ext2 for optware, the second with swap space (although I am not sure that this is supported in my router), the third with ext2 for native data and the fourth with fat32 for sharing data with Windows.

With the latest build (23320), the router is able to read the partitions correctly. The output in Services->USB looks promising:
Quote:
--- /dev/sda
Block device, size 14.90 GiB (15995240448 bytes)
DOS/MBR partition map
Partition 1: 2 GiB (2147483648 bytes, 4194304 sectors from 2048)
Type 0x83 (Linux)
Ext2 file system
Volume name "Optware"
UUID FD0E3AFB-EBE6-43F2-B9FB-711C238A9E38 (DCE, v4)
Volume size 2 GiB (2147483648 bytes, 524288 blocks of 4 KiB)
Partition 2: 1 GiB (1073741824 bytes, 2097152 sectors from 4196352)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 1.000 GiB (1073733632 bytes, 262142 pages of 4 KiB)
Partition 3: 4 GiB (4294967296 bytes, 8388608 sectors from 6293504)
Type 0x83 (Linux)
Ext2 file system
Volume name "LinuxData"
UUID 0B526232-D723-4024-B38B-BBD32BDB4A63 (DCE, v4)
Volume size 4 GiB (4294967296 bytes, 1048576 blocks of 4 KiB)
Partition 4: 7.896 GiB (8477736960 bytes, 16558080 sectors from 14682112)
Type 0x0B (FAT32 (CHS))
FAT32 file system (hints score 5 of 5)
Volume size 7.880 GiB (8461189120 bytes, 2065720 clusters of 4 KiB)
Volume name "WINDATA"
Status: Mounted on /mnt


However, in reality the router only mounts the vfat partition. Typing mount in the terminal:
Quote:
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512K)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda4 on /tmp/mnt/sda_part4 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,errors=remount-ro)


I investigated a bit and I saw that ext2 is not listed in /proc/filesystem:
Quote:
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev tmpfs
nodev debugfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev devpts
squashfs
nodev ramfs
nodev mtd_inodefs
vfat
msdos


I tried to load the ext2 module with insmod /lib/modules/3.5.7.28/kernel/fs/ext2/ext2.ko, but it returns the error unknown symbol in module. This does not happen with other modules since I can load cifs.ko in this way, for instance.

I saw this ticket http://svn.dd-wrt.com/ticket/2985 and I thought that ext2 was working. Is this a regression? Has anyone a version of the firmware that really supports ext2 in a working WNR2200?
Sponsor
rodri
DD-WRT Novice


Joined: 24 Sep 2012
Posts: 5

PostPosted: Sun Feb 22, 2015 15:57    Post subject: Got ext2 finally working on Netgear WNR2200 Reply with quote
Hi,

After some months, I have downloaded the last build of dd-wrt for my wnr2200:
Quote:

DD-WRT v24-sp2 (12/22/14) std
(SVN revision 25697)


And I faced the same problem again: ext2 partitions from my USB key were not automatically mounted, and mounting them manually was not working either because the ext2 module is not loaded.

Trying to load the ext2.ko module with insmod failed and here is where I stopped trying last time. The solution is easy though: ext2 depends on mbcache, so I had to install this module first... and that was all! I am finally able to mount ext2 partitions.

If anyone has the same problem and has beared with me until here, here is what you have to do. Log in to your router with ssh and then type in (the exact modules directory changes between versions):
Quote:

cd /lib/modules/3.5.7.33
insmod mbcache.ko
insmod ext2.ko


And now you can mount ext2 partitions as usual. It is really that simple.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware 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 cannot attach files in this forum
You cannot download files in this forum