I wrote a small program in C, that compiles without errors or warnings. Testing the program on other systems worked perfectly. I was a little surprised then to see that I could not execute it on my RPi (v1 model B). I have confirmed that the permissions are set to executable for the user, but even when I try to sudo the binary, I get a permission denied message.
If I copy the binary off of the drive (located at /mnt/usb) to my home drive (located in the default location on the sd card) it runs perfectly without an issue. Could this be something to do with how my fstab is setup?
proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that /dev/sda1 /mnt/usb ext3 defaults,user 0 3