4

I have mounted a usb drive on my computer. I want to change the owner to myself so that I can have an easier time writing/reading and allowing other programs to do the same. However, when I run this code:

sudo chown <username>:<username> -R <Drive Name>

It returns this:

chown: changing ownership of '<Drive Name>': Operation not permitted

I read on This Forum that I should run sudo chattr -i file

However that returns this:

chattr: Inappropriate ioctl for device while reading flags on <Device Name>

Where do I go from here?

1 Answers1

6

This problem is typical for partitions with a Microsoft file system, NTFS, FAT32 and exFAT. The ownership and permissions are set when mounting and cannot be modified without unmounting and mounting again, this time with new settings.

See this link with more details,

How do I use 'chmod' on an NTFS (or FAT32) partition?

sudodus
  • 46,324
  • 5
  • 88
  • 152