Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #244967

Re: "mount -t ntfs" vs "mount.ntfs" ?

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: "mount -t ntfs" vs "mount.ntfs" ?
Date 2022-02-02 18:10 +0100
Message-ID <DMriO-j7-7@gated-at.bofh.it> (permalink)
References (4 earlier) <DM0LD-Ka-3@gated-at.bofh.it> <DM1om-1cE-11@gated-at.bofh.it> <DM4Fz-34T-1@gated-at.bofh.it> <DM70J-4BT-5@gated-at.bofh.it> <DMkU2-4HW-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed 02 Feb 2022 at 11:16:18 (+0100), Yvan Masson wrote:
> 
> > > > > Slightly off-topic question: using pre-5.15 kernel, how can I
> > > > > mount a
> > > > > partition with kernel driver?
> > > > 
> > > > You can't, the NTFS kernel driver first appeared in Linux 5.15.
> > > > 
> > >   From what I understand, there was a read-only driver before 5.15:
> > > - see for example
> > > https://superuser.com/questions/139452/kernel-ntfs-driver-vs-ntfs-3g
> > > or
> > > https://www.paragon-software.com/us/home/ntfs3-driver-faq/
> > > - kernel build config (/boot/config-....) also mentions ntfs, even
> > > for
> > > pre-5.15 kernels
> > 
> > Sorry, you are correct, I was mistaken, it's been in the kernel tree
> > [1] for over a decade. However I can't find it mentioned in the config
> > for the Debian kernels on my machine so I'm assuming Debian don't
> > enable it (I'm looking in /boot/config-5.10.0-11-amd64). But you say
> > you found in in you kernel configs?
> > 
> > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/fs/ntfs
> > 
> My mistake here, sorry :-) Indeed, Debian stable kernel's config does
> not mention NTFS, so my question is off-topic in this mailing list.

Not at all. Debian's kernel contain ntfs¹ in the source, and it's
not considered unusual to build custom kernels.

> For Linux Mint 20.3 LiveCD, kernel is 5.4.0-91.102 from Ubuntu, and
> its config mentions `CONFIG_NTFS=m`. Module is present in
> /lib/modules/5.4.0-91-generic/kernel/fs/. So I should be able to mount
> read-only with this driver, but don't know how.

Perhaps it is enough to   modprobe ntfs   (as root) before attempting
to mount the filesystem.

¹ It helps that ntfs-3g and ntfs3 have now have proper names. The
  former is the one that I use, though almost exclusively as read only².

  Buster's 4.19 kernel has NTFS in the source, but I've never tried it,
  mainly because they don't configure it in the repository's images.
  The documentation there hints that it is the 2nd generation ntfs
  driver as it refers back to an earlier version, which one might
  suppose is the first generation.

² On the one occasion I wrote anything, it was to remove that little
  bit of vomit that Windows writes on its partitions. Having converted
  a disk from MBR to GPT with gdisk, so that I could boot from it,
  Windows could no longer mount the partition until it was removed —
  it would just hang.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

"mount -t ntfs" vs "mount.ntfs" ? Yvan Masson <yvan@masson-informatique.fr> - 2022-01-28 11:50 +0100
  Re: "mount -t ntfs" vs "mount.ntfs" ? Andrei POPESCU <andreimpopescu@gmail.com> - 2022-01-28 17:50 +0100
  Re: "mount -t ntfs" vs "mount.ntfs" ? David Wright <deblis@lionunicorn.co.uk> - 2022-01-28 18:00 +0100
    Re: "mount -t ntfs" vs "mount.ntfs" ? Yvan Masson <yvan@masson-informatique.fr> - 2022-01-31 11:50 +0100
      Re: "mount -t ntfs" vs "mount.ntfs" ? Michael Stone <mstone@debian.org> - 2022-01-31 16:30 +0100
        Re: "mount -t ntfs" vs "mount.ntfs" ? Yvan Masson <yvan@masson-informatique.fr> - 2022-01-31 18:00 +0100
      Re: "mount -t ntfs" vs "mount.ntfs" ? Christian Britz <cbritz@t-online.de> - 2022-01-31 18:10 +0100
        Re: "mount -t ntfs" vs "mount.ntfs" ? Yvan Masson <yvan@masson-informatique.fr> - 2022-02-01 13:50 +0100
          Re: "mount -t ntfs" vs "mount.ntfs" ? Tixy <tixy@yxit.co.uk> - 2022-02-01 14:30 +0100
            Re: "mount -t ntfs" vs "mount.ntfs" ? Yvan Masson <yvan@masson-informatique.fr> - 2022-02-01 18:10 +0100
              Re: "mount -t ntfs" vs "mount.ntfs" ? Tixy <tixy@yxit.co.uk> - 2022-02-01 20:30 +0100
                Re: "mount -t ntfs" vs "mount.ntfs" ? Yvan Masson <yvan@masson-informatique.fr> - 2022-02-02 11:20 +0100
                Re: "mount -t ntfs" vs "mount.ntfs" ? David Wright <deblis@lionunicorn.co.uk> - 2022-02-02 18:10 +0100

csiph-web