[Bug 1797717] Re: fstrim -av tries to trim read only mounted ntfs-3g and fails
Right now in 19.10, /lib/systemd/system/fstrim.service runs /sbin/fstrim --fstab --verbose --quiet , which doesn't cause the service to report these errors. According to the fstrim man page, for the --fstab option: "Errors from filesystems that do not support the discard operation, read-only devices and read-only filesystems are silently ignored." So, I consider this fixed now. Feel free to close the issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1797717 Title: fstrim -av tries to trim read only mounted ntfs-3g and fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1797717/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1797717] Re: fstrim -av tries to trim read only mounted ntfs-3g and fails
** Tags added: eoan -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1797717 Title: fstrim -av tries to trim read only mounted ntfs-3g and fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1797717/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1797717] Re: fstrim -av tries to trim read only mounted ntfs-3g and fails
** Tags added: disco -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1797717 Title: fstrim -av tries to trim read only mounted ntfs-3g and fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1797717/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1797717] Re: fstrim -av tries to trim read only mounted ntfs-3g and fails
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: util-linux (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1797717 Title: fstrim -av tries to trim read only mounted ntfs-3g and fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1797717/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1797717] Re: fstrim -av tries to trim read only mounted ntfs-3g and fails
I see the same warnings in systemd log. systemd[1]: fstrim.service: Main process exited, code=exited, status=64/USAGE systemd[1]: fstrim.service: Failed with result 'exit-code'. systemd[1]: Failed to start Discard unused blocks. If I run it manually: $ sudo fstrim -av /home: 9.7 GiB (10445021184 bytes) trimmed fstrim: /mnt/win_c: FITRIM ioctl failed: Bad file descriptor fstrim: /mnt/win_d: FITRIM ioctl failed: Bad file descriptor fstrim: /mnt/win_g: FITRIM ioctl failed: Bad file descriptor fstrim: /mnt/win_e: FITRIM ioctl failed: Bad file descriptor fstrim: /mnt/win_f: FITRIM ioctl failed: Bad file descriptor fstrim: /mnt/win_re: FITRIM ioctl failed: Bad file descriptor /: 2.4 GiB (2608013312 bytes) trimmed with exit status 64. Related mount points: $ mount | grep win /dev/sda4 on /mnt/win_re type fuseblk (ro,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) /dev/sdc1 on /mnt/win_f type fuseblk (ro,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) /dev/sdb1 on /mnt/win_e type fuseblk (ro,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) /dev/sdd1 on /mnt/win_g type fuseblk (ro,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) /dev/sda5 on /mnt/win_d type fuseblk (ro,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) /dev/sda3 on /mnt/win_c type fuseblk (ro,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) /dev/sde1 on /mnt/win_h type fuseblk (ro,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1797717 Title: fstrim -av tries to trim read only mounted ntfs-3g and fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1797717/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs