Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
TJ1965 wrote:
usb_storage: version magic '2.6.6-arm2 ARMv5 gcc-3.3' should be '2.6.12.6-arm1 ARMv5 gcc-3.3'
Do I need a newer usb-storage.ko?
Yes, kernel modules only work with the kernel they were compiled for. I think Paul has compiled a new usb-storage, see
http://dns323.kood.org/forum/viewtopic.php?id=402 (look for Paul's post on the 2nd page).
Offline
Hi,
tried with a module posted here http://dns323.kood.org/forum/p2514-2007 … html#p2514 and got a bit further.
Initializing USB Mass Storage driver...
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
used a fun_plug that looked like this
#
# fun_plug for sharing one external USB Discs
#
DIR=/mnt/HD_a2
if [ -f $DIR/lnx_bin/usb-storage.ko ]
then
insmod $DIR/lnx_bin/usb-storage.ko
mkdir $DIR/usb_1
mount /dev/sdc $DIR/usb_1
dmesg > $DIR/lnx_bin/logs/dmesg.out
fi
any comments appreciated
thanks
TJ1965
Offline
I've finally upgraded to v1.03 also... My fun_plug does basically the same as yours... but I've noticed that after loading usb_storage.ko it takes a lot longer before my device is found. That's why I had to put some sort of sleep during insmod and mount (my fun_plug checks every second for the device sdc1 for about 30 seconds).
So after that little modification it works exactly like before...
Offline
Hi,
could you please let me know how to check for the module every second as you do ?
Thanks
TJ1965
Offline
Hi TJ1965,
that part in my fun_plug looks something like this...
while ! ( dmesg | grep " sdc1 " >/dev/null ) do sleep 1 done
this could lead ofcourse into an endless loop... that's why I took this approach (I'm using an enhanced busybox with more compiled in features that I found somewhere here on the forum...)
COUNTER=0 while ! ( dmesg | grep " sdc1 " >/dev/null ) do sleep 1 COUNTER=$( expr $COUNTER + 1 ) if [ $COUNTER -gt 30 ] then echo "unable to find a usb-sdc device within 30 seconds" break fi done
you may also try this recompiled usb-storage... It looks like if I've missed some compile options...
http://dev.skcserver.de/dns323/modules_ … storage.ko
Basically there are a lot of compiled modules for v1.03 (usb-storage, tun and many more)
http://dev.skcserver.de/dns323/modules_v1.03/
Offline
Hi,
thanks for the tip, I did now add sleep 10, which seems to be sufficient for my memory, and all is now working ok.
I did also try the newer modules, but I still need the sleep command. The only difference I noticed, was that the file gave a bit more info, and was much bigger in size.
my fun_plug now looks like this
insmod /mnt/HD_a2/lnx_bin/usb-storage.ko
sleep 10
mkdir /mnt/HD_a2/usb_1
mount -t vfat /dev/sdc1 /mnt/HD_a2/usb_1
thanks
TJ1965
Offline
You need a usb-storage.ko compiled for kernel version 2.6.12.6.
If I recall there is such a binary floating around. Try searching the forum.
Offline
I managed to get two 500GB external drives formatted as EXT2 and up and running mounted as SAMBA shares so I can monitor the used space and free space.
Is there anyway to have external drives added to the JBOD array? It would be nice to have 2TB of space available on just one share..
Offline