Kernel 6.5 and ntfs drives

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
SymbolicFrank
Level 1
Level 1
Posts: 22
Joined: Fri Jan 19, 2024 5:16 am

Kernel 6.5 and ntfs drives

Post by SymbolicFrank »

I had 5 ntfs HDD data drives, which worked well. Yes, I know ext4 is better, but I have migrated my Windows computer to Mint. The system drive is an SSD with ext4.

After upgrading from a 5.15 to a 6.5 kernel, it seems that reading and/or writing many ntfs files freezes my computer, requiring a push on the reset button. After that, the drives are corrupt and I have to boot Windows (I hate that) to run chkdsk /f on all of them.

I'm trying to migrate them to ext4, but that's very hard if I cannot copy the data.

I tried finding out what the actual support is of the new ntfs3 kernel driver, but every source tells a different story. From read and limited write (no create), to full support with journaling. I have no idea. And so I don't know what else I have to do or change to get it to work.

I tried reinstalling the ntfs-3g drivers, just to be sure. That might be wrong, I don't know.

What can I do?

This is the system:

Code: Select all

System:
  Kernel: 6.5.0-26-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
    wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: Gigabyte model: B550 AORUS PRO v: x.x serial: <superuser required>
    UEFI: American Megatrends LLC. v: F16 date: 02/15/2024
CPU:
  Info: 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP smt: enabled arch: Zen 3 rev: 2
    cache: L1: 768 KiB L2: 6 MiB L3: 64 MiB
  Speed (MHz): avg: 3484 high: 4839 min/max: 2200/4950 boost: enabled cores: 1: 3838 2: 4818
    3: 3809 4: 3854 5: 3813 6: 3847 7: 3471 8: 3590 9: 3594 10: 3587 11: 2200 12: 3340 13: 2200
    14: 4839 15: 2200 16: 3873 17: 3862 18: 3813 19: 2875 20: 4750 21: 4177 22: 2200 23: 2200
    24: 2872 bogomips: 177260
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD driver: amdgpu v: kernel pcie: speed: 16 GT/s lanes: 16 ports: active: HDMI-A-1
    empty: DP-1,DP-2,DP-3 bus-ID: 08:00.0 chip-ID: 1002:73a5 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x572mm (40.0x22.5") s-diag: 1166mm (45.9")
  Monitor-1: HDMI-A-0 mapped: HDMI-A-1 model: Philips FTV serial: <filter> res: 3840x2160 hz: 60
    dpi: 68 size: 1440x810mm (56.7x31.9") diag: 1652mm (65") modes: max: 1920x1080 min: 640x480
  OpenGL: renderer: AMD Radeon RX 6950 XT (navi21 LLVM 15.0.7 DRM 3.54 6.5.0-26-generic)
    v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
  Device-1: AMD Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT] driver: snd_hda_intel
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 08:00.1 chip-ID: 1002:ab28 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 0a:00.4 chip-ID: 1022:1487 class-ID: 0403
  Sound Server-1: ALSA v: k6.5.0-26-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel pcie: speed: 5 GT/s
    lanes: 1 port: f000 bus-ID: 05:00.0 chip-ID: 10ec:8125 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 62.93 TiB used: 2.23 TiB (3.5%)
  ID-1: /dev/nvme0n1 vendor: Lexar model: SSD NM790 1TB size: 953.87 GiB speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 11296 temp: 55.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Lexar model: SSD NM790 4TB size: 3.73 TiB speed: 63.2 Gb/s lanes: 4
    type: SSD serial: <filter> rev: 12237 temp: 49.9 C scheme: GPT
  ID-3: /dev/sda vendor: Toshiba model: MG07ACA14TE size: 12.73 TiB speed: 6.0 Gb/s type: HDD
    rpm: 7200 serial: <filter> rev: 0103 scheme: GPT
  ID-4: /dev/sdb vendor: Toshiba model: MG07ACA14TE size: 12.73 TiB speed: 6.0 Gb/s type: HDD
    rpm: 7200 serial: <filter> rev: 0104 scheme: GPT
  ID-5: /dev/sdc vendor: Toshiba model: MG08ACA16TE size: 14.55 TiB speed: 6.0 Gb/s type: HDD
    rpm: 7200 serial: <filter> rev: 0102 scheme: GPT
  ID-6: /dev/sdd vendor: Toshiba model: MG07ACA14TE size: 12.73 TiB speed: 6.0 Gb/s type: HDD
    rpm: 7200 serial: <filter> rev: 0103 scheme: GPT
  ID-7: /dev/sde vendor: Western Digital model: WD60EZAZ-00SF3B0 size: 5.46 TiB speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: 0A80 scheme: GPT
  ID-8: /dev/sdf type: USB vendor: Philips model: N/A size: 58.59 GiB type: N/A serial: <filter>
    rev: 5.00 scheme: MBR
