Changeset 084c251


Ignore:
Timestamp:
11/17/2021 03:39:45 AM (2 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
6fa16a5
Parents:
7fa5ff6
Message:

resurrect ntfs-3g, and mention the new in-kernel NTFS impl

The tools (like mkfs.ntfs) is still useful, and one may be puzzled if he
uses:

mount /dev/sdb1 /mnt

Then mount will find out that /dev/sdb1 is NTFS, and use the *old*
NTFS support (read-only) in kernel for it. The user will then be
puzzled. Mention how to create a wrapper script for mount to use the
new NTFS3 driver for ntfs.

Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    r7fa5ff6 r084c251  
    4646      <itemizedlist>
    4747        <listitem>
     48          <para>[xry111] - Add back ntfs-3g because the utilities in it
     49          is still useful.  Mention the new in-kernel NTFS implementation
     50          in the page.</para>
     51        </listitem>
     52        <listitem>
    4853          <para>[bdubbs] - Update to git-2.34.0. Fixes
    4954          <ulink url="&blfs-ticket-root;15754">#15754</ulink>.</para>
  • postlfs/filesystems/filesystems.xml

    r7fa5ff6 r084c251  
    3030  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="aboutraid.xml"/>
    3131  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mdadm.xml"/>
    32 <!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntfs-3g.xml"/> -->
     32  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ntfs-3g.xml"/>
    3333  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gptfdisk.xml"/>
    3434  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="parted.xml"/>
  • postlfs/filesystems/ntfs-3g.xml

    r7fa5ff6 r084c251  
    2929  <sect2 role="package">
    3030    <title>Introduction to Ntfs-3g</title>
     31
     32    <note>
     33      <para id='ntfs3-kernel'>
     34        A new read-write support for NTFS, called NTFS3, has been added
     35        into Linux kernel since the 5.14 release.  The performance of NTFS3
     36        is much better than ntfs-3g. To enable NTFS3, enable the following
     37        options in the kernel configuration and recompile the kernel if
     38        necessary:
     39      </para>
     40
     41<screen><literal>File systems  ---&gt;
     42  &lt;*/M&gt; NTFS Read-Write file system support [CONFIG_NTFS3_FS]</literal></screen>
     43
     44    <indexterm zone="ntfs-3g ntfs3-kernel">
     45      <primary sortas="d-ntfs3">NTFS read-write support in kernel</primary>
     46    </indexterm>
     47
     48      <para>
     49        To ensure the <command>mount</command> command to use NTFS3 for
     50        ntfs partitions, create a wrapper script:
     51      </para>
     52
     53<screen role="nodump"><userinput>cat &gt;&gt; /usr/sbin/mount.ntfs &lt;&lt;"EOF" &amp;&amp;
     54<literal>#!/bin/sh
     55exec mount -t ntfs3 "$@"</literal>
     56EOF
     57chmod -v 755 /usr/sbin/mount.ntfs</userinput></screen>
     58
     59      <para>
     60        With the kernel support available, ntfs-3g is only needed if you
     61        need the utilities from it (for example, to create NTFS
     62        filesystems).
     63      </para>
     64    </note>
    3165
    3266    <para>
     
    136170    </para>
    137171
    138 <screen role="root"><userinput>make install &amp;&amp;
    139 ln -sv ../bin/ntfs-3g /usr/sbin/mount.ntfs &amp;&amp;
     172<screen role="root"><userinput>make install &amp;&amp;</userinput></screen>
     173
     174    <para>
     175      It's recommended to use the in-kernel NTFS3 driver for mounting
     176      NTFS filesystems, instead of ntfs-3g (see the note at the start of
     177      this page).  However, if you want to use ntfs-3g to mount the NTFS
     178      filesystems anyway, create a symlink for <command>mount</command>
     179      command:
     180    </para>
     181
     182<screen role="nodump"><userinput>ln -sv ../bin/ntfs-3g /usr/sbin/mount.ntfs &amp;&amp;
    140183ln -sv ntfs-3g.8 /usr/share/man/man8/mount.ntfs.8</userinput></screen>
    141 
    142     <para>
    143       If you want ordinary users to be able to mount NTFS partitions you'll need
    144       to set mount.ntfs with the root user ID. Note: it is probably unsafe to do
    145       this on a computer that needs to be secure (like a server). As the
    146       <systemitem class="username">root</systemitem> user:
    147     </para>
    148 
    149 <screen role="root"><userinput>chmod -v 4755 /usr/bin/ntfs-3g</userinput></screen>
    150184
    151185  </sect2>
     
    174208      <option>--disable-ntfsprogs</option>: Disables installation of various
    175209      utilities used to manipulate NTFS partitions.
    176     </para>
    177 
    178     <para>
    179       <command>ln -sv ../bin/ntfs-3g /usr/sbin/mount.ntfs</command>: Creating
    180       /sbin/mount.ntfs makes <command>mount</command> default to using Ntfs-3g
    181       to mount NTFS partitions.
    182210    </para>
    183211
Note: See TracChangeset for help on using the changeset viewer.