For newbies like me. First, plug in the drive and figure out the drive name with this command:
It shows a kind of log file, near the end look for something like this:
[ 4.346919] sd 7:0:0:0: [sdc] Attached SCSI removable disk
sdc is the drive name ('c' implies the third drive after 'a' and 'b'). Assuming one partition, the partition name is sdc1. Now determine your login user id and group id:
You're looking for a line like this where 'dbarthel' is my login id:
In this case '1000' is my user id and 100 is my group id. Now create a dummy directory onto which you'll graft the drive's directories:
sudo mkdir /mnt/usb
You only have to do this once in the machine's lifetime. Then mount the drive:
sudo mount -t vfat /dev/sdc1 /mnt/usb -o uid=1000,gid=100
'-t vfat' is the FAT32 filesystem type.
'/dev/sdc1' is the device partition ('sdc' comes from dmesg).
'/mnt/usb' is the part of the directory tree to graft the drive onto.
'-o uid=1000,gid=100' is who owns the files on the drive since FAT32 is dumb [or flexible! (comes from cat /etc/passwd)]
I'm lazy so I haven't figured out how to automount the drive when inserted (something to do with the /etc/fstab). Its easy to be lazy when you can ctrl-R on a bash command line then type 'mount' to arrow up through prior mount commands, even across logins.
First, I think this information might be better placed in the wiki somewhere.
Secondly, for your automounting needs, theres many threads about it. Just search the forum and wiki.