running Programs off SDcard, in Debian

hello,

i have a beaglebone black with debian installed on the eMMC and i would like to write and run programs off the sdcard.
but when i try to change a bash file to executable:

chmod +x /media/45AA-4F26/myprogram (45AA-4F26 is the name of my sdcard)

the file does show as an executable:

ls -l /media/45AA-4F26/

-rw-r–r-- 1 debian debian 99 May 28 20:24 myprogram

any idea why this is? is there a permissions issue?
Also, when i run “ls -l”, it shows debian even though im logged in as root

thanks

Dan

You can start by telling us the exact error message you get on the command line when trying to run this app. Then, which language and toolchain you’re trying to use.

Bash ?

dpkg-reconfigure dash → select no to use bash.

hello,

i have a beaglebone black with debian installed on the eMMC and i would like
to write and run programs off the sdcard.
but when i try to change a bash file to executable:

  chmod +x /media/45AA-4F26/myprogram (45AA-4F26 is the name of my
sdcard)

the file does show as an executable:

ls -l /media/45AA-4F26/

fat16/fat32/etc?

...
-rw-r--r-- 1 debian debian 99 May 28 20:24 myprogram
....

any idea why this is? is there a permissions issue?

Well fat doesn't support linux permissions...

Also, when i run "ls -l", it shows debian even though im logged in as root

it was created by the "debian" user..

Regards,

problem solved!

sdcard was FAT format
reformat to ext3
thanks everyone