<p dir="ltr">On Oct 16, 2015 2:26 PM, "Jerry Vonau" <<a href="mailto:me@jvonau.ca">me@jvonau.ca</a>> wrote:<br>
><br>
> I believe it's broken on Fedora 21+ and CentOS-7,</p>
<p dir="ltr">Ominous :)</p>
<p dir="ltr">> I'm investigating but<br>
> have other more pressing matters to deal with.<br>
><br>
> Jerry<br>
><br>
> > On October 16, 2015 at 12:44 PM Tony Anderson <<a href="mailto:tony_anderson@usa.net">tony_anderson@usa.net</a>><br>
> > wrote:<br>
> ><br>
> ><br>
> > In my experience, XS and XSCE, usbmount automounts removable drives in<br>
> > /media/usb0, /media/usb1, ... In that process, it calls scripts included<br>
> > in /etc/usbmount/mount.d. The usb-drive-label is not used.<br>
> ><br>
> > Obviously this could change in later releases of CentOS (and is probably<br>
> > different in Fedora).<br>
> ><br>
> > Tony<br>
> ><br>
> > On 10/16/2015 12:27 PM, Anish Mangal wrote:<br>
> > > If running in graphical.target, the USB drives are supposedly<br>
> > > automounted in /var/run/media/<user>/<usb-drive-label>. Perhaps that<br>
> > > could be a direction to look into?<br>
> > ><br>
> > > On Fri, Oct 16, 2015 at 7:40 PM, Tim Moody <<a href="mailto:tim@timmoody.com">tim@timmoody.com</a><br>
> > > <mailto:<a href="mailto:tim@timmoody.com">tim@timmoody.com</a>>> wrote:<br>
> > ><br>
> > > found docs, but<br>
> > ><br>
> > > on my fedora 22 nuc usb does not automount even though found and<br>
> > > usbmount is enabled and configured for vfat file system<br>
> > ><br>
> > > when I remove, even after umount I get unable to read boot sector<br>
> > > to mark fs as dirty<br>
> > ><br>
> > > I have tried two drives and both exhibit the same behavior even<br>
> > > though both mount on win7 and automount on f20 (albeit with a<br>
> > > complaint about the dirty bit)<br>
> > ><br>
> > > dmesg:<br>
> > ><br>
> > > [73452.564128] usb 1-1: new high-speed USB device number 5 using<br>
> > > xhci_hcd<br>
> > ><br>
> > > [73452.738388] usb 1-1: New USB device found, idVendor=13fe,<br>
> > > idProduct=1f00<br>
> > ><br>
> > > [73452.738391] usb 1-1: New USB device strings: Mfr=1, Product=2,<br>
> > > SerialNumber=3<br>
> > ><br>
> > > [73452.738393] usb 1-1: Product: DataTraveler 2.0<br>
> > ><br>
> > > [73452.738395] usb 1-1: Manufacturer: Kingston<br>
> > ><br>
> > > [73452.738396] usb 1-1: SerialNumber: 5B87010000CD<br>
> > ><br>
> > > [73452.738733] usb-storage 1-1:1.0: USB Mass Storage device<br>
> > > detected<br>
> > ><br>
> > > [73452.738846] scsi host3: usb-storage 1-1:1.0<br>
> > ><br>
> > > [73453.741857] scsi 3:0:0:0: Direct-Access Kingston<br>
> > > DataTraveler 2.0 PMAP PQ: 0 ANSI: 0 CCS<br>
> > ><br>
> > > [73453.742213] sd 3:0:0:0: Attached scsi generic sg1 type 0<br>
> > ><br>
> > > [73454.727127] sd 3:0:0:0: [sdb] 15646720 512-byte logical blocks:<br>
> > > (8.01 GB/7.46 GiB)<br>
> > ><br>
> > > [73454.727291] sd 3:0:0:0: [sdb] Write Protect is off<br>
> > ><br>
> > > [73454.727295] sd 3:0:0:0: [sdb] Mode Sense: 23 00 00 00<br>
> > ><br>
> > > [73454.727417] sd 3:0:0:0: [sdb] No Caching mode page found<br>
> > ><br>
> > > [73454.727443] sd 3:0:0:0: [sdb] Assuming drive cache: write<br>
> > > through<br>
> > ><br>
> > > [73454.728871] sdb: sdb1<br>
> > ><br>
> > > [73454.729614] sd 3:0:0:0: [sdb] Attached SCSI removable disk<br>
> > ><br>
> > > /etc/usbmount/usbmount.conf<br>
> > ><br>
> > > # Configuration file for the usbmount package, which mounts<br>
> > > removable<br>
> > ><br>
> > > # storage devices when they are plugged in and unmounts them when<br>
> > > they<br>
> > ><br>
> > > # are removed.<br>
> > ><br>
> > > # Change to zero to disable usbmount<br>
> > ><br>
> > > ENABLED=1<br>
> > ><br>
> > > # Mountpoints: These directories are eligible as mointpoints for<br>
> > ><br>
> > > # removable storage devices. A newly plugged in device is mounted<br>
> > > on<br>
> > ><br>
> > > # the first directory in this list that exists and on which nothing<br>
> > > is<br>
> > ><br>
> > > # mounted yet.<br>
> > ><br>
> > > MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3<br>
> > ><br>
> > > /media/usb4 /media/usb5 /media/usb6 /media/usb7"<br>
> > ><br>
> > > # Filesystem types: removable storage devices are only mounted if<br>
> > > they<br>
> > ><br>
> > > # contain a filesystem type which is in this list.<br>
> > ><br>
> > > FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus"<br>
> > ><br>
> > ><br>
> > > #############################################################################<br>
> > ><br>
> > > # WARNING! #<br>
> > ><br>
> > > # #<br>
> > ><br>
> > > # The "sync" option may not be a good choice to use with flash<br>
> > > drives, as #<br>
> > ><br>
> > > # it forces a greater amount of writing operating on the drive.<br>
> > > This makes #<br>
> > ><br>
> > > # the writing speed considerably lower and also leads to a faster<br>
> > > wear out #<br>
> > ><br>
> > > # of the disk. #<br>
> > ><br>
> > > # #<br>
> > ><br>
> > > # If you omit it, don't forget to use the command "sync" to<br>
> > > synchronize the #<br>
> > ><br>
> > > # data on your disk before removing the drive or you may<br>
> > > experience data #<br>
> > ><br>
> > > # loss. #<br>
> > ><br>
> > > # #<br>
> > ><br>
> > > # It is highly recommended that you use the pumount command (as a<br>
> > > regular #<br>
> > ><br>
> > > # user) before unplugging the device. It makes calling the "sync"<br>
> > > command #<br>
> > ><br>
> > > # and mounting with the sync option unnecessary---this is similar<br>
> > > to other #<br>
> > ><br>
> > > # operating system's "safely disconnect the device"<br>
> > > option. #<br>
> > ><br>
> > ><br>
> > > #############################################################################<br>
> > ><br>
> > > # Mount options: Options passed to the mount command with the -o<br>
> > > flag.<br>
> > ><br>
> > > # See the warning above regarding removing "sync" from the options.<br>
> > ><br>
> > > MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime"<br>
> > ><br>
> > > # Filesystem type specific mount options: This variable contains a<br>
> > > space<br>
> > ><br>
> > > # separated list of strings, each which the form<br>
> > > "-fstype=TYPE,OPTIONS".<br>
> > ><br>
> > > #<br>
> > ><br>
> > > # If a filesystem with a type listed here is mounted, the<br>
> > > corresponding<br>
> > ><br>
> > > # options are appended to those specificed in the MOUNTOPTIONS<br>
> > > variable.<br>
> > ><br>
> > > #<br>
> > ><br>
> > > # For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117"<br>
> > > would add<br>
> > ><br>
> > > # the options "gid=floppy,dmask=0007,fmask=0117" when a vfat<br>
> > > filesystem<br>
> > ><br>
> > > # is mounted.<br>
> > ><br>
> > > FS_MOUNTOPTIONS=""<br>
> > ><br>
> > > # If set to "yes", more information will be logged via the syslog<br>
> > ><br>
> > > # facility.<br>
> > ><br>
> > > VERBOSE=no<br>
> > ><br>
> > > If I mount manually I get<br>
> > ><br>
> > > /dev/sdb1 on /media/usb0 type vfat<br>
> > ><br>
> > > (rw,relatime,sync,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)<br>
> > ><br>
> > > *From:*<a href="mailto:xsce-devel@googlegroups.com">xsce-devel@googlegroups.com</a><br>
> > > <mailto:<a href="mailto:xsce-devel@googlegroups.com">xsce-devel@googlegroups.com</a>><br>
> > > [mailto:<a href="mailto:xsce-devel@googlegroups.com">xsce-devel@googlegroups.com</a><br>
> > > <mailto:<a href="mailto:xsce-devel@googlegroups.com">xsce-devel@googlegroups.com</a>>] *On Behalf Of *Adam Holt<br>
> > > *Sent:* Friday, October 16, 2015 8:43 AM<br>
> > > *To:* server-devel <<a href="mailto:server-devel@lists.laptop.org">server-devel@lists.laptop.org</a><br>
> > > <mailto:<a href="mailto:server-devel@lists.laptop.org">server-devel@lists.laptop.org</a>>>; xsce-devel<br>
> > > <<a href="mailto:xsce-devel@googlegroups.com">xsce-devel@googlegroups.com</a> <mailto:<a href="mailto:xsce-devel@googlegroups.com">xsce-devel@googlegroups.com</a>>><br>
> > > *Subject:* [XSCE] can usbmount auto-mount USB drives?<br>
> > ><br>
> > > What's the best way to arrange for a teacher's USB drive to be<br>
> > > auto-mounted, so that her/his content is "instantly" displayed on<br>
> > > a school server during that hour's lesson, completely hassle-free?<br>
> > ><br>
> > > <timm> ok, I give up. how do I substitute a process to run when a<br>
> > > usb drive gets mounted, presumably with usbmount?<br>
> > > <timm> am I modifying /etc/usbmount/mount.d/01_create_label_symlink<br>
> > > <timm> or creating an 02_...<br>
> > ><br>
> > > (Excerpt from #schoolserver on <a href="http://webchat.freenode.net">http://webchat.freenode.net</a>)<br>
> > ><br>
> > ><br>
> > ><br>
> ><br>
</p>