'Permission Denied' error when try to execute code in SD-card

So I am executing my dotnet application existing in SD_CARD I get a ‘PERMISSION DENIED’ error.

dotnet run
Unhandled exception: System.ComponentModel.Win32Exception (13): An error occurred trying to start process '/media/vicharak/DriveLeetCode/133CloneGraph/bin/Debug/net9.0/CloneGraph' with working directory '/media/vicharak/Drive/LeetCode/133CloneGraph'. Permission denied

Same thing will Occur If you set conda path in SD-CARD .

Similarly I got error when I want to store NPM packages in SD_Card

Can you do a screen recording and post here? It has to do with an application that you are running.

EXAMPLE : Renpy application
Executing from Downloading FOlder
bash renpy.sh
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: rockchip
libGL error: glx: failed to create dri2 screen
libGL error: failed to load driver: rockchip

But when tring to execute/run same application , I am getting error

vicharak@vicharak:/media/vicharak/SD/renpy-8.3.4-sdkarm$ bash renpy.sh 
renpy.sh: line 63: /media/vicharak/SD/renpy-8.3.4-sdkarm/lib/py3-linux-aarch64/renpy: Permission denied
renpy.sh: line 63: exec: /media/vicharak/SD/renpy-8.3.4-sdkarm/lib/py3-linux-aarch64/renpy: cannot execute: Permission denied
vicharak@vicharak:/media/vicharak/SD/renpy-8.3.4-sdkarm$ chmod +x lib/py3-linux-aarch64/renpy 
vicharak@vicharak:/media/vicharak/SD/renpy-8.3.4-sdkarm$ bash renpy.sh 
renpy.sh: line 63: /media/vicharak/SD/renpy-8.3.4-sdkarm/lib/py3-linux-aarch64/renpy: Permission denied
renpy.sh: line 63: exec: /media/vicharak/SD/renpy-8.3.4-sdkarm/lib/py3-linux-aarch64/renpy: cannot execute: Permission denied
vicharak@vicharak:/media/vicharak/SD/renpy-8.3.4-sdkarm$

@Prince01, Understood your point. I will make it work, and get back to you tomorrow.

You can solve above permission error by giving r (read), w (write) , x(executable) permission to SD_CARD mount point.

sudo chmod a+rwx <SD_CARD_Mount_Path>

eg.

sudo mount /dev/mmcblk1p1 /mnt
sudo chmod a+rwx /mnt

Where SD_CARD_Mount_Path is the directory you would like, a means “all” (users) + means “add the following rights” and rwx means r ead, w rite and ex ecute respectively.