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 .
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.