OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: bubak on March 08, 2007, 07:50:19 am
-
Hi,
usually (99%) i use linux and i want my zaurus to be accesible as a network device (ie. etherent-over-usb, using kernel zaurus module).
sometimes (1%) i am forced to connect my zaurus to a windows machine, typically i just want some data to be copied from/to zaurus -- because windows do not know without additional drivers how to use etheret-over-usb, i would like to use zaurus as a mass storage device.
When i use System Tools -> USB and i choose Storage, i have several options to choose from (SD Card and CF card). Once i choose, i plug in USB cable and i see zaurus as USB mass storage. I have only one memory card -- 1GB Kingston SD card.
So far, no problems. Now the questions:
1. Why i can choose only from SD or CF card, why cant i choose the harddrive? (i know i formatted the drive with ext2 fs, so this is only option if i connect my zaurus to a linux comp)
2. The mass storage device is mounted read-only (no matter how i set up the 'lock' on my SD card). Why is that? Am i doing anything wrong?
Thanks in advance. Martin
-
1. Why i can choose only from SD or CF card, why cant i choose the harddrive? (i know i formatted the drive with ext2 fs, so this is only option if i connect my zaurus to a linux comp)
The choice of SD and CF are hardcoded in /usr/bin/usbfunction.py, as are the partitions that you're allowed to select. If you know a bit of python you can fairly easily modify it to allow sharing the microdrive.
2. The mass storage device is mounted read-only (no matter how i set up the 'lock' on my SD card). Why is that? Am i doing anything wrong?
No idea. It works for me (ie both SD and CF mounts as r/w).
-
ad /usr/bin/usbfunction.py => ok, thanks, i was looking at that script before, as well as on some other scripts in /etc/hotplug, etc/sdcontrol and such, but i was afraid of changing something -- but not anymore :-)
ad SD card mounted ro => maybe i was not clear enough -- tha card itself is mounted rw under /mnt/card (which is fine) and i can access it from zaurus with no problems. _But_ once i choose this card to be exported via "Storage" option in System Tools -> USB, and i connect to Linux machine, i get the access to that card, but the dmesg says:
[ 5196.949841] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.004920] sde: Write Protect is on
[ 5197.004925] sde: Mode Sense: 43 00 80 00
[ 5197.004927] sde: assuming drive cache: write through
[ 5197.120847] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.140847] sde: Write Protect is on
[ 5197.140850] sde: Mode Sense: 43 00 80 00
[ 5197.140852] sde: assuming drive cache: write through
[ 5197.140855] sde:
[ 5197.161886] sd 6:0:0:3: Attached scsi removable disk sde
[ 5197.181841] scsi 6:0:0:4: Direct-Access Sharp SL-C1000 1.00 PQ: 0 ANSI: 0 CCS
note the line
[ 5197.004920] sde: Write Protect is on
on zaurus, the card is mounted rw, exported via usb storage engine it gets somehow changed into ro
-
on zaurus, the card is mounted rw, exported via usb storage engine it gets somehow changed into ro
I understood you correctly the first time Like I said windoze mounts both my SD and CF as r/w, so sorry, can't help you there
-
I was going to suggest buying a CF ethernet card, but it appears that these are difficult to find. The only one I found after a quick search was also surprisingly expensive.
My Kingston CIO10T has served me extremely well since I was on the Palm platform, and even better on the Zaurus. It's a darned shame that these things are now nowhere to be found.
-
StreamlineCPUs has the Socket CF ethernet card.
I don't remember how much it cost, I'll dig through my reciepts and post back.
EDIT: According to my reciept from StreamlineCPUs, this card cost $99.99
Sorry, I couldn't do better than that, but StreamlineCPUs is the only Zaurus related vendor I shop at.
-
ad /usr/bin/usbfunction.py => ok, thanks, i was looking at that script before, as well as on some other scripts in /etc/hotplug, etc/sdcontrol and such, but i was afraid of changing something -- but not anymore :-)
ad SD card mounted ro => maybe i was not clear enough -- tha card itself is mounted rw under /mnt/card (which is fine) and i can access it from zaurus with no problems. _But_ once i choose this card to be exported via "Storage" option in System Tools -> USB, and i connect to Linux machine, i get the access to that card, but the dmesg says:
[ 5196.949841] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.004920] sde: Write Protect is on
[ 5197.004925] sde: Mode Sense: 43 00 80 00
[ 5197.004927] sde: assuming drive cache: write through
[ 5197.120847] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.140847] sde: Write Protect is on
[ 5197.140850] sde: Mode Sense: 43 00 80 00
[ 5197.140852] sde: assuming drive cache: write through
[ 5197.140855] sde:
[ 5197.161886] sd 6:0:0:3: Attached scsi removable disk sde
[ 5197.181841] scsi 6:0:0:4: Direct-Access Sharp SL-C1000 1.00 PQ: 0 ANSI: 0 CCS
note the line
[ 5197.004920] sde: Write Protect is on
on zaurus, the card is mounted rw, exported via usb storage engine it gets somehow changed into ro
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155766\"][{POST_SNAPBACK}][/a][/div]
have you tried unmounting the SD on your Zaurus before you plug it into your linux pc?
also, are you using the mmc driver that comes with beta3 or are you using the sharp sd driver?
-
have you tried unmounting the SD on your Zaurus before you plug it into your linux pc?
well, i dont see the point, but i tried it now. i managed the card to be mounted to allow anyone to write (skript /etc/sdcontrol, variable FATOPTS="-o umask 000"), but still no change
also, are you using the mmc driver that comes with beta3 or are you using the sharp sd driver?
as far as i can guess, it's the mmc driver -- lsmod shows mmc is loaded and card is mounted as
/dev/mmcda1 on /mnt/card type vfat (rw)
-
Did anybody get the zaurus recognized as a mass usb storage device in the 2.6 kernel series yet?