Ubuntu – Chmod has no effect on files on flash drive

chmodpermissionsusb-drive

My old box running ubuntu 9.04 passed away, so I plugged a flash drive into a newer box running ubuntu 16.04.

But, I can't run scripts from there, because all files lost the x-permission.
I can copy those files, but I can't chmod them, not even chmod a+w, not even using sudo.

chmod returns with no errors, echo $? shows 0.

It all worked perfectly on 9.04.

Here is what mount says:

/dev/sdd1 on /media/user/LABC type vfat   
 (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

I am aware of https://askubuntu.com/a/17550/778232 and I don't think it's a duplicate.

Firstly, with my problem here, not only +x is ignored.
Secondly, the file where the answer proposes a change does not exist on my box.

Edit:
What I don't understand, if FAT does not support linux-like flags, why did it work with ubuntu 9.04?

Edit2:

Nope, this didn't work.
I unmounted the device, created a new directory, mounted it with

mount /dev/sdd1 /media/LABC -o dmask=000,fmask=111

I can see the files, but still cannot chmod or chown (as root user).
chown gives "Operation not permitted".

Best Answer

In my honest experience, If you have a dual boot computer then you're lucky and you can try "Repair this drive" in Windows. This usually fixes my problems.

Related Question