How can GNOME Files(Nautilus) use the default settings for mounting NTFS disks with NTFS3 kernel module? Replacement of NTFS-3G and FUSE

Two virtual machines are installed on the host with Ubuntu 18.04 and VMware Workstation Player: Ubuntu Server 20.04 and Windows 11(the "quick start" function is disabled powercfg /h off).

Installing Kernel 5.15.1 with Ubuntu Mainline Kernel Installer
sudo add-apt-repository ppa:cappelikan/ppa
sudo apt update
sudo apt install mainline

sudo su started in the terminal

mainline --help
mainline --check
mainline --list-installed
mainline --install-latest

Downloaded and installed

linux-headers-5.15.1-051501-generic_5.15.1-051501.202111061036_amd64.deb
linux-headers-5.15.1-051501_5.15.1-051501.202111061036_all.deb
linux-image-unsigned-5.15.1-051501-generic_5.15.1-051501.202111061036_amd64.deb
linux-modules-5.15.1-051501-generic_5.15.1-051501.202111061036_amd64.deb

I connected the NVMe Windows 11 disk to Ubuntu. Rebooting Ubuntu Server 20.04.

sudo su started in the terminal
uname -r
5.15.1-051501-generic
modinfo ntfs3

ntfs3

mkdir /media/c_win11
lsblk -o NAME,FSTYPE,LABEL,SIZE,MOUNTPOINT,UUID

ntfs3 mount options

Next

sudo cp /etc/fstab /etc/fstab_backup
sudo echo 'UUID=6A9C72639C7229A9 /media/c_win11 ntfs3 iocharset=utf8,uid=1000,gid=1000 0 0' | sudo tee -a /etc/fstab

Next, it is necessary to provide the user with write access to the directory in which the partition is mounted:

sudo chown user /media/c_win11

I can create packages, edit files and documents with the rights of a regular user on a partition with Windows 11.

Installed GNOME Shell

sudo apt install ubuntu-desktop ubuntu-desktop-minimal

ntfs3

The auto-mounting of the Windows 11 disk is also saved in Nautilus. This is not always convenient. Sometimes it is necessary to temporarily mount NTFS disks in Nautilus.

Question:

How can GNOME Files(Nautilus) use the default settings for mounting NTFS disks with NTFS3 kernel module? Replacement of NTFS-3G and FUSE.

Warning!!! MainlineBuilds. The mainline kernel builds are produced for debugging purposes and therefore come with no support. Use them at your own risk.

Kernel Uninstall: sudo su started in the terminal (then all commands in the terminal with root rights)

mainline --list-installed
mainline --uninstall 5.15.1
4

1 Answer

Configuring mounting with NTFS3 kernel module by Paragon Software in the Nautilus file manager. I have read the information on the links: Configurable mount options ,storaged-project , ntfs3-dkms

A virtual machine with Ubuntu 21.10 Gnome and Windows 11 is installed in dual boot.

Installing Kernel 5.15.2 with Ubuntu Mainline Kernel Installer.

sudo su started in the terminal (then all commands in the terminal with root rights):

add-apt-repository ppa:cappelikan/ppa
apt update
apt install mainline
mainline --check
mainline --list-installed
mainline --install-latest

Rebooting Ubuntu.

sudo su started in the terminal (then all commands in the terminal with root rights):

uname -r
5.15.2-051502-generic
modinfo ntfs3

Launch nautilus and mount a disk with Windows 11.

mount | grep nvme0n1
/dev/nvme0n1p2 on /media/user/6A9C72639C7229A9 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

In nautilus unmount drive with Windows 11.

Creating a rule for udev in the terminal:

sudo dd status=none of=/etc/udev/rules.d/99-ntfs3.rules <<EOF
# UDISKS_FILESYSTEM_SHARED
# ==1: mount filesystem to a shared directory (/media/VolumeName)
# ==0: mount filesystem to a private directory (/run/media/$USER/VolumeName)
# See udisks(8)
SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="ntfs", ENV{ID_FS_TYPE}="ntfs3" , ENV{UDISKS_FILESYSTEM_SHARED}="1"
EOF

Reloading udev rules without restarting Ubuntu.

sudo udevadm control -R

Launch nautilus and mount a disk with Windows 11.

sudo mount | grep nvme0n1
/dev/nvme0n1p2 on /media/6A9C72639C7229A9 type ntfs3 (rw,nosuid,nodev,relatime,uid=0,gid=0,iocharset=utf8,uhelper=udisks2)

Return the default settings (fuse and ntfs-3g) with the command:

sudo rm -rf /etc/udev/rules.d/99-ntfs3.rules
sudo udevadm control -R ## or reboot Ubuntu.

Now I will test ntfs3 with Proton (Steam Play- Using-a-NTFS-disk-with-Linux-and-Windows) on a real computer.

Naturally, I will not test on the Mainline Kernel. I use a ready-made XanMod kernel (STABLE) (5.14)

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like