You are not logged in.

#1 2021-01-01 14:55:17

lestb
Member
Registered: 2013-06-23
Posts: 17

[SOLVED] Fstrim is not working anymore for NTFS partition

I tried to run fstrim on a NTFS partition but it returns the following error:

fstrim: /media/windows: FITRIM ioctl failed: Device or resource busy

I have checked dmesg and I don't see any error pertaining to the partition.
When I tried downgrading linux from 5.10.3 to 5.9.14, fstrim works.

Last edited by lestb (2021-03-20 00:16:49)

Offline

#2 2021-01-02 15:12:35

Nickolas0
Member
Registered: 2019-02-16
Posts: 30

Re: [SOLVED] Fstrim is not working anymore for NTFS partition

it may be related to removed ntfs driver support from kernel: https://github.com/archlinux/svntogit-p … 5eb9b7203a

Offline

#3 2021-01-06 14:33:59

lestb
Member
Registered: 2013-06-23
Posts: 17

Re: [SOLVED] Fstrim is not working anymore for NTFS partition

But doesn't NTFS-3G supports fstrim? Removal of the module should not affect NTFS-3G, right?

Offline

#4 2021-01-08 13:25:24

lestb
Member
Registered: 2013-06-23
Posts: 17

Re: [SOLVED] Fstrim is not working anymore for NTFS partition

I have rebuild the kernel with NTFS module enabled but the same error occurs. There must be some changes in 5.10 that breaks fstrim for NTFS.

Offline

#5 2021-01-11 11:51:12

ciel
Member
Registered: 2021-01-11
Posts: 1

Re: [SOLVED] Fstrim is not working anymore for NTFS partition

I encountered the same issue with linux 5.10.4. I was wondering if you have submitted a bug report to the kernel maintainer?

Offline

#6 2021-02-09 18:26:30

metzengerstein
Member
Registered: 2010-06-04
Posts: 43

Re: [SOLVED] Fstrim is not working anymore for NTFS partition

I've made a bug report: https://bugs.archlinux.org/task/69600

Offline

#7 2021-03-20 00:14:50

lestb
Member
Registered: 2013-06-23
Posts: 17

Re: [SOLVED] Fstrim is not working anymore for NTFS partition

I didn't encounter the issue anymore with linux-5.11.7.arch1.

Offline

#8 2021-03-20 00:26:34

loqs
Member
Registered: 2014-03-06
Posts: 13,206

Re: [SOLVED] Fstrim is not working anymore for NTFS partition

lestb wrote:

I didn't encounter the issue anymore with linux-5.11.7.arch1.

Fix was backported to 5.11.7:
https://cdn.kernel.org/pub/linux/kernel … Log-5.11.7 7e0815797656f029fab2edc309406cddf931b9d8
https://git.kernel.org/pub/scm/linux/ke … ddf931b9d8

Offline

Board footer

Powered by FluxBB