Download Print this page

Sharp Zaurus SL-C3000 Instruction Manual page 59

Zaurus pda instruction manual
Hide thumbs Also See for Zaurus SL-C3000:

Advertisement

my Zaurus SL-C3000 and SL-C3100
fi
# chmod 755 /etc/hotplug/usb/usb-storage
# vi /etc/hotplug/usb/usb-storage.off
#!/bin/sh
. /etc/hotplug/hotplug.functions
mesg Removing /mnt/usbstorage
rm /home/samba/USB_Storage
umount /mnt/usbstorage
# chmod 755 /etc/hotplug/usb/usb-storage.off
# echo "/dev/sda1 /mnt/usbstorage vfat noauto,umask=000,
noatime,iocharset=utf8,codepage=932 0 0" >> /etc/fstab
Hint: Once a USB disk is mounted, it will appear in the Files tab as well. In addition, creating a link
to the mounted drive from /home/samba will allow it to be shared as well through Samba. In
general, most devices such as memory sticks, cameras, mp3 players and usb harddrives have their
disk partitioned as a primary partition and can be found at /dev/sda1. However, if you have
partitioned your disk as an extended partition, then it most likely would be /dev/sda5. Do a fdisk -l
/dev/sda as root to check and change the above accordingly.
In addition, if you are using a USB Hub, then you will be able to attach and mount multiple devices,
usually up to four disks. In such a case, the devices will be /dev/sda, /dev/sdb, /dev/sdc and
/dev/sdd. I have created a more advanced script which can automatically mount up to four usb
disks and also automount disks partitioned as primary or extended partitions. Place this
into /etc/hotplug/usb and remove usb-storage.off if there already is one (it will generate a new
one). The script will also create mount points under /mnt and update /etc/fstab as required.
Alternatively, you can simply install [ automounter-c3000_0.5.0_arm.ipk].
In addition to external harddisk enclosures with USB interfaces and memory sticks, most MP3
players, cameras and some mobile phones also have an internal storage that can be mounted on
the Zaurus if they have a USB interface. Most of those devices will be recognised by the Zaurus as a
Mass Storage device by default, however, some newer devices are not on the Zaurus' device list
and you will need to update it to let the Zaurus know about the new device (see SonyEricsson
section for an example).
The automounter script only automatically mounts the first mountable partition. If you have
multiple partitions, then you will need to manually mount the remaining partitions or modify the
automounter script to also mount the remaining partitions.
The C3000 and C3100 can also read NTFS formatted USB disks. You will need to copy ntfs.o to
/lib/modules/2.4.20/kernel/fs/ntfsfs/ or install [ ntfs-zaurus_2.4.20_arm.ipk].
A useful applet that I wrote [qtopia-usbapplet_1.0.3_arm.ipk] can be used to unmount the USB
disks prior to unplugging them without needing to go to the command line.
Mounting SD and CF cards
The SD and CF cards are automatically mounted when they are inserted. In addition to mounting
and unmounting them, additional hooks and controls can be added to the scripts such as invoking
59 of 212
if [ $? = 0 ]; then
ln -s /mnt/usbstorage /home/samba/USB_Storage
ln -s /etc/hotplug/usb/usb-storage.off $REMOVER
mesg make REMOVER in $REMOVER
fi
http://www.users.on.net/~hluc/myzaurus/
usb-storage
16/09/2007 12:23

Advertisement

loading

This manual is also suitable for:

Zaurus sl-c3100