Mac

To list the disk drives on a Mac:

$ diskutil list

The output should look like this screenshot:

Diskutil list output with the boot name and device location highlighted

In this list, /dev/disk1 has a device named boot, so in my case /dev/disk1 is the SD card location.

Get Learn Robotics Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.