DA-710 Series Linux
Software Configuration
2-11
Inserting a USB Storage Device into the
Computer
Since mounting USB storage devices manually can be difficult, a Debian package named
usbmount
to mount
the USB drivers automatically.
usbmount
relies on
udev
to mount USB storage devices automatically at
certain mount points. The USB storage devices will be mounted on
/media/usb0, /media/usb1
, etc.
MOXA:~# mount
/dev/hda1 on / type ext2 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hdb2 on /home type ext2 (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sda1 on /media/usb0 type vfat
(rw,noexec,nodev,sync,noatime,gid=25,dmask=0007,fmask=0117)
/dev/sdb1 on /media/usb1 type vfat
(rw,noexec,nodev,sync,noatime,gid=25,dmask=0007,fmask=0117)
MOXA:~#
ATTENTION
Remember to type the command
# sync
before you disconnect the USB storage device. If you do not issue the
command, you may lose data.
ATTENTION
Remember to exit the
/media/usb0 or /media/usb1
directory when you disconnect the USB storage
device. If you stay in
/media/usb0 or /media/usb1
, the automatic un-mount process will fail. If that
happens, type
# umount /media/usb0
to un-mount the USB device manually.