Where is ext2.o ? [ for optware usb ext2 installs]

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
patrick0525
DD-WRT User


Joined: 16 May 2010
Posts: 72

PostPosted: Sat Jul 16, 2011 20:39    Post subject: Where is ext2.o ? [ for optware usb ext2 installs] Reply with quote
I converted my usb stick for optware from ext3 to ext2 and now it can't mount. It was suggested from the forum to use "insmod /lib/modules/2.4.37/ext2.o"

I can't find it. Can someone post it or post a link to it. Thanks!

Patrick
Sponsor
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Sat Jul 16, 2011 22:02    Post subject: Reply with quote
The location will depend on your kernel version. As mine has this directory, I suspect yours is a 2.6 kernel. Please post your router type and the firmware you are using for it.
_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
patrick0525
DD-WRT User


Joined: 16 May 2010
Posts: 72

PostPosted: Sat Jul 16, 2011 23:21    Post subject: Reply with quote
Firmware/router:
DD-WRT v24-sp2 (06/14/11) std - build 17201
Asus RT-N13U

When I formated another usb stick as ext3 everything mounted ok. How do I mount this ext2 usb stick? I copied a mega-dd-wrt wrt54g-TM's ext2.o to the /tmp directory and ran insmod /tmp/ext2.o. Still didn't work.

Any commented would be greatly appreciated. Thanks1
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Sun Jul 17, 2011 15:10    Post subject: Reply with quote
Since you are using a very recent version, you have to insert the appropriate modules to get them to work right before mounting.

This should work for you (without the double quotes):
"/lib/modules/`uname -r`/ext2.o"

If it does not, you are missing another module which would make it work or your partition is not appropriately mountable by DD-WRT.

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
patrick0525
DD-WRT User


Joined: 16 May 2010
Posts: 72

PostPosted: Sun Jul 17, 2011 18:25    Post subject: Reply with quote
There is no ext2.o

root@DD-WRT:~# ls -al /lib/modules/`uname -r`
total 0
drwxr-xr-x 3 root root 23 Jun 14 11:00 .
drwxr-xr-x 3 root root 26 Jun 14 11:00 ..
drwxr-xr-x 6 root root 50 Jun 14 11:00 kernel

What's next? Is the next steo the following:
insmod lib/modules/`uname -r`/ext2.0

How do I mount the usb stick?

Thanks!
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Sun Jul 17, 2011 20:00    Post subject: Reply with quote
In my firmware (using the 2.4 kernel), there does not appear to be the "kernel" directory. Modify that command to this (without the double quotes):
"/lib/modules/`uname -r`/kernel/ext2.o"

Once the appropriate module is inserted, you should be able to mount the disk using the following command (without quotes):
"mount -t ext2 /dev/discs/disc0/part1 /mnt/location"

The '/dev/discs/disc0/part1' might have to be modified to fit the drive as well as the '/mnt/location' to where you want it to show up.

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
nuke12
DD-WRT User


Joined: 10 Jul 2011
Posts: 90

PostPosted: Sun Jul 17, 2011 20:33    Post subject: Reply with quote
try;

Quote:
cd /
find -name ext*
patrick0525
DD-WRT User


Joined: 16 May 2010
Posts: 72

PostPosted: Sun Jul 17, 2011 22:05    Post subject: Reply with quote
I did
cd /
find -name ext2*

ext2.o does not exist in my version of the firmware

I do have a copy of ext2.o from the mega firmware.
Where do copy to? Looks like it's "/temp/var" (ram memory)
patrick0525
DD-WRT User


Joined: 16 May 2010
Posts: 72

PostPosted: Sun Jul 17, 2011 22:22    Post subject: Reply with quote
On my other usb ext3 stick everything works. It's mount is the folowing:

root@DD-WRT:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /opt type ext3 (rw,noatime,nodiratime,data=ordered)
/dev/discs/disc0/part3 on /jffs type ext3 (rw,data=ordered)
/dev/sda3 on /mnt type ext3 (rw,noatime,data=ordered



So I copied ext2.o over.
I did the following:

insmod /tmp/var/ext2.o
mount -t ext2 /dev/discs/disc0/part1 /opt

Still it doesn't mount.
Thanks!
nuke12
DD-WRT User


Joined: 10 Jul 2011
Posts: 90

PostPosted: Mon Jul 18, 2011 2:58    Post subject: Reply with quote
Try;
Code:
lsmod

To see if the module actually loaded. Is it in the list?
patrick0525
DD-WRT User


Joined: 16 May 2010
Posts: 72

PostPosted: Mon Jul 18, 2011 11:14    Post subject: Reply with quote
I will lsmod tonite and report back what modules loaded in. Thanks!
patrick0525
DD-WRT User


Joined: 16 May 2010
Posts: 72

PostPosted: Mon Jul 18, 2011 22:29    Post subject: Reply with quote
On a working optware system that mounted a usb stick as ext3 , I did the following to see if the module attached:

insmod /tmp/ext2.o

root@DD-WRT:/# lsmod
Module Size Used by Tainted: P
nf_nat_pptp 4096 0 - Live 0x80b6c000
nf_conntrack_pptp 4096 1 nf_nat_pptp, Live 0x80c48000
nf_nat_proto_gre 4096 1 nf_nat_pptp, Live 0x81b3a000
nf_conntrack_proto_gre 4096 1 nf_conntrack_pptp, Live 0x81434000
ext3 106496 2 - Live 0x81ae0000
mbcache 8192 1 ext3, Live 0x81a7c000
jbd 57344 1 ext3, Live 0x81aa0000
etherip 8192 0 - Live 0x819b8000
usblp 8192 0 - Live 0x81fbc000
scsi_wait_scan 480 0 - Live 0x81fa3000

I guess insmod didn't install ext2.0.
Any comments?
Dark_Shadow
DD-WRT Guru


Joined: 31 Aug 2009
Posts: 2448
Location: Third Rock from the Sun

PostPosted: Tue Jul 19, 2011 0:03    Post subject: Reply with quote
Asus RT-N13U = Ralink chipset. This thread should be moved to that forum.
_________________
Peacock Thread-FAQ -- dd-wrt Wiki

Testing Multiple Routers -- Bootloader Collection Project -- My Wiki
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Tue Jul 19, 2011 5:12    Post subject: Reply with quote
patrick0525 wrote:
I guess insmod didn't install ext2.0.
Any comments?

It is odd (to me anyway) that your "standard" version does not include the ext2 module with it. (Maybe try a different version that will still fit?)

You might be able to get away with using the ext3 file system anyway. If you use the option:
Code:
mount -t ext3 -o noload /device /location

The "-o noload" is suppose to set ext3 not to load the journal (At least that is what the man file mentions on fedora.)

Do realize your mileage may vary.

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Tue Jul 19, 2011 11:20    Post subject: Reply with quote
You can not use a module built for Linux kernel 2.4 (Broadcom based WRT54 routers) on an RaLink based router running Linux 2.6

There is a long thread in the Ralink section on how to load usb and file system modules on the RT-N13U.

_________________
Kernel panic: Aiee, killing interrupt handler!
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum