Can't delete a file at an NTFS partition, even tried this in LiveCD, but at the same partition delete other files not a problem. The file couldn't be deleted is a Windows system file, maybe with special NTFS permissions. So how can I do in the right behavior?

From CLI:

sudo rm '/media/.../AppStudio.Uwp.xr.xml' 
rm: cannot remove '/media/.../AppStudio.Uwp.xr.xml': No such file or directory

From GUI:

Error removing file /media/.../AppStudio.Uwp.xr.xml: Permission denied

The reason for the permission denied error is that the partition is mounted as ro (read-only). The reason is mostly that the Windows partition is not properly shutdown and hibernated (you can try running dmesg to find the relevant lines)

You can fix this by shutting down Windows properly using shutdown /s /f /t 0 in the cmd.exe.

If that didn't fix the problem I will edit my answer to contain instructions how to manually mount the Windows Partition (in 90%+ of cases shutting down properly fixes it).

  • Couldn't he just edit fstab so when its automatically mounted it can be rw instead of ro? – Qasim Nov 9 '19 at 21:59
  • @Qasim that's a horrible idea, it would possibly corrupt the partition. – Sir Muffington Nov 10 '19 at 12:02
  • The Windows got deleted too... – rospa Nov 11 '19 at 9:18
  • @SirMuffington how would that corrupt it, all it does it change the fileysystem attributes and makes it read, write. that in no way would corrupt it?!! – Qasim Nov 11 '19 at 10:25
  • @Qasim try it for yourself, it will give you a "NTFS Partition is in a unstable state" error at boot because the partition is inconsistent – Sir Muffington Nov 11 '19 at 18:56

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.