Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Is it possible? I know the DNS-323 usb is used for the printer and disks are not supported but I thought it might be possible to hack. When I plug in a mass storage device, I see it appear in the /proc/bus/usb/devices but there is "driver=(none)".
I am a complete newbie on linux but tried to fiddle with adding a usb-storage driver, etc but I think my problem solving skills are coming up short.
Any advice? Should I give up?
Thanks!
Offline
I don't think you should give up. I went down this road myself a few days back and concluded that alot of modules were missing in order to have a USB disc working. The only present module is the sd_mod.o. First we must define which modules that are needed. I think this is a comprehensive list of modules needed:
* usbcore.o
* scsi_mod.o
* sd_mod.o (already present)
* usb-storage.o
* usb-uhci.o (or maybe the other....)
* ??vfat32.o??
Next step would be to set-up the cross-compile toolchain and buld the modules. Finallay we should "modprobe" and add the modules and do some testing.
I think it's doable, but I think we need some expertise here. I'm not a kernel-kind-of-guy so I cannot say that i works, but IMHO it should. But; I know that we're missing the modules needed and I can' figure out why D-Link didn't include suppport for this from scratch as it's quite straight forward - but I guess lack of time....
Offline
you'll just need usb-storage !
try mine...
http://dev.skcserver.de/dns323/usb-storage.ko
put it i.e. in /mnt/HD_a2/lnx_bin, cd to the dir and type 'insmod usb-storage.ko'
I'm accessing a ext2 formatted usb memory stick right now...
Initializing USB Mass Storage driver...
scsi4 : SCSI emulation for USB Mass Storage devices
Vendor: LEXAR Model: GEYSER JUMPDRIVE Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdc: 1001952 512-byte hdwr sectors (513 MB)
sdc: assuming Write Enabled
sdc: assuming drive cache: write through
sdc: sdc1
Attached scsi removable disk sdc at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi4, channel 0, id 0, lun 0, type 0
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Last edited by Lipovitan.B3 (2007-01-29 18:51:00)
Offline
I hate to sound stupid, but I would really be very indebted if someone could explain this indetail for those of use that are'nt linux guru's. I just updated my DNS-323 to 1.2 (after going and purchasing a 500gig MYBOOK usb to use for temp storage), and now I'm copying back the data. I really could use that usb port to plug in this WD MYBOOK 500gig usb drive. Will this trick allow it to mount other filesystems besides a ext2 formatted drive? Maybe just a plain old fat32 hard drive or flash drive?
Offline
Lipovitan.B3 wrote:
you'll just need usb-storage !
This is great news!! You wouldn't happen to have a VFAT module compiled as well? Would like to mount this stick as FAT as it's formatted like that.
Offline
actually vfat should be compiled into the kernel already... take a look at /proc/filesystems
cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev usbfs
nodev usbdevfs
nodev futexfs
nodev tmpfs
nodev pipefs
nodev eventpollfs
nodev devpts
ext3
ext2
cramfs
nodev ramfs
minix
vfat
nodev nfs
nodev autofs
nodev rpc_pipefs
@osxtasy:
well it should be possible I think... but then I don't know how to make the dlink web-interface aware of the device, so I guess there's no easy way to get access to the drives yet...
( but I can't tell for sure ofcourse! there's always hope *g* )
Offline
How do I get to where I load that "usb-storage.ko" file? I dont know anything about accessing the linux OS installed on the unit. Do I have to use that "hotplug" program (which I also know nothing about) or is there a cut and dry way to do it(Drag and Drop?). I do have a virtual image of Suse 10.0 running in parallels on my Macbook pro, and I can map to the dns-323, but how do I load the file? All I know about linux is how to install and partition with it, and use it like a normal desktop system. I'm not very CLI literate, but I'm more than willing to listen.......
Thanks to listening to an indiot such as myself, I know how hard it is (I'm actually a windows systems/network admin that merely dabbles in Linux and OSX) to slow down and show a user how to do something simple to you (I have to do it all the time), especially when you really want to say: RTFM!
Offline
Cool!
I managed to connect to an extarnal memorystick, SanDisk Cruzer Micro, inserted into the DNS USB port by doing the following:
1. Downloaded usb-storage.ko to \\NAS\HDD_1\lnx_bin from W2K PC
2. Telnet to DNS-323
3. Some commands on the DNS:
# insmod /mnt/HD_a2/lnx_bin/usb-storage.ko
# mkdir /mnt/ext
# mount -t vfat /dev/sdc /mnt/ext
4. Added the following to /etc/samba/smb.conf using vi:
[TEST_EXT]
comment = External VFAT Disc
path = /mnt/ext
valid users =
read only = no
guest ok = yes
5. Restarted Samba:
# smb restart
Success - I can now read and write files to the memorystick from my W2K PC.
Since my memorystick had some SanDisk prop. format I needed to make a clean filesystem, which I did using:
# /sys/crfs/bin/mkfs.vfat /dev/sdc
Why didn't D-Link support this out-of-the-box?!? What's the problem?
HTH/Apan
Last edited by Apskaft (2007-01-29 21:54:09)
Offline
Hmm,
Raid 5 ......
Probably a bit slow but would be fun to try!
Offline
Could not open connection to the host, on port 23 :connect failed
Thats the error I'm getting upon attempting to telnet using winxp......
Offline
osxtasy wrote:
Could not open connection to the host, on port 23 :connect failed
Thats the error I'm getting upon attempting to telnet using winxp......
You need to install it!
http://dns323.kood.org/forum/t126-insta … NS323.html
(Only the telnet part is needed)
Last edited by frodo (2007-01-30 02:04:25)
Offline
Thanks for the help guys.
Got it working. I now have a 4 port USB hub hooked up. 2 ports have 120GB and 200GB drives connected with ext2 fs. It also worked fine when there was a fat32 partition on them. Another port has a canon printer on it. They all work!!! Amazing.
My fun_plug gets them going along with the telnet:
DIR=/mnt/HD_a2
dmesg > $DIR/lnx_bin/logs/dmesg.out
$DIR/nc -l -p 10000 -e /bin/sh &
mkdir $DIR/lnx_bin/
cd $DIR/lnx_bin/
$DIR/lnx_bin/starttelnet.sh
export PATH=$DIR/lnx_bin/:$PATH
insmod $DIR/lnx_bin/usb-storage.ko
dmesg > $DIR/lnx_bin/logs/dmesg2.out
mount /dev/sdc1 $DIR/usb_120
mount /dev/sdd1 $DIR/usb_200
Offline
Hi, nice work guys!
Anyone who knows how much power you can you draw from the USB port?
How do you disconnect a mounted disk, by shutdown?
I guess a hub with its own power source is the way to go but can you handle "hot swaps" in some way...
/gotdiskey
Offline
gotdiskey wrote:
How do you disconnect a mounted disk, by shutdown?
You should umount the discs before unplugging the device, orherwise you may end up with corrupted file-system.
# umount /mnt/ext
/Apan
Offline
And the DNS doesn't unmount mounts on shutdown?
/gotdiskey
Offline
gotdiskey wrote:
And the DNS doesn't unmount mounts on shutdown?
/gotdiskey
Sorry, but I don't get your point. Normally, the shutdown command on Linux will shutdown or reboot your system, and of course when powered down it's safe to remove the USB devices. But; if you want to "hot-remove" them then you better unmount before.
However, the shutdown command seems not to be available atm. Maybe there are some D-Link proprietry command to use instead - or maybe you're referring to the button on the device.....
Or; maybe I don't understand your question properly.
/Apan
Offline
I'm refering to shutdown using the button. It's hard to tell if it shuts down properly or if it justs unmounts the two disks and then powers off as it's using an image when booting up...
/gotdiskey
Offline
Hard to say, but by looking into that file using a hexeditor you can see that the string "umount /mnt/HD_a2" is present, but not HD_b2 is never mentioned in relation with umount. But; it's extremenly hard to tell from just looking into the binaries, so we have to assume that USB discs are not properly unmounted at shutdown, unless /etc/hotplug/usbumountall does the trick and is called at boot.
Maybe someone with RS-232 access can tell something from the logs at power down...
Offline
spalko wrote:
I now have a 4 port USB hub hooked up.
@spalko Very cool! Is it a USB 2.0 hub? Are you using external power for the hub? What brand/model of hub worked for you? Do you have a photo? Did any hubs not work for you? Thanks! Awesome!
spalko wrote:
Another port has a canon printer on it. They all work!!! Amazing.
has anyone succeeded in getting a multi-function printer/scanner, all-in-one device to work via the USB port?
A more, "out-there" question: Has anyone succeeded with sharing other cool USB devices: "USB Microphone", "USB Speakers", "USB keyboard", "USB mouse", "USB Wireless Keyboard/Mouse", "USB ATI Remote Wonder", "USB Sensor" (of some sort) or some other idea? Any other cool/potentially useful ideas or successes?
Last edited by someguy (2007-02-02 15:52:21)
Offline
someguy wrote:
has anyone succeeded in getting a multi-function printer/scanner, all-in-one device to work via the USB port?
Have a HP PSC 950 (all in one) connected (directly, no hub here) and it prints ok. Have yet to test the scanner part.
/gotdiskey
Offline
someguy wrote:
@spalko Very cool! Is it a USB 2.0 hub? Are you using external power for the hub? What brand/model of hub worked for you?
Yes, it is a 2.0 hub with external power. It is a D-Link hub as luck would have it (if that has anything to do with compatibility). It is a DUB-H4 http://www.dlink.com/products/?sec=0&pid=152. I have another hub laying around that I can try (travel sized w/o power). Maybe soon.... got a bit of school work to do.
-spalko
Offline
Got this issue covered in the Wiki: http://dns323.kood.org/howto:external_drive /Apan
Offline
I also have a dumb question: the hack under discussion works with USB flash memories, will it also work with ATA HDDs and CD/DVD burners in USB enclosures? Thanks.
Offline
It's reported to work with USB flash memories and USB discs. I don't have a clue about anything else. I _think_ many of the devices on http://www.qbik.ch/usb/devices/ will work - but some may require additional modules.
HTH/Apan
Offline
Hi,
tried this with firmware 1.03, but if fails with the following message in dmesg.out
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 or is it something else that fails ?
Did mount it as described above via fun_plug
thanks
TJ1965
Offline