today I am releasing usb-storage.ko, the driver to be able to mount a USB disk connected to the USB port of the Conceptronic CH3MNAS
copy the usb-storage.ko.zip to the disk for instance directly to Volume_1
unpak under telnet/ssh with unzip the file with the command:
unzip usb-storage.ko.zip
after unzipping the file, copy the file usb-storage.ko to/ffp/lib/modules/[kernel-version]
with uname -r you can determine the kernel version, this is necessary as the start-usbdisk.sh file makes use of the kernel folder
for the CH3MNAS this will be /ffp/lib/modules/2.6.22.7Â (probably you have to create the folder modules and the 2.6.22.7Â folder.
command for copying the file, go to the folder where you unpacked the zip file and use the following command to copy the file:Â
cp usb-storage.ko /ffp/lib/modules/2.6.22.7/usb-storage.ko
copy from /ffp/etc/examples the file start-usbdisk.sh to /ffp/start/start-usbdisk.sh
cd /ffp/start
chmod 755 start-usbdisk.sh
the chmod 755 will make the start-usbdisk.sh file executable and auto-started after reboot.
please make sure that in the file  start-usbdisk.sh the usbdisk_dev points to the correct /dev/sdc1 location (/dev/sdb1 probably does not work) you can check this with the tool dmesg where the usb disk info is diplayed
than use the command:Â
sh start-usbdisk.sh start
and the usb disk will be mounted. Enjoy !


Hi Dennis,
will this file also work on the CH3SNAS? Currently many folks are using my tutorials, they need to download the correct usb-storage.ko for their system. If this doesn’t work, i need to add a section on this in my tutorials…and if this is needed, i also need to add a detection if this is a ch3snas or a ch3mnas, do you know of any unambiguous tag in the software of the devices to accomplish that?
Thanks in advance!
Best Regards,
Uli
Dennis (aka zeroday) GREAT WORK, First pulling me off making me believe no usb-storage.ko wil ever come and now this. So i went out and bought myself a DNS-323 :) well 2 always will come in handy
Thnx and Chapeau
:)
Regards Weir
Dennis,
just found out that finally a new firmware has been released v. 1.01
With improvment: System flashmemory improved.
Wil fun_plug and the usb-storage still work with this new FW ?
yes, that will work, the fw upgrade is very very very little cause it only fixes some addressing between 2 different flash chips brands.
Just tested the usb-storage.ko and it works like a charme :).
So switching back to my CH3MNAS (instead of my yesterday finished fully configured DNS) because just like with you the standby leds are very important to me.
Thnx again
Dennis,
One lasty final question for this night (sory to bother you like that)
Do u know if it is possible to swap disks between the CH3SNAS (of in my cage the DNS-323) and the CH3MNAS.
I’ve been busy for three days now copying 800gigs of data to the DNS and now when the job is finished the USB-storage.ko fir the CH3MNAS comes out. But i want to prevent copying all that data again.
Thnax in advance
With kind regards WeirJack
it’s possible to swap, but if you keep your content is something else
as long as you do not get the question to reformat your drives there is an option, but I cannot guarantee it.
Great thanx Dennis!
WeirJack I just did the same thing with my fingers crossed, and it worked!
Saved me a lot of work!
Just 1 noobie question, do you have thing on the USB stick?
Or just the NZB folder?
Dennis
I’am totally new with this ch3mnas server and linux.
I studied last 2 day very hard but i still have a problem
Yesterday i installed the funpack and today the usb-storage.ko
But I get the message “did not find sdc1 in proc partitions”
How can I solve this?
And how can I approuch the usb-hdd to copy files from the usb disk to the internal disk
Here is my logfile
Thanks george
root@CH3MNAS1-5TB:~# sh start-usbdisk.sh start
Waiting for sdc1 (up to 60 seconds) …
Failed. Did not find sdc1 in /proc/partitions.
root@CH3MNAS1-5TB:~# dmesg
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver…
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access SAMSUNG HD501LJ PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 38 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 38 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
.
Wel Great AJ,
and thanks 4 the update
i will give it try. And right now i only have the nzb on USB stick but i am planning to have the complete fun plug installation on USB stick.
But with only the NZB dir on USB stick i see my drives in “stand by” state most of the time :)
But only with the webinteface closed, onced opened the HD will not go into stand by due to the web refresh
@George, I think your device is connected through sdb rather than sdc so you have to change the start-usbstorage.sh again ;-)
It’s been asked before but with no clear answer: Will it work on the CH3SNAS?
Thx.
not with this driver, you need another usb-storage.ko
http://wiki.dns323.info/howto:external_drive
@dude:
Just consider the CH3SNAS and the DNS-323 as the same what wil work for the one will work for the other. So the usb-storage.ko driver for the DNS-323 will work with the CH3SNAS.
@ AJ & Dennis. :IT WORKED perfectly. First reformated the old CH3MNAS drives to get rid of the RAID-1 config.
And just bluntley placed the drives from my DNS into it . Only thing to remember is to place disk-1 in the disk1 bay. Booted and worked with my old fun_plug config. even my chares on disk2 stil worked.
Changed to the other usb-storage and of course the other newsbin since everything now works on a CH3MNAS.
Worked like a charme no probs what so ever :)
Dennis talked with a colleague of you today at Actebis fest. Nice to see what Conceptronic is going to present the next few months.
When you say:
“today I am releasing usb-storage.ko, the driver to be able to mount a USB disk connected to the USB port of the Conceptronic CH3MNAS”
Does this also mean that I can connect a extra USB Hard Drive to the CH3(M)(S)NAS
or just a usb disk ? In other words, what is your definition of “USB disk”?
Okay, I got to the point where the USB disk got mounted using the command:
“start # sh start-usbdisk.sh start”. I did not get any error when running this command.
But can someone explain how a can make this mounted disk visible through Samba shares ?
Also the disk is NTFS partioned, do I need to do additional stuff to make it work ?
Thank you.
Anyone who can comment on my previous post?
How do I make the mounted disk visible through Samba ?
Thank you.
@pascal
just create a folder in /mnt/HD_a2/usb-disk
than mount the usb disk to that point
and the usb-disk is accessible thorugh your windows machine
Ok, I am very close.
I am able to mount it and access it through windows but I don’t have write rights yet.
I have formated my external drive to ext2 filesystem using Partition Manager 10.
In the usb-storage.sh script I found the following mount option which was put in commentary:
usbdisk_mount_options=”-t auto -o umask=0″
When I run the following command:
mount -t auto -o umask=0 /dev/sdc1 /mnt/HD_a2/usb-drive
I get the following error:
mounting /dev/sdc1 on /mnt/HD_a2/usb-drive failed: Invalid argument
Also tried:
mount -t ext2 -o umask=0 /dev/sdc1 /mnt/HD_a2/usb-drive
but same error message.
What am i doing wrong. I read on several forums that you need to give the “-o umask=o” command to be able to have write rights under Windows.
I also installed a file system driver under windows which lets me see ext2 partitions and access them.
Please some extra help.
Pascal
this is the howto you probably need
http://wiki.dns323.info/howto:external_drive
Hi Dennis,
I have already been on this page but it does not answer the problem I have. I just want to mount the disk and be able to write to the disk from Windows.
How do I do that ?
The command
“mount -t auto -o umask=0 /dev/sdc1 /mnt/HD_a2/usb-drive”
does not work. But why is not clear.
Does anyone have any suggestions?
Hi,
I ‘ve got the same problem as Dennis has.
I am able to mount the USB stick and write to it in a Telenet session.
But I am not allowed to write anything to it from Windows.
I tried partionning and formating the stick as an etx2 and then make a (writable) SMB share through the web interface from the CH3MNAS. But no succes I still cannot write to the USB stick. I have checked the samba.conf an I can see an entry was created for the USB stick.
I afraid I am stuck now, so any help would be appriated.
Oh, to all helping out here … lots of thanks!
just a guess
what is happening if you chmod the mount point to 777 ?
Yep, thats it.
chmod 777 /mnt/HD_a2/sdd1
I can write to the USb stick now.
Thank you Dennis!
Thanks Dennis,
That did the trick. Got an extra 500GB now.
Another question. It would be very nice if the connected USB hard drive would go into spin down after a variable period. Do you think this is possible ?
Thanks.
Hoi Dennis,
Tot zover lopen je tutorials goed door met m’n nieuwe ch3mnas. Tot de USB dan, zowel op sdb1 en sdc1 blijf ik de melding houden “did not find sdc1 in proc partitionsâ€. Heeft het zin om met een andere usb stick te proberen, of iemand een andere oplossing? Ps. nzbget werkte pas na een speciale ch3mnas versie, wellicht goed als extra remark bij je artikel? Thnx
Hoi Mauws,
Ik ben niet echt een Linux expert maar probeer eens met het volgende commando in je dmesg log te kijken.
dmesg |less
je kunt dan kijken of, en zo ja op welk device je USB stick wordt “geladen”.
Mvg Erik
Hoi allen, nog even terugkoppeling op het niet werken van de usb. In eerste instantie werd de el cheopo stick niet herkend. Nu een 8Gb stick erin en deze wordt wel herkend.
Niet helemaal zonder problemen; Ik heb de stick als ext3 geformateerd alleen levert dit na intensief gebruik allerlei block errors op. Hier is op google veel meer over te vinden, het komt dus meer voor :(
Nu geformateerd als vfat en dit blijft wel goed gaan. Bizar maar ‘t blijft nu wel werken.