SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Kernel 5.15 introduces the fully functional "ntfs3" driver. Earlier kernels only provided a read-only "ntfs" driver. Therefore most (all?) distributions provide the fuse-based fully functional "ntfs-3g" driver.
The problem with a fuse-based driver may be its performance. In many cases the ntfs-3g performance is acceptable, but e.g. I have a 240 Gb NTFS partition with many long directory/file names that grinds to a halt when copying the complete contents to an other NTFS partition. Copying that partition with the ntfs3 driver succeeds with a more than acceptable speed.
Assuming /dev/sda1 to be an NTFS partition and both drivers to be available the following commands can/should mount it:
Code:
(1) mount /dev/sda1 /mnt
(2) mount -tauto /dev/sda1 /mnt
(3) mount -tntfs /dev/sda1 /mnt
(4) mount -tntfs3 /dev/sda1 /mnt
(5) mount -tntfs-3g /dev/sda1 /mnt
Asis (4) selects the ntfs3 driver, the other commands all select the ntfs-3g driver.
Some research highlights the /sbin/mount.ntfs symlink to /sbin/mount.ntfs-3g mount helper. As a test I removed/renamed that symlink *): (1), (2) and (3) failed with a "mount: /mnt: unknown filesystem type 'ntfs'" message.
I then created the /sbin/mount.ntfs executable script reading:
For the "auto" mount option, consider this part of the man page for "mount":
Code:
If no -t option is given, or if the auto type is specified, mount will try to guess the desired type.
Mount uses the blkid or volume_id library for guessing the filesystem type; if that does not turn up
anything that looks familiar, mount will try to read the file /etc/filesystems, or,
if that does not exist, /proc/filesystems.
All of the filesystem types listed there will be tried, except for those that are labeled "nodev"
(e.g., devpts, proc and nfs). If /etc/filesystems ends in a line with a single * only,
mount will read /proc/filesystems afterwards.
The auto type may be useful for user-mounted floppies.
Creating a file /etc/filesystems can be useful to change the probe order
(e.g., to try vfat before msdos or ext3 before ext2) or if you use a kernel module autoloader.
Warning: the probing uses a heuristic (the presence of appropriate 'magic'),
and could recognize the wrong filesystem type, possibly with catastrophic consequences.
If your data is valuable, don't ask mount to guess.
For the last 20 years or so my Slackware initrd's use -tauto for the root filesystem -- such that I can run several clones that not necessarily use the same root filesystem. I never had problems with this setup. This feature e.g. came in handy with the transition from ext2 to ext3. Nowadays things are ext4.
For the last 15 years or so our/my live CD's use -tauto for all filesystems they "see" -- we never had problems with this. No user ever complained.
In the meantime I have "lost" an entire NTFS partition -- in the heat of the problem I forgot to keep GParted's error message.
Keeping an eye on things ...
I am scratching may head as for me diversity user/kernel space is a midst. But say Arch wiki tells ntfs-3g uses FUSE file system. So about this new ntfs3 kernel driver? They are really do the same job? Comparison which comes to mind is mount iso file system. Where is also fuseiso.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Rep:
Quote:
Originally Posted by burdi01
In the meantime I have "lost" an entire NTFS partition -- in the heat of the problem I forgot to keep GParted's error message.
Keeping an eye on things ...
I'm sorry burdi01. I hope you didn't lose anything important!
Did you lose the partition by using the new ntfs3 driver? Should we still using ntfs-3g?
I mounted two ntfs partitions yesterday with ntfs3 and did write/read on them without problems.
It seems that the lack of locale option doesn't prevent ntfs3 to write and read
special characters in pt_BR like ç and ã.
Also, it seems that ntfs3 writes ntfs permissions, before it was rwx for all.
I didn't boot Windows 10 to see how permissions are over there.
Code:
ls -l /seagate2t/HP-Printer-Diagnostics_v14.pdf
-rwxrwxrwx 1 paulo users 1873150 fev 7 2019 /seagate2t/HP-Printer-Diagnostics_v14.pdf
ls -l /seagate2t/IMG_3254.JPG
-rw------- 1 paulo users 369428 nov 6 14:43 /seagate2t/IMG_3254.JPG
I am scratching may head as for me diversity user/kernel space is a midst. But say Arch wiki tells ntfs-3g uses FUSE file system. So about this new ntfs3 kernel driver? They are really do the same job? Comparison which comes to mind is mount iso file system. Where is also fuseiso.
Paragon Software (the authors of the ntfs3 kernel module) advertized their kernel module as a fully functional ntfs driver, thus doing the same job (but faster) as the ntfs-3g fuse driver. My test results would confirm this.
Note however that the ntfs-3g *package* embeds the ntfsprogs such as mkntfs and ntfsresize and therefore cannot be removed.
I'm sorry burdi01. I hope you didn't lose anything important!
Did you lose the partition by using the new ntfs3 driver? Should we still using ntfs-3g?
I mounted two ntfs partitions yesterday with ntfs3 and did write/read on them without problems.
The "lost" ntfs partition is my secundary backup. I could restore it from my primary backup -- which took about 15 minutes for the 175 GB.
Whether or not the new ntfs3 driver was the culprit I do not know. For the time being I keep using that ntfs3 driver.
For the permissions you should read the documentation. For instance my fstab line for that secundary backup reads:
The "in use" fstab file was created about 3 weeks ago during an fresh installation of -current. Shouldn't it read, ntfs-3g ? If not, why not? A third question would be, should the "in use" fstab file be edited to read, ntfs3 ?
Last edited by cwizardone; 11-07-2021 at 12:08 PM.
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 928
Rep:
Quote:
Originally Posted by cwizardone
From my "in use" fstab,
From an old backup file,
The "in use" fstab file was created about 3 weeks ago during an fresh installation of -current. Shouldn't it read, ntfs-3g ? If not, why not? A third question would be, should the "in use" fstab file be edited to read, ntfs3 ?
Like burdi01 said in the OP, I think ntfs and ntfs-3g are the same.
My fstab now is edited with ntfs3 instead ntfs-3g.
"mount" shows ntfs partition mounted with ntfs-3g (or ntfs) as type fuseblk,
and partitions mounted with ntfs3 as type ntfs3.
Code:
mount
<snip>
/dev/sdc1 on /seagate2t type ntfs3 (rw,uid=1000,gid=100,umask=000)
/dev/sdb3 on /win10 type ntfs3 (rw,uid=1000,gid=100,umask=000)
/dev/sdb1 on /winxp type fuseblk (rw,allow_other,blksize=4096)
Like burdi01 said in the OP, I think ntfs and ntfs-3g are the same.
No guys: The ntfs-3g *package* "symlinks" a "mount -tntfs" to the ntfs-3g driver.
My proposed solution replaces that "symlink" with an invocation of "mount -tntfs3".
In addition to my "lost" partition (see post #6) my ext4 (!) live CD maintenance partition suddenly "creates" spectacularly failing ISOs. It might be that the partition's contents (or my tooling) is corrupted.
For me this is the last straw that breaks the camel's back ...
I do not "trust" my systems any more. So I am restoring my last backup before kernel 5.15/ntfs3 right now -- which means reapplying three weeks of amendments. For the time being I will then stay with ntfs-3g ...
Paragon Software (the authors of the ntfs3 kernel module) advertized their kernel module as a fully functional ntfs driver, thus doing the same job (but faster) as the ntfs-3g fuse driver. My test results would confirm this.
Speed is a secondary consideration here. Paragon's driver was developed under Windows by people who write software that performs low level disk operations, such as moving and resizing partitions. I've used their software many times to do such things under Windows with great success.
The ntfs-3g fuse driver, while usable, is far from great IME. On more than one occasion it has created "ghost" files for me which were difficult to remove.
I'm happy to finally have proper kernel level NTFS support... Something Linux has never had.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.