Automounting USB mini drive
Steven W. Orr
steveo at syslang.net
Mon Aug 14 09:42:01 EDT 2006
On Monday, Aug 14th 2006 at 08:32 -0400, quoth Python:
=>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?
I'd like to see the answer to this also. As an ancilliary point...
The number of writes to a jump drive is large but not unlimited. It's A
Good Thing to add the noatime attribute to your fstab so that things like
an ls command, or anything that reads a file doesn't update the accesstime
for the file.
/dev/sdd2 /mnt/jump vfat noatime,noauto,user 0 0
BTW, there was a sale at uCenter this weekend. $16. That wasn't to make
you feel bad but just to point out how cheap it's really getting.
More information about the gnhlug-discuss
mailing list