![]() ![]() |
Jan 4 2005, 05:21 AM
Post
#1
|
|
|
Group: Members Posts: 44 Joined: 3-January 05 From: Austin, TX Member No.: 6,104 |
I tested this with C3000 (ROM 1.01 JP). Use a USB mini-A cable to connect C3000 with your USB mass-storage device.
[Procedures] 1) CODE cd /mnt mkdir usbhdd 2) Create a file /etc/hotplug/usb/usb-storage as follows. chmod it as 755. CODE #!/bin/sh . /etc/hotplug/hotplug.functions if [ ! -L /var/run/usb/%proc%bus%usb%* ]; then mesg Try to Mount mount /mnt/usbhdd if [ $? = 0 ]; then ln -s /etc/hotplug/usb/usb-storage.off $REMOVER mesg make REMOVER in $REMOVER fi fi 3) Create a file /etc/hotplug/usb/usb-storage.off as follows. chmod it as 755. CODE #!/bin/sh . /etc/hotplug/hotplug.functions mesg Removing /mnt/usbhdd umount /mnt/usbhdd rmmod usb-storage 4) Add the following one line to /etc/fstab CODE /dev/sda1 /mnt/usbhdd vfat noauto,umask=000,noatime,iocharset=utf8,codepage=932 0 0 5) Connect your USB mass-storage device, you should be able to see it at /mnt/usbmem in a second you pluged the device. This is also visible from Sharp's qtopia GUI File manager. |
|
|
|
Jan 4 2005, 08:48 AM
Post
#2
|
|
|
Group: Members Posts: 72 Joined: 6-December 04 Member No.: 5,785 |
hi DreamTheater
thx for your instructions but i cant get it running I followed the Procedure you described but nothing happens are you sure that the fstab line is correct? cuz first we create /mnt/usbhdd but then you talk about /mnt/usbmem ? but I tried both but none work for me (I use the same GoldX Cable) thx |
|
|
|
Jan 4 2005, 09:12 AM
Post
#3
|
|
|
Group: Members Posts: 44 Joined: 3-January 05 From: Austin, TX Member No.: 6,104 |
Oops sorry. just corrected.
|
|
|
|
Jan 6 2005, 04:52 PM
Post
#4
|
|
|
Group: Members Posts: 72 Joined: 6-December 04 Member No.: 5,785 |
had a typo in one of the files it now works great!
shame on sharp that they did not put that in by sock |
|
|
|
Jan 6 2005, 07:01 PM
Post
#5
|
|
|
Group: Members Posts: 26 Joined: 8-April 04 Member No.: 2,743 |
sorry if I am a little off topic but can the C3000 USB port provide enough power to power a small 1.8" unpowered hard drive ? like the 6000 does for the (quite "cheap") 1.8" archos unpowered drives ? has anybody tried that ?
(I suppose it should if it has same specs as the 6000 USB port as everybody says but I'd like to be sure of that (sorry if my english is not so good btw) |
|
|
|
Jan 8 2005, 12:03 AM
Post
#6
|
|
|
Group: Members Posts: 44 Joined: 3-January 05 From: Austin, TX Member No.: 6,104 |
I once tried my friend's 2.5inch bus-power type hard drive, but my C3000 couldn't power it. I am not sure how much current we can draw from C3000 USB host. It could be smaller than that of 6000, because C3000's USB host functionality is inside Intel PXA270 chip.
It looks like Archos bus-powered 1.8 inch hard drive is using Hitachi's drive which typically requires 200 - 300 mA, where typical 2.5 inch drive requires 500mA range. The other option is to use MP3 player type hard drives or to use battery powered USB hub. http://www.cyberpowersystems.com/hub420mp.htm This can be found at BestBuy. |
|
|
|
Jan 15 2005, 09:53 AM
Post
#7
|
|
|
Group: Members Posts: 82 Joined: 17-November 04 Member No.: 5,501 |
I followed the scripts as-written. However, they do not work. The FSTAB line works correctly, as I can mount and umount a USB key and a camera. All files have /mnt/usbstorage instead of /mnt/usbhdd ; either way, the auto-mount doesn't work.
I cannot mount, however, an iPod, period. It is FAT32 formatted. Any advice for either problem would be greatly appreciated. |
|
|
|
Jan 15 2005, 03:35 PM
Post
#8
|
|
|
Group: Members Posts: 18 Joined: 6-January 05 Member No.: 6,132 |
What have you tried to mount an iPod?
Does this offer any help? http://people.csail.mit.edu/people/adonovan/hacks/ipod.html Why not? |
|
|
|
Jan 15 2005, 04:51 PM
Post
#9
|
|
|
Group: Members Posts: 44 Joined: 3-January 05 From: Austin, TX Member No.: 6,104 |
spartan,
Those scripts above are only for automatic mount/umount. Device driver should be loaded automatically without those scripts. So, when you plug in your iPod, try lsmod command to see if usb-storage module is really loaded. If it doesn't show usb-storage, it means iPod is not Linux usb-storage compliant. Sorry, I don't have iPod myself, so don't know the detail. If you can see usb-storage, then try the below to see what it shows. Note that Linux treats USB mass storage as SCSI device. CODE # fdisk -l /dev/sda If you can see the disk, then you may be able to manually mount it. CODE mount -t vfat -o umask=000,noatime,iocharset=utf8,codepage=932 /dev/sda1 /mnt/usbhdd
|
|
|
|
Jan 16 2005, 10:55 AM
Post
#10
|
|
|
Group: Members Posts: 82 Joined: 17-November 04 Member No.: 5,501 |
Thanks a lot for the help and links. Evidently, the partition the iPod actually uses for data is partition 2. In turn, via telnet:
CODE bash-2.05# /sbin/lsmod Module Size Used by usb-storage 103328 0 (unused) usb_ohci_pxa27x 21696 0 (unused) usbcore 63264 1 [usb-storage usb_ohci_pxa27x] pxa_bi 24912 0 (unused) storage_fd 100336 0 (unused) usbdcore 35504 0 [pxa_bi storage_fd] usbdmonitor 5488 0 usb-monitor 6496 0 sharp_mmcsd_m 41008 1 prism2_cs 69584 1 p80211 18864 1 [prism2_cs] bash-2.05# /sbin/fdisk -l /dev/sda Disk /dev/sda: 15.0 GB, 15000330240 bytes 255 heads, 63 sectors/track, 1823 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 5 40131 0 Empty /dev/sda2 * 6 1823 14603085 b Win95 FAT32 /dev/sda3 1 1 0 0 Empty Partition 3 does not end on cylinder boundary. bash-2.05# mount -t vfat -o umask=000,noatime,iocharset=utf8,codepage=932 /dev/sda2 /mnt/usbstorage bash-2.05# Everything works fine. Thanks again. Now I can use it as a portable video player... |
|
|
|
Jan 20 2005, 09:22 AM
Post
#11
|
|
|
Group: Members Posts: 20 Joined: 22-December 04 Member No.: 5,997 |
I have two following problems with mounting SL-C3000 as a USB mass storage.
1) When I plug the cable into the Zaurus, "AlertUSBStarage" warning window is displayed. Then I have to click on "Yes" and "AlertUSBStorageConnection" warning is displayed. I click on "OK" and remove the cable. Than I plug the cable in again and Zaurus display "Comunicating..." screen and it is OK. But everytime I have to go through two warning windows and "plug in -> remove -> plug in cable again" way. 2) Sometimes is zaurus mounted as read-only. Well, it is not exactly mounted as read-only, mount command shows rw, but it is impossible to write to mounted Zaurus. I am not able to predicate when I could write to Zaurus and when not. And when Zaurus in "writable", Midnight Commander says "it is impossible to change file permissions" after every file. One note for Fedora users. Zaurus is mounted as /dev/sda on my FC1 box. |
|
|
|
Feb 7 2005, 11:02 AM
Post
#12
|
|
|
Group: Members Posts: 65 Joined: 23-February 04 From: Santa Rosa Member No.: 1,997 |
Thanks much, DreamTheater, works like a charm. Now I just need to get my USB HD Enclosure with a built-in battery. ;-)
|
|
|
|
Feb 9 2005, 10:18 AM
Post
#13
|
|
|
Group: Members Posts: 65 Joined: 23-February 04 From: Santa Rosa Member No.: 1,997 |
Hmmm, one caveat, though. The Music player won't see my USB drive. Everything else sees it (even the Movie player sees it!), but the Music player won't. Any ideas?
See my other post |
|
|
|
Feb 16 2005, 01:26 PM
Post
#14
|
|
|
Group: Members Posts: 65 Joined: 23-February 04 From: Santa Rosa Member No.: 1,997 |
Quick update, symlinking the USB HD mount point to /mnt/card causes the Music Player to say an SD Card is inserted (which is actually the USB HD). All of the other apps still say "Storage /dev/sda1".
|
|
|
|
Jun 13 2005, 08:12 PM
Post
#15
|
|
|
Group: Members Posts: 113 Joined: 27-April 05 Member No.: 7,011 |
sorry to sound like such a n00b here (i'm used to Linux desktop systems, which readily give you root access, and let you actually see the filesystem)
How do i save to directories other than /home/[whatever name it has]/ ... that seems to be the only thing that the Z recognizes,,, when i "cd" in the bash prompt, the prom[t remains the same, not indicating the new directory... what am i doing wrong? <<edit>> Tree!Explorer -- anyway... could i motify this for USB thumdrives for every time it says "usbhdd", replace it with "usbstorage"... that's what thumbdrives are mounted to i think |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 04:36 AM |