DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#26 2007-04-29 15:47:07

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Possible to mount external usb disk?

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

 

#27 2007-04-29 16:16:58

TJ1965
Member
Registered: 2007-04-29
Posts: 7

Re: Possible to mount external usb disk?

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

 

#28 2007-04-29 17:46:52

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Possible to mount external usb disk?

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

 

#29 2007-04-29 18:38:48

TJ1965
Member
Registered: 2007-04-29
Posts: 7

Re: Possible to mount external usb disk?

Hi,

could you please let me know how to check for the module every second as you do ?

Thanks
TJ1965

Offline

 

#30 2007-04-29 22:58:58

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Possible to mount external usb disk?

Hi TJ1965,


that part in my fun_plug looks something like this...

Code:

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...)

Code:

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

 

#31 2007-04-29 23:33:25

TJ1965
Member
Registered: 2007-04-29
Posts: 7

Re: Possible to mount external usb disk?

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

 

#32 2007-04-30 12:59:52

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: Possible to mount external usb disk?

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

 

#33 2007-05-08 02:15:39

Muntz
New member
Registered: 2007-05-06
Posts: 1

Re: Possible to mount external usb disk?

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

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB