Help - Search - Members - Calendar
Full Version: Auto-mounting "other" Usb Mass Storage Devices?
OESF Forums > Distros, Development, and Model Specific Forums > Model Specific Forums > C1000/3x00 General discussions
xamindar
I use the automounter-c3000 version 0.4.8 to be able to plug in my usb sticks and have them mount for me. But I am not able to get my camera or my phone to mount automaticaly. They both connect to my Linux system (and windows) as normal mass storage devices so I don't understand why the zaurus doesn't detect them.

Is there a file I can update with more information such as serial numbers so that the zaurus will know that I have just connected a mass storage device? I'm not quite sure how this works, is it hotplug?

Thanks for any help!
Jon_J
I don't know if this will help, I'm going to install it now and see if it will automount my USB Iomega Zip drives.
(These drives presently need to be mounted thru commandline)

From meanie's page

usb-modules_2.4.20_arm.ipk
"additional USB device drivers"

EDIT: I still need to mount my Zip drives manually, the above file didn't work for this.
I don't have the automounter installed that you mention above.
My USB card readers and my USB Pocket drive reader, all automatically mount in Cacko.
In Cacko Lite, I installed usb-storage-modules-2.4.20_1.23--lite-1_arm.ipk
Jon_J
I'm making another post because I'm suggesting another file, (for camera only)
usb-camera-modules-2.4.20_1.23-lite-1_arm.ipk
CODE
Package: usb-camera-modules-2.4.20
Version: 1.23-lite-1
Section: system
Architecture: arm
Maintainer: Anton Maslovsky <my-zaurus@narod.ru>
MD5Sum: af94bb450c97349dab6aa0d71566f716
Size: 15757
Filename: usb-camera-modules-2.4.20_1.23-lite-1_arm.ipk
Description: USB Camera kernel modules
xamindar
Well, I don't think it is a matter of the correct module missing. I just think that the kernel doesn't know that my phone or camera is a "mass storage" device. Meanies site talks a little about getting a certain sony ericsson phone connected but does not go into detail about where to get the correct information to add to the /etc/hotplug/usb.usermap file.
From his site:
CODE
Connecting to Mobile Phone (SonyEriccson K750i)

[my SonyEriccson K750i]

The Sony Ericsson K750i is a mobile phone with many features. It has a 2 mega-pixel camera, and a slot for a Memory Stick Pro Duo card. I have upgraded mine to 1 GB. It also has Infrared, Bluetooth and comes with a USB interface which can be used for file transfer with the Zaurus. The phone also has a GSM modem via a serial line as well.
Using the USB cable to access the Memory Stick

The memory stick can be accessed as a mass storage device when the mobile is connected to the Zaurus via a USB cable. However, the Zaurus does not recognise the manufacturer id as a mass storage device by default. To fix that, you need the append the following to /etc/hotplug/usb.usermap:
usb-storage 0x000f 0x0fce 0xd016 0x0000 0x0000 0x00 0x00 0x00 0x08 0x06 0x50 0x00000000
usb-storage 0x0380 0x0fce 0xd016 0x0000 0x0000 0x00 0x00 0x00 0x08 0x06 0x50 0x00000000

This should make the Zaurus detect the K750i's Memory Stick as a Mass Storage device the next time it is plugged in. However, if it does not, then try appending the above into /lib/modules/2.4.20/modules.usbmap and/or /etc/hotplug/us.handmap


I will continue to research this and post back any findings. Does anyone else have any info on how to do this?
deluxe
My camera is plug'n'play with Cacko heavy, no additional installation of drivers required. Same for USB keyboard and mouse.
Meanie
QUOTE(xamindar @ Oct 9 2006, 06:40 AM)
Well, I don't think it is a matter of the correct module missing.  I just think that the kernel doesn't know that my phone or camera is a "mass storage" device.  Meanies site talks a little about getting a certain sony ericsson phone connected but does not go into detail about where to get the correct information to add to the /etc/hotplug/usb.usermap file.
From his site:
CODE
Connecting to Mobile Phone (SonyEriccson K750i)

[my SonyEriccson K750i]

The Sony Ericsson K750i is a mobile phone with many features. It has a 2 mega-pixel camera, and a slot for a Memory Stick Pro Duo card. I have upgraded mine to 1 GB. It also has Infrared, Bluetooth and comes with a USB interface which can be used for file transfer with the Zaurus. The phone also has a GSM modem via a serial line as well.
Using the USB cable to access the Memory Stick

The memory stick can be accessed as a mass storage device when the mobile is connected to the Zaurus via a USB cable. However, the Zaurus does not recognise the manufacturer id as a mass storage device by default. To fix that, you need the append the following to /etc/hotplug/usb.usermap:
usb-storage 0x000f 0x0fce 0xd016 0x0000 0x0000 0x00 0x00 0x00 0x08 0x06 0x50 0x00000000
usb-storage 0x0380 0x0fce 0xd016 0x0000 0x0000 0x00 0x00 0x00 0x08 0x06 0x50 0x00000000

This should make the Zaurus detect the K750i's Memory Stick as a Mass Storage device the next time it is plugged in. However, if it does not, then try appending the above into /lib/modules/2.4.20/modules.usbmap and/or /etc/hotplug/us.handmap


I will continue to research this and post back any findings.  Does anyone else have any info on how to do this?
*


after you stick in your device, check the output of dmesg. it should show you the detection of devices and what drivers are loaded for each device. if you see a device being detected but nothing being assigned to it and your usb-mass storage device that is supposed to be in the device in question, then chances is that the unassigned one is your usb storage device that the Z does not know about. get its manf id and pop it into the usb usermap.

btw, on windows, some usb storage devices require an updated device driver which the manifacturer of the usb device provides on a CD-ROM. what is does when you install the "driver" which is just a .inf file with the manf id for the usb mass storage device to be added to the windows registry.

since those manifacturer usually do not provide a "driver" for linux, you will need to do it yourself smile.gif
Jon_J
Meanie, where do I get all 12 sets of numbers?
I only have this from my USB Zip drive.
----------------------------------------------------------------------------------------------
usb.c: USB device 2 (vend/prod 0x59b/0x31) is not claimed by any active driver.
----------------------------------------------------------------------------------------------
I tried those 2 sets of numbers in "usb.usermap" and in "modules.usbmap"
I "re-used" the remaining 10 sets of numbers from another usb-storage row.
It also shows up in sysinfo as Iomega Zip 100 and lists the above vendor/product numbers.
It doesn't automount. I have no other things mounted except my internal drive and an SD card.
Jon_J
This is taken from the Cacko bugz database thread. (2 posts starting with this one)
http://www.oesf.org/forums/index.php?showt...indpost&p=66833

-------------------------------------------------------------------------
1. Get your USB product info by PC with usbview (under linux)
2. Enter this data in usb.handmap in /etc/hotplug
-------------------------------------------------------------------------
I tried this under Windows, but I don't think I got "ALL" the numbers needed, because my Zip drive still doesn't automount.

Reading various sites from googling.
modules.usbmap is reset each time depmod is run at boot time.
usb.handmap seems to be the one to modify.

I haven't gotten this to work, I have modified usb.handmap and usb.usermap
I don't have a Linux desktop, and the Windows version of usbview doesn't report all 12 series of numbers that are present in these files.
These are the numbers that I added:
usb-storage 0x0380 0x059b 0x0031 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
My zip drive flashes it's amber light once, and it is also shown in sysinfo under Devices.
Meanie
QUOTE(Jon_J @ Oct 10 2006, 04:09 PM)
This is taken from the Cacko bugz database thread. (2 posts starting with this one)
http://www.oesf.org/forums/index.php?showt...indpost&p=66833

-------------------------------------------------------------------------
1. Get your USB product info by PC with usbview (under linux)
2. Enter this data in usb.handmap in /etc/hotplug
-------------------------------------------------------------------------
I tried this under Windows, but I don't think I got "ALL" the numbers needed, because my Zip drive still doesn't automount.

Reading various sites from googling.
modules.usbmap is reset each time depmod is run at boot time.
usb.handmap seems to be the one to modify.

