Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Created May 23, 2025 07:55
Show Gist options
  • Save vyspiansky/04ac152c28833e14862ea4a05125161f to your computer and use it in GitHub Desktop.
Save vyspiansky/04ac152c28833e14862ea4a05125161f to your computer and use it in GitHub Desktop.
Enable write access to an SD card on macOS

To list mounted volumes use the following command in the Terminal (Applications > Utilities):

ls -la /Volumes/

For instance, our SD card is mounted as NO NAME.

Let's check extended attributes

ls -la@ "/Volumes/NO NAME"

As a result we see that our SD card is formatted as MS-DOS/FAT32 (indicated by the com.apple.filesystems.msdosfs.volume_id extended attribute), and all files/folders have restrictive 600/700 permissions instead of the typical 755/644 for FAT32.

Change permissions to allow broader access:

sudo chmod 755 "/Volumes/NO NAME"

NOTE: The chmod 755 command modified the mount options rather than actual file permissions.

Create a test file to confirm write access is working:

touch "/Volumes/NO NAME/test.txt"

Or check your actual access with:

[ -w "/Volumes/NO NAME" ] && echo "Write access: YES" || echo "Write access: NO"

Output:

Write access: YES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment