一个方便的用于创建树莓派 SD 卡镜像的程序
树莓派

> 
> 开始在 Mac 上使用 Raspberry Pi Imager。
> 
> 
> 


![](/data/attachment/album/202004/21/233005nexe10x7xh1vvh1y.jpg)


有多种购买树莓派的方法，根据你的购买渠道的不同，可能附带或不附带操作系统。要在树莓派上安装操作系统，只需将操作系统镜像 “闪存” 到 SD 卡即可。为了使之尽可能简单，[树莓派基金会](https://www.raspberrypi.org/)推出一个 Raspberry Pi Imager 实用程序，你可以在所有主流平台上下载它。下面就来简单介绍一下这个有用的新工具。


### 安装 Imager


你通常可以在[树莓派下载](https://www.raspberrypi.org/downloads/)页面上找到 Raspberry Pi Imager。它有 Mac、Ubuntu 和 Windows 版本。我将下载并演示 Mac 版本。


Mac 的安装包是常规的 DMG 镜像，它会挂载到你的桌面，然后经典的安装界面就会出现：


![](/data/attachment/album/202004/21/233054ms81ut1lllut6sjp.png)


只需将可爱的树莓图标拖到“应用”文件夹，就可以完成。从启动台中调用它，你会看到一系列简单的按钮和菜单供你选择。真的不能比这更简单了：


![](/data/attachment/album/202004/21/233103v4486cfn49z4n95f.png)


### 可用的镜像和选项


默认选项包含各种树莓派型号的镜像。Raspbian 是首选，它有两个可用的选项，较小的 “Lite” 版本和较大的 “Full” 版本。LibreELEC Kodi 娱乐系统有各种特定于型号的版本。Ubuntu 18 和 19 有适用于不同树莓派型号的 32 位和 64 位版本。有一个 RPi 4 EEPROM 恢复程序，以及使用 FAT32 格式化卡的功能。最后，有一个通用的镜像安装程序选项，稍后我将进行尝试。这个简单而紧凑的程序非常方便。


### 安装一些镜像


我决定使用 16g 的 micro SD 卡。我选择了默认的 Raspbian 镜像，选择已连接的 USB/SD 设备，然后按下 “WRITE” 按钮。这是一个简短的演示：


![](/data/attachment/album/202004/21/233113mpylvrtwvlvhwwvz.gif)


我没有在此处发布整个操作过程。我认为它是在写入的时候下载了镜像，对于我的无线连接这花费了几分钟。该过程在完成之前要先经过写入，然后经过验证环节。完成后，我弹出设备，并将卡插入到我的树莓派 3 中，然后按照通常的图形 Raspbian 安装向导和桌面环境进行设置。


这对我来说还不够。我每天都会下载许多 Linux，今天我还在寻找更多。我回到了[树莓派下载](https://www.raspberrypi.org/downloads/)页面，并下载了 RISC OS 镜像。这个过程几乎一样容易。下载 RISCOSPi.5.24.zip 文件，将其解压缩，然后找到 ro524-1875M.img 文件。在 “Operating System” 按钮中，我选择了 “Use Custom” 并选择了所需的镜像文件。这个过程几乎是相同的。唯一真正的不同是我必须在下载目录中搜寻并选择一个镜像。文件写完后，回到树莓派 3，RISC OS 可以使用了。


### 对 USB C 的抱怨


顺便说一句，如今有多少人对 USB C 带来的不便感到沮丧？我使用的是只有 USB C 口的 MacBook Pro，我需要不断更换适配器才能完成工作。看看这个：


![](/data/attachment/album/202004/21/233151fxdufavyy5u4yxw4.png)


是的，那是一个 USB C 到 USB A 适配器，然后是一个 USB 到 SD 卡读卡器，以及一个 SD 到 micro SD 适配器。我可能可以在网上找到一些东西来简化此过程，但这些都是我手头有的部件，以支持我家五花八门的 Mac、Windows 和 Linux 主机。说到这里就不多说了，但我希望你能从这些疯狂的东西中得到一个笑点。


### 总结


新的 Raspberry Pi Imager 是一种简单有效的工具，可以快速烧录树莓派镜像。[BalenaEtcher](https://www.balena.io/etcher/) 是用于对可移动设备进行烧录的类似工具，但是新的 Raspberry Pi Imager 通过省去了获取那些常见镜像的步骤，使普通树莓派系统安装（如 Raspbian）更加容易。




---


via: <https://opensource.com/article/20/4/raspberry-pi-imager-mac>


作者：[James Farrell](https://opensource.com/users/jamesf) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
There are many ways to buy a Raspberry Pi, and depending on who you buy it from, it may or may not come with an operating system already installed on it. Getting an OS onto a Raspberry Pi is a matter of "flashing" an SD card with an OS image. To make this as easy as possible, the [Raspberry Pi Foundation](https://www.raspberrypi.org/) has introduced a Raspberry Pi Imager application, and you can download it for all major platforms. Here's a quick intro to this helpful new utility.

## Install the Imager

You can find the Raspberry Pi Imager over at the usual [Raspberry Pi Downloads](https://www.raspberrypi.org/downloads/) page. Versions exist for Mac, Ubuntu, and Windows. I will download and demonstrate the Mac version.

Installation on Mac consists of the usual DMG image that mounts to your desktop, and then a typical installer window appears:

![Raspberry Pi Imager installer Raspberry Pi Imager installer](https://opensource.com/sites/default/files/uploads/install_1.png)

Simply drag the cute raspberry icon to the Application folder, and you are done. Invoke that from Launchpad, and you are presented with a series of simple buttons and menus to choose from. It really cannot be simpler than this:

![Raspberry Pi Imager home screen Raspberry Pi Imager home screen](https://opensource.com/sites/default/files/uploads/screen_2_0.png)

## Images and options available

The default options contain a variety of images for various Raspberry Pi models. Raspbian is the top choice with two available options for smaller "Lite" and fatter "Full" versions available. The LibreELEC Kodi entertainment system is available in various model-specific builds. Ubuntu 18 and 19 have 32-bit and 64-bit builds available for different Pi models. There is an RPi 4 EEPROM recovery utility and a function to format your card using FAT32. Finally, a generic image installer option is available that I will try out a little later. Pretty handy for a simple and compact utility.

## Install some images

I had a 16g micro SD card that I decided to play with. I selected the default Raspbian image, chose my attached USB/SD device, and pressed WRITE. Here is a brief demo:

![Raspberry Pi Imager demo Raspberry Pi Imager demo](https://opensource.com/sites/default/files/uploads/demo_3.gif)


I didn't post the entire sequence there. I believe it downloaded the image as it was writing and took a few minutes on my wireless connection to finish. The process goes through a write and then a verify cycle before it is finished. When it was done, I ejected the device, popped the card into my RPi 3, and was treated to the usual graphical Raspbian setup wizard and desktop environment.

That wasn't quite enough for me; I get plenty of Linux on a daily basis and was looking for a little more today. I went back to the [Raspberry Pi Downloads](https://www.raspberrypi.org/downloads/) page and pulled down the RISC OS image. This process was nearly as easy. Download the RISCOSPi.5.24.zip file, extract it, and find the ro524-1875M.img file. From the Operating System button, I selected the Use Custom option and selected the desired image file. The process was pretty much the same; the only real difference being I had to hunt around my Downloads directory and select an image. Once the file was finished writing, back into the Pi 3, and RISC OS was ready to go.

## Gripes on USB C

This is just a silly aside, but how many of you are a bit frustrated with the total inconvenience of USB C these days? I'm using a MacBook Pro, which only has USB C ports, and I am subject to a never-ending swap of adapters to get things done. Take a look at this:

![USB C adapter USB C adapter](https://opensource.com/sites/default/files/uploads/adapter_4.png)

Yes, that is a USB C to USB A adapter, then a USB to SD card reader, and an SD to micro SD adapter inside. I probably could have found something online to simplify this, but these are the parts I had on hand to support my family's myriad Mac, Windows, and Linux hosts. Enough about that, but I hope you got a chuckle from that insanity.

## Summary

The new Raspberry Pi Imager is a simple and effective tool for getting off the ground quickly with Raspberry Pi images. [BalenaEtcher](https://www.balena.io/etcher/) is a similar tool for imaging your removable devices, but this new Raspberry Pi Imager makes the process of common RPi OS installations (like Raspbian) a bit easier by eliminating the steps to fetch those common images.

## 11 Comments