Now, please note that this is a sub-question of my old Changing Ownership: “Operation not permitted” - even as root! question. If you do not want to visit that link or cannot, to sum up, while attempting to use:
sudo chown (...)
To change the ownership of a file inside of a USB drive, it was unsuccessful, as the file had the immutable flag set in its extended attributes. This was the solution that worked, removing the flag via:
sudo chattr -i (Path_To_File)
As this was fixed, I basically put this in the back of my mind where I would remember it in case of repetition of the error. Recently, I was formatting a USB custom, and ran into the same error, except this time, nothing that was suggested to fix said error the previous time, has worked. Here's your command output that I know you all love:
sudo chown david:david ~/USB5/Format/type.cr
Please note that I have checked this command, and neither the (~) general path, nor the specific path work. The following is my output:
Operation Not Permitted
Of course, I have tried the fix from before, and the file does not have the flag. What can I do to fix this?
Suggested answer below:
sudo mkdir /media/flash sudo mount /dev/sdb1 /media/flash -o dmask=000,fmask=111
This just hangs on the second command, I left the computer for over 2 hours, just hanging.
EDIT: Changing to EXT4 Did nothing, same error.