Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active February 8, 2025 03:17
Show Gist options
  • Save miguelmota/d1d70d19fbd763afdd65c5c1375ddbde to your computer and use it in GitHub Desktop.
Save miguelmota/d1d70d19fbd763afdd65c5c1375ddbde to your computer and use it in GitHub Desktop.
OS X mount FAT32 partition with read/write permissions
diskutil list
diskutil unmount /dev/disk0s6
sudo mount -w -t msdos /dev/disk0s6 /Volumes/data
Make sure to move the switch up on the side of the SD card to disable write-protected mode.
@iTimeTraveler
Copy link

@mohamed-ea @BrianHenryIE seems like this is a common issue now, I solved it on my case. I was getting:

$ sudo mount -w -t msdos /dev/disk6 /Volumes/fat
mount_msdos: Unsupported sector size (0)
mount: /Volumes/fat failed with 71

The problem is because we were trying to either mount the disk or the wrong partition, make sure you are mounting the correct partition on your disk

Screenshot 2023-02-08 at 10 16 50 PM

it's work for me, thanks. I find the correct partition on my disk. it's disk4s1 instead of disk4 on my Macbook M3.

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