Automounting USB mini drive

Python python at venix.com
Mon Aug 14 08:34:00 EDT 2006


I bought a Memorex mini travel drive with 1 GB (on sale at BestBuy for
$30).  I plugged it into my fc5 laptop and it auto-mounted as:
	/media/TravelDrive

I saw it had some pre-installed stuff (U3), so I saved an image of the device
	dd if=/dev/sda of=usbmini.img

Then I deleted the fat16 partition and created an ext2 partition.  This
worked OK, BUT the usb device no longer auto-mounted.  I restored the
image recreating the original partition and simply reformatted the
partition to ext2 and labeled the partition.  It now auto-mounts to
	/media/gb	(the ext2 label)
but it will not auto unmount.  Since I'm not using any Windows
computers, I'd just as soon have a Linux oriented file system to
minimize unexpected behavior.  Also FAT16 is pretty inefficient in
handling file space for lots of little files - which is my most likely
usage pattern.

The original partition is flagged: boot + LBA.  The volume-label for the
FAT16 file system is TravelDrive.  I think that 
	/etc/udev/rules.d/50-udev.rules
is the key file for controlling auto-mounts, but I could not figure out
how to tie its rules back to the partition/file system info.

Can any one point me to the references for how this stuff should work?

-- 
Lloyd Kvam
Venix Corp




More information about the gnhlug-discuss mailing list