Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2017 11:23:35 -0400
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        freebsd-questions@freebsd.org
Subject:   USB flash memory keys on FreeBSD-11
Message-ID:  <d76e530fff1ebfd4920ddea1955a012c.squirrel@webmail.harte-lyne.ca>

next in thread | raw e-mail | index | archive | help

I seem to have lost the ability to automatically mount usb flash
memory sticks on my desktop.  When I place a stick into a usb port the
usb drive shows up in the Nautilus viewer and the following is logged
in
/var/log/messages:

Sep 26 10:04:14 vhost04 kernel: ugen3.2: <Kingston> at usbus3
Sep 26 10:04:14 vhost04 kernel: umass0: <Kingston DataTraveler 2.0,
class 0/0, rev 2.00/1.00, addr 2> on usbus3
Sep 26 10:04:14 vhost04 kernel: umass0:  SCSI over Bulk-Only; quirks =
0x8100
Sep 26 10:04:14 vhost04 kernel: umass0:5:0: Attached to scbus5
Sep 26 10:04:14 vhost04 kernel: da0 at umass-sim0 bus 0 scbus5 target
0 lun 0
Sep 26 10:04:14 vhost04 kernel: da0: <Kingston DataTraveler 2.0 PMAP>
Removable Direct Access SPC-2 SCSI device
Sep 26 10:04:14 vhost04 kernel: da0: Serial Number
50E549C20210BF10A9BC4174
Sep 26 10:04:14 vhost04 kernel: da0: 40.000MB/s transfers
Sep 26 10:04:14 vhost04 kernel: da0: 60017MB (122915328 512 byte
sectors) Sep 26 10:04:14 vhost04 kernel: da0:
quirks=0x3<NO_SYNC_CACHE,NO_6_BYTE>


This is what dmesg shows:

ugen3.2: <Kingston> at usbus3
umass0: <Kingston DataTraveler 2.0, class 0/0, rev 2.00/1.00, addr 2>
on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:5:0: Attached to scbus5
da0 at umass-sim0 bus 0 scbus5 target 0 lun 0
da0: <Kingston DataTraveler 2.0 PMAP> Removable Direct Access SPC-2
SCSI device
da0: Serial Number 50E549C20210BF10A9BC4174
da0: 40.000MB/s transfers
da0: 60017MB (122915328 512 byte sectors)
da0: quirks=0x3<NO_SYNC_CACHE,NO_6_BYTE>


But /media is empty:

# ls -al /media
total 9
drwxr-xr-x   2 root  wheel   2 Sep 22 12:13 .
drwxr-xr-x  18 root  wheel  24 Sep 23 08:41 ..

Attempts to mount the drive from the nautilus window of my
non-privileged user account fail.

I can however mount the drive manually and Nautilus then sees the
contents:

# mkdir /media/usbkey
# mount -t msdosfs /dev/da0s1 /media/usbkey
# ll /media/usbkey/
total 112
drwxr-xr-x  1 root  wheel  16384 Jun 17  2016 .Spotlight-V100/
drwxr-xr-x  1 root  wheel  16384 Jun 17  2016 .Trashes/
-rwxr-xr-x  1 root  wheel   4096 Jun 17  2016 ._.Trashes*
drwxr-xr-x  1 root  wheel  16384 Jun 17  2016 .fseventsd/
drwxr-xr-x  1 root  wheel  16384 Mar 23  2017 System Volume
Information/ drwxr-xr-x  1 root  wheel  16384 Jul  5 08:24 vhost04/
drwxr-xr-x  1 root  wheel  16384 Jul  5 08:23 xnet241/

How do I get the former 'auto detect and mount' function to work again?


-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d76e530fff1ebfd4920ddea1955a012c.squirrel>