How to prepare SD Card for Raspberry Pi on a MAC
If you didn’t buy the pre-populated SD card to boot up your Pi, you need to prepare one yourself. Relax, it’s easy…
These instructions are for preparing the SD card on a MAC, but should work on various flavours of Linux as well.
- Insert the card into the card reader (my MAC had an integral SD card reader but you can use any)
- Format it as FAT filesystem via Disk Utility (easily found via Spotlight search – top right lens)
- Eject the SD Card
- Fire up a shell/terminal window and run
- Insert the SD card into the card reader
- Run df -h again on the terminal and note the device that wasn’t listed when you first issued
df -hcommand. This is your SD card. Mine was called
/dev/disk3s1but yours may vary.
- Issue the command: sudo diskutil unmount
/dev/disk3s1(change the disk3s1 to match your device name for the SD Card).
- Issue the command:
sudo dd if= of=/dev/disk3s1 bs=1m(again change the
/dev/disk3s1to match yours)
- Wait a looooong time… My 8 GB card took at least 15minutes by the watch!
The SD card is now ready to be used in a Raspberry Pi – Enjoy!
- Enable http/2 in Apache 16th Jan 2021
- MySQL Shell 8.x 16th Jan 2021
- vi/vim tricks 30th Dec 2020
- SELinux on CentOS 29th Dec 2020
- ssh-copy-id (password less ssh login) 26th Dec 2020
- MySQL auto_increment capacity calculation 26th Dec 2020
- Using UUID as a Primary Key 24th Dec 2020
- Keycloak and InnoDB Cluster 29th Nov 2020
- How to create Column in MySQL only if one does not exist? 19th Mar 2019
- Inject empty transactions in MySQL 5.6 GTID based Replication 25th Dec 2018
- Adding a new disk to CentOS 26th Aug 2018
- mysqldump extended inserts 26th Jun 2018
- CentOS Logical Volume Manager (LVM) 26th Oct 2017
- How to prepare SD Card for Raspberry Pi on a MAC 26th Jun 2017
- Convert .dmg file on a MAC to .iso 26th Apr 2017