View | Details | Raw Unified | Return to bug 173710
Collapse All | Expand All

(-)disks/chapter.xml (-1 / +41 lines)
Lines 940-949 Link Here
940
    </sect2>
940
    </sect2>
941
941
942
    <sect2>
942
    <sect2>
943
      <title>MTP storage</title>
944
      <para>Some modern smartphones, music players and cameras adopted
945
        &microsoft; protocol Media Transfer Protocol (MTP) as a way to
946
        share files through the USB connection. Such device can be
947
        identified by the presence of the USB interface with interface
948
        id equal to 0x5. MTP, contrary to USB mass storage, shares files
949
        and directories, not the media itself. MTP isn't as well supported
950
        as USB mass storage by operating systems.</para>
951
952
      <para><application>gphotofs</application> from the port
953
        <filename role="package">graphics/fusefs-gphotofs</filename> allows
954
        to mount MTP as a virtual <quote>fuse</quote> filesystem.
955
        Kernel module <filename>fuse.ko</filename>, which is part of
956
        <filename role="package">sysutils/fusefs-kmod</filename> port, should
957
        be loaded which can either be done from the command line:</para>
958
959
        <screen>&prompt.root; <userinput>kldload /usr/local/modules/fuse.ko</userinput></screen>
960
961
        <para>or, in order to make it persistent during reboots,
962
          by adding the appropriate line to the file
963
          <filename>/boot/loader.conf</filename>:</para>
964
965
        <programlisting>fuse_load="YES"</programlisting>
966
967
        <para>and another line to the file
968
          <filename>/etc/rc.conf</filename>:</para>
969
970
        <programlisting>fusefs_enable="YES"</programlisting>
971
972
        <para>Once fuse kernel module is loaded and MTP device
973
          is attached, run the command to mount it as a virtual
974
          file system:
975
976
        <screen>&prompt.root; <userinput>gphotofs /some/mount/point</userinput></screen>
977
978
        <para>This command leaves <application>gphotofs</application>
979
          running as a daemon to serve file system requests.</para>
980
    </sect2>
981
982
    <sect2>
943
      <title>Further Reading</title>
983
      <title>Further Reading</title>
944
984
945
      <para>Beside the <link linkend="disks-adding">Adding
985
      <para>Beside the <link linkend="disks-adding">Adding
946
	  Disks</link> and <link linkend="mount-unmount">Mounting and
986
	Disks</link> and <link linkend="mount-unmount">Mounting and
947
	Unmounting File Systems</link> sections, reading various
987
	Unmounting File Systems</link> sections, reading various
948
	manual pages may be also useful: &man.umass.4;,
988
	manual pages may be also useful: &man.umass.4;,
949
	&man.camcontrol.8;, and &man.usbconfig.8; under &os;&nbsp; 8.X
989
	&man.camcontrol.8;, and &man.usbconfig.8; under &os;&nbsp; 8.X

Return to bug 173710