Partition:
  ID-1: / size: 937.33 GiB used: 508.22 GiB (54.2%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 10 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-6:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-7:3 info: Integrated Express ITE Device type: HID driver: hid-generic,usbhid
    interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 048d:5702 class-ID: 0300
  Hub-3: 1-10:4 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Hub-4: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Cooler Master ARES type: Keyboard,HID driver: hid-generic,usbhid
    interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 2516:014d class-ID: 0300
  Hub-6: 4-0:1 info: Super-speed hub ports: 1 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-7: 5-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 5-1:2 info: Integrated Express Chipsbank CBM2199 Flash Drive type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 100mA chip-ID: 048d:1234
    class-ID: 0806 serial: <filter>
  Device-2: 5-2:3 info: Micro Star MSI GK50 LOW PROFILE TKL Gaming Keyboard type: Keyboard,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0db0:0b5c
    class-ID: 0300
  Device-3: 5-4:4 info: Cooler Master Mice Dongle type: Keyboard,Mouse,HID
    driver: hid-generic,usbhid interfaces: 5 rev: 2.0 speed: 12 Mb/s power: 98mA chip-ID: 2516:01b7
    class-ID: 0300
  Hub-8: 6-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A gpu: amdgpu temp: 63.0 C mem: 60.0 C
  Fan Speeds (RPM): cpu: 0 fan-2: 0 fan-3: 0 gpu: amdgpu fan: 0
  Power: 12v: N/A 5v: N/A 3.3v: 3.36 vbat: 3.14 gpu: amdgpu watts: 32.00
Repos:
  Packages: 3057 apt: 3032 flatpak: 25
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list
  Active apt repos in: /etc/apt/sources.list.d/amdgpu.list
    1: deb https: //repo.radeon.com/amdgpu/5.7.2/ubuntu jammy main
    2: deb-src https: //repo.radeon.com/amdgpu/5.7.2/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-dbgsym-repositories.list
    1: deb http: //ddebs.ubuntu.com jammy main restricted universe multiverse
    2: deb http: //ddebs.ubuntu.com jammy-updates main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //mirrors.evoluso.com/linuxmint-packages/linuxmint-packages virginia main upstream import backport
    2: deb http: //ftp.tudelft.nl/archive.ubuntu.com jammy main restricted universe multiverse
    3: deb http: //ftp.tudelft.nl/archive.ubuntu.com jammy-updates main restricted universe multiverse
    4: deb http: //ftp.tudelft.nl/archive.ubuntu.com jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/official-source-repositories.list
    1: deb-src https: //mirrors.evoluso.com/linuxmint-packages/linuxmint-packages virginia main upstream import backport
    2: deb-src http: //ftp.tudelft.nl/archive.ubuntu.com jammy main restricted universe multiverse
    3: deb-src http: //ftp.tudelft.nl/archive.ubuntu.com jammy-updates main restricted universe multiverse
    4: deb-src http: //ftp.tudelft.nl/archive.ubuntu.com jammy-backports main restricted universe multiverse
    5: deb-src http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/rocm.list
    1: deb [arch=amd64] https: //repo.radeon.com/rocm/apt/5.7.2 jammy main
  Active apt repos in: /etc/apt/sources.list.d/unityhub.list
    1: deb https: //hub.unity3d.com/linux/repos/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 466 Uptime: 1h 0m wakeups: 0 Memory: 62.49 GiB used: 4.7 GiB (7.5%) Init: systemd
  v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client
  inxi: 3.3.13
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: Kernel 6.5 and ntfs drives

Post by t42 »

-- ntfs-3g driver is considered stable for years, especially comparing to ntfs3 driver. Many distributions don't include ntfs3 driver in their kernel, Debian being the first of them. If you don't need advanced features of ntfs3 you don't need it, ntfs-3g is sufficient for every standard system and usage.
-- you are don't saying how you copy files exactly, which software used for that, is every copying method gives errors. Make sure you are not disabling file operations queueing, which may be the reason of the issue.
-- and, lastly from me, based on your other comments, you have quite unstable system, other problems may be related to this issue.
-=t42=-
SymbolicFrank
Level 1
Level 1
Posts: 22
Joined: Fri Jan 19, 2024 5:16 am

Re: Kernel 6.5 and ntfs drives

Post by SymbolicFrank »

t42 wrote: Sun Mar 24, 2024 4:40 pm -- ntfs-3g driver is considered stable for years, especially comparing to ntfs3 driver. Many distributions don't include ntfs3 driver in their kernel, Debian being the first of them. If you don't need advanced features of ntfs3 you don't need it, ntfs-3g is sufficient for every standard system and usage.
-- you are don't saying how you copy files exactly, which software used for that, is every copying method gives errors. Make sure you are not disabling file operations queueing, which may be the reason of the issue.
-- and, lastly from me, based on your other comments, you have quite unstable system, other problems may be related to this issue.
This system ran flawlessly for more than a year with Windows 10. After migrating to Mint, the system halted a few times because of the caspar-md5 bug. After that, it ran without issues for months. The only thing that didn't work was suspend. To fix that, I had to upgrade to kernel 6.5, which didn't fix suspend but seemingly broke ntfs support. Everything else is bog standard as by the default installation.

So, yes, it is very unstable now, but AFAIK only after upgrading the kernel and copying from or to ntfs partitions.

When fixed by chkdsk they are of type ntfs3 when mounted.

I use the default file manager for copying. Nemo?

What do I have to do to make it work?
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: Kernel 6.5 and ntfs drives

Post by t42 »

On Ubuntu / Linux Mint kernel 6.5 and 6.2 series can mount ntfs partitions with ntfs3 driver by default. If file corruption is caused by this driver you can try kernel 6.1 which mounts ntfs partitions as fuseblk. Or use ntfs-3g driver on current kernel by mounting partitions permanently in fstab like UUID=xxxxxxxxxx /mnt/sdXY ntfs-3g defaults
-=t42=-
SymbolicFrank
Level 1
Level 1
Posts: 22
Joined: Fri Jan 19, 2024 5:16 am

Re: Kernel 6.5 and ntfs drives

Post by SymbolicFrank »

I mounted all drives as ntfs-3g and now it works, except that the copy dialog became very unresponsive after exiting the screensaver. That's the good thing about user-space drivers: they don't take the whole system down when they have a hiccup.

But I'm fairly certain that the new ntfs3 drivers are buggy.
Post Reply

Return to “Storage”