FG
💻 Software

Can't execute a script on a mounted external drive

Fresh5 days ago
Mar 15, 202620129 views
Confidence Score0%
0%

Problem

The /mnt/ext is mounted to an ext2 filesystem, an external hard drive. For some reason I can't run scripts from there. Please see the session below. I would love to find out why I see the error.

Error Output

luntain@plato /mnt/ext $ echo "echo success" > k.sh
luntain@plato /mnt/ext $ chmod 777 k.sh
luntain@plato /mnt/ext $ ./k.sh
-bash: ./k.sh: Permission…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can't execute a script on a mounted external drive

Low Risk

Probably there was a attribute set when the filesystem was mounted; maybe it is your distribution 'feature'. To check it you can execute that will show mount options in parentheses, and to remove flag you can use under root. Also, make sure you plac…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment