[SOLVED] EXT2 kernel extension: how to obtain?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2
Author Message
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Sat Jul 14, 2012 17:40    Post subject: Re: Which issue(s) need to be addressed? How? Reply with quote
gatorback wrote:

Code:
root@host:/jffs# mount  scsi/host0/bus0/target0/lun0/part2 /opt





What is scsi , a subdirectory to the directory where you are when issuing the command?

Use full path!

_________________
Kernel panic: Aiee, killing interrupt handler!
Sponsor
gatorback
DD-WRT User


Joined: 04 Feb 2007
Posts: 426
Location: Fountain of Youth

PostPosted: Mon Jul 16, 2012 16:10    Post subject: Reply with quote
@LOM: Thanks for bringing this to my attention. It is now working after trying the following:

Use the context clue to determine which path to mount to the target directory.
======================================================

root@HOSTNAME:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /jffs type ext3 (rw)

root@HOSTNAME:~# ls /dev/discs/disc0/
disc part1 part2

Code:
root@HOSTNAME:~# mount /dev/discs/disc0/part2 /opt

root@HOSTNAME:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /jffs type ext3 (rw)
/dev/discs/disc0/part2 on /opt type ext2 (rw)

Test partition by creating a text file:
============================

root@HOSTNAME:~# touch /opt/test.txt
root@HOSTNAME:~# ls /opt
lost+found test.txt

root@HOSTNAME:~# uname -r
2.4.37
root@HOSTNAME:~# uname -r > /opt/test.txt
root@HOSTNAME:~# vi /opt/test.txt
2.4.37


Automount
==========
Cretated a file /jffs/MountUSB.sh:

Code:
insmod /jffs/ext2.o
mount /dev/discs/disc0/part2 /opt


Configured script to run at bootup here:

Services Menu => USB Menu => Run-on-mount Script Name = /jffs/MountUSB.sh

Next?
=====
Wondering if a remotely deployed WL520GU can be outfitted with a fresh USB flash drive and formatted with a small ext3 partition and large ext2 from the CLI?

_________________
My Routers | RT-N16 Wiki | TMO Cellspot Wiki
Peacock Flashing | Wireless N Conf | Linking Routers |
DD-WRT Wiki | DD-WRT Builds | Broadcom FAQ| QoS| OTRW
crashfly
DD-WRT Guru


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

PostPosted: Mon Jul 16, 2012 22:37    Post subject: Reply with quote
gatorback wrote:
Wondering if a remotely deployed WL520GU can be outfitted with a fresh USB flash drive and formatted with a small ext3 partition and large ext2 from the CLI?

ext2, yes. ext3, no. I filed a bug a year or so ago and I got a specific response from BrainSlayer about DD-WRT does not support ext3. As the way it was worded, I believe that the module is only for reading as you cannot format an ext3 partition with DD-WRT. As for ext2, I have used that just fine.

_________________
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.
Goto page Previous  1, 2 Display posts from previous:    Page 2 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