Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Sep 2015 18:45:05 -0400
From:      Stari Karp <starikarp@yandex.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   usb reader card mount
Message-ID:  <1441147505.8153.6.camel@yandex.com>

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

My system FreeBSD 10.2-RELEASE (GENERIC/amd64) and GNOME 3.16 started
with GDM.

On previous version of GNOME 3.14 I didn't have a problem with
automounting USB card reader but now on 3.16 I have problem just with
unmount. I got a message:
Cannot umount volume
Cannot umont volume "BLA BLA' cannot remove directory. But it is
unmounted but empty directory is there still.
In /var/log/messages I have:

Aug 30 14:09:45 starikarp kernel: ugen3.5: <Generic> at usbus3
Aug 30 14:09:45 starikarp kernel: umass2: <Generic Mass Storage Device,
class 0/0,
rev 2.00/1.00, addr 5> on usbus3
Aug 30 14:09:45 starikarp kernel: umass2:  SCSI over Bulk-Only; quirks
= 0xc100
Aug 30 14:09:45 starikarp kernel: umass2:5:2:-1: Attached to scbus5
Aug 30 14:09:45 starikarp kernel: da1 at umass-sim2 bus 2 scbus5 target
0 lun 0
Aug 30 14:09:45 starikarp kernel: da1: <Generic USB  SD Reader 0.00>
Removable Dire
ct Access SCSI-2 device
Aug 30 14:09:45 starikarp kernel: da1: Serial Number 00000000000006
Aug 30 14:09:45 starikarp kernel: da1: 40.000MB/s transfers
Aug 30 14:09:45 starikarp kernel: da1: 1938MB (3970048 512 byte
sectors: 255H 63S/T
 247C)
Aug 30 14:09:45 starikarp kernel: da1: quirks=0x2<NO_6_BYTE>
Aug 30 14:10:52 starikarp kernel: ugen3.5: <Generic> at usbus3
(disconnected)
Aug 30 14:10:52 starikarp kernel: umass2: at uhub5, port 4, addr 5
(disconnected)
Aug 30 14:10:52 starikarp kernel: da1 at umass-sim2 bus 2 scbus5 target
0 lun 0
Aug 30 14:10:52 starikarp kernel: da1: <Generic USB  SD Reader 0.00>
s/n 0000000000
0006 detached
Aug 30 14:10:52 starikarp kernel: (da1:umass-sim2:2:0:0): Periph 
destroyed

On 3.14 version I didn't have anything in
/usr/local/etc/PolicyKit/Policykit.conf but now on version 3.16 I put:

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration
1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">;;

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
        <match action="org.freedesktop.hal.storage.mount-removable">
            <return result="yes"/>
        </match>
        <match action="org.freedesktop.hal.storage.mount-fixed">
            <return result="yes"/>
        </match>
        <match user="root|ajtim">
            <return result="yes"/>
        </match>
        <define_admin_auth group="wheel"/>
</config>

Manual mount/unmount works.

Thank you.

Stari Karp



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