maharmstone / ntfs2btrfs

GNU General Public License v2.0
678 stars 29 forks source link

Can't delete `image/ntfs.img` #76

Closed RuiNtD closed 3 months ago

RuiNtD commented 3 months ago

Hello. I can't seem to delete image/ntfs.img on Windows because it's owned by SYSTEM and won't let me take ownership.

> sudo rm E:\image\ntfs.img
Remove-Item: Access to the path 'E:\image\ntfs.img' is denied.
> sudo takeown /F E:\image\ntfs.img
ERROR: Access is denied.

explorer_XjrfzQEmu3

RuiNtD commented 3 months ago

I've even tried opening a CMD as SYSTEM and deleting it from there. Access denied...

maharmstone commented 3 months ago

I seem to remember that the image subvolume gets created readonly. Try toggling that flag first.

RuiNtD commented 3 months ago

I didn't even know that was a subvolume. That worked. Thanks.

Also, you may want to update the README. Lol

maharmstone commented 3 months ago

Thanks, I have done: https://github.com/maharmstone/ntfs2btrfs/commit/8c6782680ce96a0f39957b7fc9849189aafe58ae