I haven't gotten this to work, I have modified usb.handmap and usb.usermap
I don't have a Linux desktop, and the Windows version of usbview doesn't report all 12 series of numbers that are present in these files.
These are the numbers that I added:
usb-storage  0x0380      0x059b  0x0031    0x0000      0x0000      0x00        0x00            0x00            0x00            0x00              0x00              0x00000000
My zip drive flashes it's amber light once, and it is also shown in sysinfo under Devices.
*



oops, I forgot to update the automounter package with my latest script which mount the zip drive
Jon_J
What is the "magic" for getting all these numbers and correctly inputting them into these files on the Zaurus?
(usb.handmap and usb.usermap)
If I could figure this out, I could get my 100MB & 750MB Zip drive working.
I also would like to be able to connect my Palm Zire 72 and view/transfer files.
Jon_J
I just downloaded "usb-storage" from Meanie's updated page.
usb-storage 10-10-2006
I copied it to /etc/hotplug/usb/
I deleted "usb-storage.off" as instructed and a new one was generated.
Now when I plug in my Iomega Zip100 and Zip750 drives to my Z's host, these drives show up in the files tab. /dev/sda4
They automount with no notification.
My other mass storage devices have an onscreen popup/notification.
(This is no big deal to me, as I'm just glad to see my Zip drives automounted)
Also, there isn't a way to unmount them, unless I need to go to the console and do this.
If I just unplug one of these Zip drives from my Z, I cannot eject the Zip diskette.
I need to remove the external power from the drive, then re-attach the external power, before I can eject the diskette.
I'm going to see if there is any change when attaching my external IDE HDD.
It still acts the same, and my USB thumbdrive still acts the same. (They both automount W/popup notification, and unmount W/popup notification).
EDIT: There is a new version of Automounter - automounter-c3000_0.4.9_arm.ipk
The reason I don't install the whole automounter, is I know I will forget to manually unmount any other devices when doing a backup with the backup app in Cacko
deluxe
QUOTE(Jon_J @ Oct 10 2006, 05:18 PM)
I just downloaded "usb-storage" from Meanie's updated page.
usb-storage 10-10-2006
I copied it to /etc/hotplug/usb/
I deleted "usb-storage.off" as instructed and a new one was generated.
Now when I plug in my Iomega Zip100 and Zip750 drives to my Z's host, these drives show up in the files tab. /dev/sda4
They automount with no notification.
My other mass storage devices have an onscreen popup/notification.
(This is no big deal to me, as I'm just glad to see my Zip drives automounted)
Also, there isn't a way to unmount them, unless I need to go to the console and do this.
If I just unplug one of these Zip drives from my Z, I cannot eject the Zip diskette.
I need to remove the external power from the drive, then re-attach the external power, before I can eject the diskette.
I'm going to see if there is any change when attaching my external IDE HDD.
It still acts the same, and my USB thumbdrive still acts the same. (They both automount W/popup notification, and unmount W/popup notification).
EDIT: There is a new version of Automounter - automounter-c3000_0.4.9_arm.ipk
The reason I don't install the whole automounter, is I know I will forget to manually unmount any other devices when doing a backup with the backup app in Cacko
*

------------------------

"Also, there isn't a way to unmount them, unless I need to go to the console and do this."

Assuming the drive is mounted, when you click on the tray icon (the one that looks like an open Zaurus) you should see the "Eject...xxxx" options pop up.
Jon_J
QUOTE(deluxe @ Oct 10 2006, 10:44 PM)
Assuming the drive is mounted, when you click on the tray icon (the one that looks like an open Zaurus) you should see the "Eject...xxxx" options pop up.
*

I tried that and the only option shown to unmount is my SD card.
These drives do mount, because I can access them in the default filebrowser, and (in tree!explorer) their contents show up in /mnt/usbzip/
Next time I plug my Zip drive, when I need to unmount it, I'll unmount it in the console.
EDIT: I'm going to try it now...
su
umount /dev/sda4/
unmounts the drive and I can push it's button to eject the diskette.
It won't automount when I push the diskette back in.
Going to use the mount command..
mount /dev/sda4 /mnt/usbzip/
mounted it back where it was when it automounted.
Meanie
QUOTE(Jon_J @ Oct 11 2006, 01:56 PM)
QUOTE(deluxe @ Oct 10 2006, 10:44 PM)
Assuming the drive is mounted, when you click on the tray icon (the one that looks like an open Zaurus) you should see the "Eject...xxxx" options pop up.
*

I tried that and the only option shown to unmount is my SD card.
These drives do mount, because I can access them in the default filebrowser, and (in tree!explorer) their contents show up in /mnt/usbzip/
Next time I plug my Zip drive, when I need to unmount it, I'll unmount it in the console.
EDIT: I'm going to try it now...
su
umount /dev/sda4/
unmounts the drive and I can push it's button to eject the diskette.
It won't automount when I push the diskette back in.
Going to use the mount command..
mount /dev/sda4 /mnt/usbzip/
mounted it back where it was when it automounted.
*



you could try using sysinfo to try to unmount them
Jon_J
I tried sysinfo, there isn't any option to unmount anything under the "Mounts" tab
I looked in the device tab, nothing to unmount things there either.
I'll use commandline for now.
EDIT: I just plugged in my USB thumbdrive and it has an option to unmount "eject" it under the icon on the taskbar.
It says, "Eject usbstorage"
-------------------------------------------------------------------------------------------------
EDIT2: A bit offtopic, I thought a lot of people still used Zip drives/disks.
But with cheap 1, 2, & 4GB SD and CF cards, the Zip drives seem like old dinosaurs.
I have 4 of them, but two of them, (mounted in PC towers) are about ready to give up, (these two are very old).
My "Newer" Zip drives are one external 100MB and another external 750MB
-------------------------------------------------------------------------------------------------
xamindar
QUOTE(Jon_J @ Oct 10 2006, 08:15 PM)
EDIT: I just plugged in my USB thumbdrive and it has an option to unmount "eject" it under the icon on the taskbar.
It says, "Eject usbstorage"


Where do you get that icon from? I don't see any.
bam
QUOTE(xamindar @ Oct 11 2006, 11:32 PM)
QUOTE(Jon_J @ Oct 10 2006, 08:15 PM)
EDIT: I just plugged in my USB thumbdrive and it has an option to unmount "eject" it under the icon on the taskbar.
It says, "Eject usbstorage"


Where do you get that icon from? I don't see any.
*




he's using cacko, with a modified mount applet.(well modified for cacko)
xamindar
I just noticed in dmesg that my phone IS detected by my zaurus and assigned usb-storage. But it fails as my Z can't figure out the partition table. Here is the error:
CODE
sda: Write Protect is off
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table  


Anyone know why this is happening? This phone mounts fine on my Linux box. When I get home I may try repartitioning it in linux and see if it works then.

Now I'm thinking about finding my camera and see if it has this same problem.
Tom61
QUOTE(Jon_J @ Oct 11 2006, 04:15 AM)
-------------------------------------------------------------------------------------------------
EDIT2: A bit offtopic, I thought a lot of people still used Zip drives/disks.
But with cheap 1, 2, & 4GB SD and CF cards, the Zip drives seem like old dinosaurs.
I have 4 of them, but two of them, (mounted in PC towers) are about ready to give up, (these two are very old).
My "Newer" Zip drives are one external 100MB and another external 750MB
-------------------------------------------------------------------------------------------------
*


My zip drive (100MB parallel, during the rebate problem period) got retired shortly after I got my first CD burner (an 8x8x24x for only $150!). 650MB for 50 cents vs. 100MB for $15 media is what killed it. If they IOMega had dropped the prices of Zip disks, I might have kept them for the convience of random read/write. I had to loan someone a Zip disk, if they even had a zip drive, where I could give someone a CDR, which is readable in nearly all PCs and Macs, without worry.

Now, I have a 512MB USB thumbdrive on my keychain, so read/write exchanges with other systems is trivial, and I don't even have to make a special effort to bring it along (where I had to for CDs and Zip disks).


Back to the topic at hand, can't you add the drive to fstab so the automounter knows what to do with it, or is that 2.6 kernels only?
Jon_J
I have 35 Zip disks and 4 of them are 750MB
I've only had one zip disk go bad, and it was almost 12 yrs old
So, I'll continue to use them for most of my data except for the really critical stuff until more disks go bad.
I always backup to CDR/DVD when I fill enough zip disks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.