foreword
In this article, share the use of built-in instructions on MacOS to install the operating system of Raspberry Pi.Regarding the dd command during this installation process, please carefully specify the parameter of your of, which is the location of the write output to the file,
If you make a mistake, your system will be destroyed.
step
Go to the official website to download the official operating system. In this article, I use RASPBIAN.https://www.raspberrypi.org/downloads/
1. First, connect the Micro SD card to the Mac through a USB card reader, and then use the command to view the mount.
diskutil list
As you can see, in my example, my Micro SD card is in /dev/disk3.2. The command to unmount is as follows: Please adjust the disk number of disk[n] according to your actual situation .
diskutil unmountDisk /dev/disk3
After successfully unmounting, you should be able to see the text as follows, I successfully unmounted all files on disk3.Unmount of all volumes on disk3 was successful
3. Next, you can use the dd command to write the downloaded img file to the sd card.
Write the image to rdisk3, the speed of using rdisk3 will be faster, if you fail to use rdisk[n], you can use disk[n] instead, where [n] is the number of the disk.
Do not copy the disk number (disk[n]), please know exactly what number you want to write to the sd card, for example /dev/disk4 .
sudo dd bs=1m if=2018-03-13-raspbian-stretch.img of=/dev/rdisk3 conv=sync
Here is a supplement to the description reference of rdisk:
Regarding the usage instructions of the dd command, we can view it by typing
man dd
on the terminal, and press q to leave.In the Linux world, for Linux system administrators, the dd command should be an easy-to-use and basic must-learn command.
If we use the memory of English words as an example, then the dd command must be a word worth remembering, and it will not be the kind of unpopular word that does not need to be memorized that may not be seen once in a lifetime.
Listed here, the instructions for conv=sync.
version value is specified, otherwise NUL bytes are used.
After the completion, you can take out the micro sd card and install it on the Raspberry Pi to start watching.
No Comment
Post your comment