I'm looking for a filesystem that I can format a USB drive with that can run C++ executables.
Tried FAT32:
$ ./main
bash: ./main: Permission denied
Tried NTFS:
$ ./main
bash: ./main: Permission denied
Tried Ext4: Works, however not mountable on OS X.
Any ideas?
(I also tried chmodding, doesn't work)
mount ; pwd ; ls -ld ./main ; file ./main
in your question, and answerers will be able to tell you exactly what's happening here.chmod
. And three of those important diagnostic commands don't even deal in permissions. Stop fixating on your erroneous guess as to the cause and put the information that will help people to help you in the question.