Thu, 10 Aug 2006

Mounting USB devices

lsmod to see what is loaded.  You potentially need:
	usb-storage
	usbcore
	scsi_mod
	sd_mod
	usb-uhci
	input
	sr_mod

If using Debian, apt-get install sg3-utils and then use:

	sg_scan -i		// to see scsi type devices
	sg_map			// to see device associations

Mount the drive found (should be a SCSI drive):

	mount -t vfat   /dev/sdc1   /home/kevin/mnt/usbdevice

Alternatively, make an /etc/fstab entry:

	/dev/sdc1   /home/kevin/mnt/usbdevice  vfat  noauto,user 0 0

Diagnose by checking:

	/var/log/messages
	/var/log/syslog
	/proc/bus/usb		// shows what's been seen
	/proc/scsi/scsi		// to see what scsi devices are there

Notes:  Like any other hard drive, you can use other commands
on your mounted USB storage device:

	fdisk /dev/sdc1			// play with partitions
	mkfs -t vfat /dev/sdc1		// format the partition(s) in FAT
	mkfs -t ext3 /dev/sdc1		// format in Linux ext3 but not a good
					// idea for digital camera disks

Posted at: 21:36 | category: /configure | Comments ()