Raspberry Pi Imager

About Raspberry Pi Imager

Raspberry Pi Imager is the recommended tool for installing an operating system (OS) onto boot media for your Raspberry Pi, such as a microSD card, a USB drive, or an NVMe drive. It downloads an OS image, writes it to your storage device, and then verifies that the image was written correctly.

For operating systems that support it, Imager can also preconfigure your Raspberry Pi before first boot, including its hostname, localisation, user credentials, Wi-Fi network, Raspberry Pi Connect, and SSH. For more information, see Customise your operating system.

Imager runs on Windows, macOS, Linux, and Raspberry Pi OS. It also runs directly on a Raspberry Pi (without any OS) as part of Network Install, a bootloader feature that downloads Imager over Ethernet so that you can install an OS without using another computer. For more information, see Install over the network.

By default, Imager lists the operating systems available for your Raspberry Pi model from an online list maintained by Raspberry Pi. You can also write an image file stored on your computer, or configure Imager to use your own list of images. For more information, see Write an image file from your computer and Use a custom image repository.

Tip
If you’re setting up a Raspberry Pi for the first time, follow Install an OS onto boot media, which covers the essential steps. This page is the full reference for Imager.

The source code for Imager is available in the rpi-imager repository on GitHub.

Install Imager

Install Imager on the computer that you’ll use to write your boot media.

  • Windows

  • macOS

  • Raspberry Pi OS

  • Other Linux distributions

  1. Download the Windows installer from the Raspberry Pi software page.

  2. Run the installer and follow the prompts.

  3. Launch Raspberry Pi Imager from the Start menu or from the shortcut on your desktop.

  1. Download the macOS disk image (.dmg) from the Raspberry Pi software page.

  2. Open the disk image and drag Raspberry Pi Imager into your Applications folder.

  3. Launch Raspberry Pi Imager from your Applications folder.

  1. Install Imager from the Raspberry Pi OS package repository:

    $ sudo apt update
    $ sudo apt install rpi-imager
  2. Launch Raspberry Pi Imager from the Accessories menu. Enter your password if prompted.

  1. Download the AppImage from the Raspberry Pi software page.

  2. Make the AppImage executable, replacing <version> with the version number in the file name:

    $ chmod +x imager_<version>_amd64.AppImage
  3. Run the AppImage as root:

    $ sudo ./imager_<version>_amd64.AppImage
Note
On Raspberry Pi OS Lite, which has no desktop, you can install the rpi-imager-cli package instead with sudo apt install rpi-imager-cli. This package has no graphical interface, and you can’t install it alongside the rpi-imager package. For instructions, see Write an image from the command line.

Imager checks for updates when it starts. If a later version is available, Imager prompts you to download it.

To check which version of Imager you’re running, select App Options. The version number is shown at the bottom of the App Options dialog.

Write an image

Imager guides you through a series of tabs: Device, OS, Storage, Customisation (for operating systems that support it), and Writing.

To write an OS image to a storage device:

  1. Launch Imager. For instructions, see Install Imager.

  2. In the Device tab, select your Raspberry Pi model and then select Next.

    Imager uses your selection to filter the OS list so that it shows the operating systems that are compatible with your Raspberry Pi model.

    The Device tab in Imager, listing Raspberry Pi models from Raspberry Pi 5 to Raspberry Pi 1, with Raspberry Pi 5 selected.
  3. In the OS tab, choose an operating system and then select Next.

    The recommended OS for your Raspberry Pi model is at the top of the list. Some entries are categories; select a category to see the operating systems in it. To install an image file that’s stored on your computer, select Use custom. For more information, see Write an image file from your computer.

    The OS tab in Imager, listing operating systems, with the recommended Raspberry Pi OS (64-bit) selected at the top.
  4. Connect your storage device to your computer. For example, plug a microSD card into your computer using an external or built-in SD card reader.

  5. In the Storage tab, select your storage device and then select Next.

    If you have more than one storage device connected to your computer, take care to choose the correct one. You can often identify the correct storage device by its size. If you’re unsure, disconnect the other devices until you’ve identified the device that you want to write to.

    The Storage tab in Imager, with an SD card reader selected and the Exclude system drives checkbox selected.
    Warning
    We strongly recommend that you keep Exclude system drives selected. This hides the drives that your computer uses, including the one it runs from, so that you can’t accidentally erase your data and make your computer unusable.
  6. If the OS you chose supports customisation, the Customisation tab is displayed. Configure your Raspberry Pi as described in Customise your operating system, or select Skip customisation.

  7. In the Writing tab, review the Summary of your choices and then select Write.

    The Writing tab in Imager, showing a summary of the selected device, operating system, and storage device, and a list of the customisations to apply.
  8. Imager warns you that it’s about to erase all data on your storage device. To continue, select I understand, erase and write. If your computer asks for permission for Imager to write to your storage device, grant it.

    A dialog in Imager warning that writing permanently erases all data on the storage device, with 'Cancel' and 'I understand, erase and write' buttons.
  9. Wait while Imager writes the image to your storage device and then verifies it. Each stage can take several minutes, depending on the size of the image and the speed of your storage device.

    We recommend that you let verification finish, because it checks that the image on your storage device matches the original. If you want to skip it, select Skip verification.

  10. When the Done tab appears, select Finish.

If you turned on Eject media when finished in App options, Imager ejects the storage device for you. Otherwise, eject it safely using your computer’s file manager before you remove it.

Write an image file from your computer

You can use Imager to write an OS image that you’ve downloaded yourself, for example from the Raspberry Pi OS downloads page or from a third-party vendor such as Ubuntu.

  1. In the OS tab, go to the bottom of the list and select Use custom.

  2. Browse to the image file on your computer and select it. Imager accepts uncompressed images (.img and .wic) and compressed images (.zip, .gz, .xz, and .zst).

  3. Continue from the Storage tab as described in Write an image.

Imager can’t customise an image unless it declares support for customisation. If you write an image from your computer, Imager might not show the Customisation tab. To customise an image that you’ve downloaded, create a local manifest that describes it. For instructions, see Generate a local manifest file in the rpi-imager repository.

Erase a storage device

To erase a storage device and format it with a single FAT32 partition, select Erase at the bottom of the OS tab, and then continue from the Storage tab as described in Write an image.

Write a utility image

The OS tab also includes utility images that don’t install an operating system. For example, the bootloader images under Misc utility images > Bootloader restore or reconfigure the bootloader of a Raspberry Pi. For instructions, see Reflash the bootloader.

Install over the network

With Network Install, your Raspberry Pi downloads Raspberry Pi Imager from the internet and runs it, so you can install an OS without another computer or an SD card reader.

Network Install can write an OS to any compatible storage device connected to your Raspberry Pi, including SD cards, USB drives, and SSDs.

You can also use Network Install to reinstall Raspberry Pi OS on the built-in SSD of a Raspberry Pi 500+ without another computer, for example to move from Bookworm to Trixie. For instructions, see Move to a new version of Raspberry Pi OS.

Warning
Network Install erases all data on the storage device that you write to. Back up any files you want to keep before you start.

Prerequisites

To use Network Install, you need:

  • One of the following Raspberry Pi models: Raspberry Pi 4B or later, or a Raspberry Pi 400 keyboard computer or later.

  • A bootloader that supports Network Install. If your Raspberry Pi runs an older bootloader, update it first. For instructions, see Update the bootloader in the Configuration page.

  • A display connected to your Raspberry Pi.

  • A keyboard connected to your Raspberry Pi. Keyboard computers use their built-in keyboard. A mouse is optional, but recommended.

  • A wired internet connection through an Ethernet cable. Network Install doesn’t support Wi-Fi.

  • A storage device to install the OS onto, such as an SD card, USB drive, or SSD, connected to your Raspberry Pi. The storage device can be blank, or it can already contain an OS that you want to replace.

Launch Network Install

To launch Network Install, do the following:

  1. Connect power, a display, a mouse and an Ethernet cable to your Raspberry Pi. If your Raspberry Pi isn’t a keyboard computer, also connect a keyboard.

  2. Press and hold the Shift key, and then power on your Raspberry Pi. Keep holding Shift until Network Install starts.

    The bootloader screen prompts you to press and hold Shift. Network Install starts after you’ve held Shift long enough.

    The bootloader screen, prompting you to press and hold the Shift key to start Network Install.
  3. Wait while Network Install connects to the internet. If it doesn’t connect, check that the Ethernet cable is connected to your Raspberry Pi and to your router.

    The Network Install screen, waiting for a network connection and prompting you to connect an Ethernet cable.
  4. Wait while Network Install downloads Raspberry Pi Imager. If the download fails, power off your Raspberry Pi and start again.

    The Network Install screen, showing the progress of the installer download.
  5. When the download finishes, Imager starts on your Raspberry Pi. Follow the instructions in Write an image, starting from the Device tab.

    In the Storage tab, select the storage device that you want to install the OS onto.

  6. When the Done tab appears, select Reboot. Your Raspberry Pi restarts and boots into the new OS.

Move to a new version of Raspberry Pi OS

Updating your software keeps your Raspberry Pi on the same major version of Raspberry Pi OS.

To move to a new major version, for example from Bookworm to Trixie, reinstall Raspberry Pi OS. On a Raspberry Pi 500+ that came with Bookworm on its built-in SSD, use Network Install to do this.

  1. Check which version of Raspberry Pi OS you’re running. Open a terminal window and run the following command:

    $ grep VERSION_CODENAME /etc/os-release

    If the output is VERSION_CODENAME=bookworm, you’re running Bookworm. If the output is VERSION_CODENAME=trixie, you’re already running Trixie and don’t need to reinstall.

  2. Back up the files that you want to keep, such as the files in your home folder, to a USB drive or another computer. Reinstalling erases everything on the storage device, including any software you’ve installed.

  3. Launch Network Install. For instructions, see Launch Network Install. When Imager starts:

    • In the OS tab, choose Raspberry Pi OS. The recommended version for your Raspberry Pi model is at the top of the list.

    • In the Storage tab, select the storage device that your Raspberry Pi boots from. On Raspberry Pi 500+, this is the built-in SSD.

  4. After your Raspberry Pi boots into the new OS, copy your backed-up files back, and reinstall any software that you need.

For more information about Network Install configuration, see HTTP boot.

Customise your operating system

Raspberry Pi OS and some third-party operating systems support customisation.

Customisation lets you configure your Raspberry Pi’s OS using Imager so that it’s ready to use from first boot. This is essential for a headless setup, because your Raspberry Pi needs network and remote access settings before you can connect to it.

If the OS you chose supports customisation, the Customisation tab opens after you select your storage device. You can preconfigure:

  • The hostname

  • The capital city, time zone, and keyboard layout.

  • A username and password.

  • Wi-Fi credentials.

  • SSH.

  • Secure boot signing, for operating systems that support it.

  • Raspberry Pi Connect.

To skip customisation, select Skip customisation. If you skip customisation, Raspberry Pi OS asks you for the same information during first boot in the configuration wizard.

Imager saves your customisation settings and fills them in the next time you write an image, so you don’t have to enter them again. To remove saved settings, see App options.

To customise your operating system, follow the instructions for each of the following subtabs and then select Next.

Hostname

In the Hostname subtab, enter a name for your Raspberry Pi. The hostname can contain letters, numbers, and hyphens, but no other characters.

Whether other devices can find your Raspberry Pi by this hostname depends on the OS. Raspberry Pi OS broadcasts the hostname to the network using mDNS, and sends it to your router when it requests an IP address. When you connect your Raspberry Pi to your network, other devices on that network can communicate with your Raspberry Pi using <hostname>.local, or <hostname>.lan if your router supports it.

The Hostname subtab in Imager, with a field for entering the hostname.
The Hostname subtab

Localisation

In the Localisation subtab, choose your capital city. To find your city, open the list and enter the first few letters of its name. Imager filters the list as you enter each letter.

Imager suggests the time zone and keyboard layout for that city. You can change these settings independently of one another.

Your selection also sets the Wi-Fi regulatory domain, which always corresponds to the selected capital city. For more information about the regulatory domain, see Set the WLAN country.

The Localisation subtab in Imager, with lists for choosing the capital city, time zone, and keyboard layout.
The Localisation subtab

User

In the User subtab, enter a username and password for the admin user of your Raspberry Pi.

The username must be lowercase. It can contain letters, numbers, underscores, and hyphens, and no other characters.

The User subtab in Imager, with fields for the username, password, and password confirmation.
The User subtab
Important
Choose a strong password that you’ll remember. You need it to run commands as a superuser (sudo commands), and to sign in if you turn off auto login. For advice, see the UK National Cyber Security Centre’s guidance on using three random words.
  • For a headless setup, these are the credentials you use to connect to your Raspberry Pi over the network.

  • By default, Raspberry Pi OS with desktop signs in to the desktop automatically when it starts up, so you don’t need to enter these credentials then. If other people might have access to your Raspberry Pi, turn off auto login. For instructions, see Require a password from startup.

  • Raspberry Pi OS asks for the password you set here when you run commands as a superuser. We don’t recommend turning off this requirement. For more information, see Turn off password for superuser commands in the Configuration page.

Wi-Fi

In the Wi-Fi subtab, select whether to connect to a secure network or an open network.

If you’re running Imager on macOS, it might first ask whether you’d like to pre-fill the Wi-Fi password from the macOS keychain. If you do, select the option to use the keychain, and then enter the user name and password of an administrator account on your Mac.

On first use, Imager typically pre-fills the SSID (name) and password of the Wi-Fi network you’re currently connected to. If there’s no pre-filled information, or if you want to change it, enter the SSID of the wireless network.

For secure networks, enter and confirm the password for the network.

If your network doesn’t broadcast its SSID, select Hidden SSID so that your OS can find it.

If you’re setting up a headless Raspberry Pi that isn’t connected to Ethernet, set up your Wi-Fi connection now, because your Raspberry Pi needs to know how to get online the moment it boots.

The Wi-Fi subtab in Imager, with buttons for choosing a secure or open network, fields for the SSID and password, and a Hidden SSID checkbox.
The Wi-Fi subtab

Remote access

In the Remote access subtab, configure SSH.

The Remote access subtab in Imager, with an Enable SSH switch and options for password or public key authentication.
The Remote access subtab

To use your Raspberry Pi remotely over your network, turn on Enable SSH.

If you plan to run a headless Raspberry Pi, configure Raspberry Pi Connect, turn on SSH, or both. We recommend Raspberry Pi Connect for new users.

If you enable SSH, choose one of the following authentication methods:

  • Use password authentication: Sign in to your Raspberry Pi over the network using the username and password you entered in the User subtab.

  • Use public key authentication: Sign in using SSH key-based authentication. If you already have an SSH public key on your computer, Imager uses it to pre-fill the key list. To add a key, do one of the following:

    • Paste a public key into the key field, or select Browse to choose a public key file, and then select Add.

    • Select Import from GitHub, enter a GitHub username, and then select Add to add the public SSH keys published by that GitHub account.

For more information about SSH keys, see SSH.

Secure boot

Imager can sign the boot partition of an operating system with your private key, for use with Raspberry Pi secure boot.

When you turn on secure boot signing, Imager creates the boot.img and boot.sig files on the boot partition.

The Secure Boot subtab appears when the OS you chose declares that it supports secure boot. To show the subtab for any OS, launch Imager with the --enable-secure-boot option (see Command-line options), or turn on Force Secure Boot Available in Debug options.

The Secure Boot subtab in Imager, with an Enable Secure Boot switch and options for private key selection.
The Secure Boot option in the Debug Options subtab

To sign the boot partition:

  1. In the Secure Boot subtab, select an RSA 2048-bit private key in PEM format. If you’ve already set a key in App options, Imager uses that key.

  2. Turn on Enable Secure Boot Signing. Imager shows the fingerprint of the public key that corresponds to your private key.

Warning
A Raspberry Pi with secure boot enabled doesn’t boot an image unless it’s signed with the matching key. Keep your private key secure, and make sure you’re using the correct key before you write the image.

For more information about secure boot, see the secure boot documentation in the usbboot repository.

Raspberry Pi Connect

Some operating systems also show the Raspberry Pi Connect subtab.

To link your device to your Raspberry Pi Connect account, complete the following steps:

  1. Turn on Enable Raspberry Pi Connect.

    The Raspberry Pi Connect subtab in Imager, with the Enable Raspberry Pi Connect switch.
  2. Select Open Raspberry Pi Connect. This opens the Raspberry Pi Connect webpage in your default browser.

    The Raspberry Pi Connect sign-in page, prompting you to sign in with your Raspberry Pi ID.
  3. Sign in to your Raspberry Pi ID account or, if you don’t have an account yet, sign up.

  4. In the New auth key page, create your auth key. This is a single-use, temporary token. Personal auth keys expire six hours after creation, and organisation auth keys expire between 1 and 90 days after creation (1 day by default).

    The New auth key page in Raspberry Pi Connect, with a Create auth key and launch Raspberry Pi Imager button.

    If you’re a member of one or more organisations, select the organisation or account to associate the key with. Then select Create auth key and launch Raspberry Pi Imager.

  5. Your browser might ask whether you want to allow the site to open Raspberry Pi Imager. Confirm that you want to open Raspberry Pi Imager.

    • Imager opens at the Raspberry Pi Connect subtab, which shows a message to confirm that Imager received the authentication token from the browser, and a field containing the token.

    • If the token isn’t copied across, you can copy it into Imager manually. Open the Having trouble? section of the Raspberry Pi Connect web page, copy the token, and paste it into the token field in Imager.

After you’ve written the image, boot your Raspberry Pi and connect it to the internet before the auth key expires.

If you provision devices for a Raspberry Pi Connect organisation, you can turn on Raspberry Pi Connect for Organisations in App options.

In this mode, the Raspberry Pi Connect subtab asks for an organisation API key instead of an auth key. Imager uses the API key to create a single-use auth key and writes it into the image. Your Raspberry Pi then joins your organisation when it first boots. If you write to a Compute Module or another device over USB (see Write to a Compute Module or USB boot device (RPIBOOT)), Imager registers the device with your organisation directly. For more information, see Raspberry Pi Connect for Organisations.

Interfaces and features

Some device and operating system combinations show the Interfaces & Features tab. On this tab, you can enable the following:

  • Hardware interfaces needed to use your Raspberry Pi with certain peripherals, such as sensors, displays, network controllers, or embedded systems: I2C, SPI, 1-Wire, and serial.

  • USB Gadget Mode. For more information, see Raspberry Pi USB Gadget.

To show this subtab for an OS in a custom list, see Show the Interfaces & Features subtab.

The Interfaces & Features subtab in Imager, with switches for I2C, SPI, 1-Wire, and USB Gadget Mode, and a list for serial.
The Interfaces & Features subtab

App options

App options control how Imager behaves, and apply to every image you write.

To change them, select App Options in the bottom-left corner of Imager, change the options you want, and then select Save.

The App Options dialog in Imager, with a switch or button for each app option.
The App Options dialog
Play sound when finished

Plays an alert sound when the write finishes.

Eject media when finished

Ejects the storage device automatically when the write finishes successfully.

Disable warnings

Skips the confirmation prompts before Imager writes an image. Don’t turn this on unless you write images often and you’re confident you’ve selected the correct storage device. If you select a system drive, Imager still asks you to enter the drive’s name before it writes to it.

Content Repository

Changes where Imager gets its list of operating systems and devices. For more information, see Use a custom image repository.

Secure Boot RSA Key

Sets the RSA 2048-bit private key, in PEM format, that Imager uses to sign boot partitions. For more information, see Secure boot.

Raspberry Pi Connect for Organisations

Changes the Raspberry Pi Connect customisation subtab so that it registers each device you write with a Raspberry Pi Connect organisation. For more information, see Raspberry Pi Connect.

Saved Customisation

Select Clear to remove all saved customisation settings, such as the hostname, Wi-Fi credentials, and user credentials.

Enable anonymous statistics (telemetry)

Sends anonymous usage statistics to Raspberry Pi. For more information, see Telemetry.

The App Options dialog also shows the version of Imager that you’re running.

Use a custom image repository

By default, Imager downloads its list of operating systems and devices from Raspberry Pi.

Raspberry Pi uses custom lists for some products, such as the Compute Module 5 Programming Jig.

You can also configure Imager to use a custom list of your own images, or to provision a specific product. A custom list is a JavaScript Object Notation (JSON) file, sometimes called a manifest, that follows the Imager OS list schema. You can host the file on a web server, or store it on the computer that runs Imager.

For guidance on creating and validating a list, see Using the Raspberry Pi Imager JSON Schema.

To use a custom list, do one of the following:

  • App options

  • Command line

  • Manifest file

  1. Select App Options in the bottom-left corner of Imager.

  2. Next to Content Repository, select Edit.

  3. Choose one of the following:

    • Use custom file: Browse to a JSON file on your computer.

    • Use custom URL: Enter the URL of a JSON file.

  4. Select Apply & Restart. Imager resets your device and OS selections, and returns to the Device tab.

    To go back to the default list, repeat these steps and choose Raspberry Pi (default).

Launch Imager with the --repo option, followed by a URL or the path to a JSON file. For example:

$ rpi-imager --repo https://example.com/my-os-list.json

To make this easier to use regularly, create a shortcut that launches Imager with this option. For more command-line options, see Command-line options.

Open a manifest file with the .rpi-imager-manifest extension. The file opens in Imager.

To set the repository that Network Install uses, see IMAGER_REPO_URL.

Show the Interfaces & Features subtab

The Interfaces & Features customisation subtab appears for operating systems in your custom list that support it. For more information about the subtab, see Interfaces and features.

To show the subtab for an OS in your custom list:

  1. In the OS entry, set init_format to cloudinit-rpi.

  2. In the OS entry, add a capabilities array that lists the interfaces and features the OS supports.

  3. In the entry for each device in the devices array of the imager object, add a capabilities array that lists the interfaces and features the device supports.

The capabilities available in the subtab include i2c, spi, onewire, serial, and usb_otg (USB Gadget Mode). Imager doesn’t show an option on the subtab unless both the OS entry and the device entry list it. If the two entries have no capabilities in common, Imager doesn’t show the subtab.

Note
Capabilities can change between Imager versions. For the current list of capabilities, and the full list of OS and device fields, see the Imager OS list schema.

The following example shows the I2C, SPI, and USB Gadget Mode options for Raspberry Pi 5. Other required fields are omitted:

{
  "imager": {
    "devices": [
      {
        "name": "Raspberry Pi 5",
        "capabilities": ["i2c", "spi", "onewire", "serial", "usb_otg"]
      }
    ]
  },
  "os_list": [
    {
      "name": "My OS",
      "init_format": "cloudinit-rpi",
      "capabilities": ["i2c", "spi", "usb_otg"]
    }
  ]
}

Debug options

Debug options are advanced settings for troubleshooting, testing, and provisioning.

Changing debug options can affect write performance and data integrity, so don’t do this unless it is necessary.

To open Debug Options, press Ctrl+Alt+S on Windows or Linux, or Cmd+Option+S on macOS. After making your changes, select Apply.

The following options are the most commonly used.

Write to a Compute Module or USB boot device (RPIBOOT)

To write an image directly to a Compute Module, or to another device that boots in USB boot mode, Imager must be able to detect the device using rpiboot. Imager then writes to the device over USB using the fastboot protocol. To turn this on:

  1. Open Debug Options.

  2. Go to Advanced Features.

  3. Turn on Enable Rpiboot/Fastboot Support.

  4. Select Apply.

Imager saves this setting and applies it whenever it starts.

When you connect a device in USB boot mode, it appears in the Device tab as Connected via USB. For more information, see Flash an image to a Compute Module.

Other options

Force IPv4-only Downloads

Downloads over IPv4 instead of IPv6. Turn this on if downloads fail because of broken IPv6 routing on your network.

Counterfeit Card Mode (skip end-of-device checks)

Skips operations at the end of the storage device. Don’t use this unless your SD card reports a larger capacity than it has. The image must be smaller than the card’s real capacity.

Force Secure Boot Available

Shows the Secure Boot customisation subtab for every OS. This is equivalent to the --enable-secure-boot command-line option. For more information, see Secure boot.

Direct I/O, async I/O, and periodic sync options

Control how Imager writes data to the storage device. Don’t change these unless you’re diagnosing a write performance problem, or Raspberry Pi engineering staff ask you to.

Verbose Performance Logging

Logs detailed timing information for each write, to help diagnose performance problems.

Command-line options

You can launch Imager from the command line with options that change how the graphical interface behaves.

You can also run Imager in command-line mode, which writes an image without opening the graphical interface. This is useful for scripting and for provisioning many devices.

On Raspberry Pi OS, the command is rpi-imager. If you installed the rpi-imager-cli package, the command is rpi-imager-cli, which runs in command line mode without the --cli option. On other Linux distributions, run the AppImage instead.

To see all available options, run:

$ rpi-imager --help

Graphical interface options

Option Description

--repo <url-or-file>

Uses a custom OS list from a URL or a local JSON file. For more information, see Use a custom image repository.

--disable-telemetry

Turns off anonymous telemetry and saves this setting. For more information, see Telemetry.

--enable-telemetry

Clears the saved telemetry setting and restores the default.

--enable-secure-boot

Shows the Secure Boot customisation subtab for every OS. For more information, see Secure boot.

--enable-language-selection

Shows the language selection step when Imager starts.

--qm <file>

Uses a custom Qt translation (.qm) file.

--debug

Prints debug messages to the console.

--log-file <path>

Writes log output to a file.

--version

Prints the version of Imager.

Write an image from the command line

To write an image without opening the graphical interface, use the --cli option. Command line mode requires root privileges on Linux and macOS, and Administrator privileges on Windows.

$ sudo rpi-imager --cli [options] <image> <device>
  • <image> is the path or URL of the image to write.

  • <device> is the storage device to write to, for example /dev/mmcblk0 or /dev/sdb.

Warning
Command line mode doesn’t ask for confirmation before it erases the storage device. Check that <device> is correct before you run the command.

Command line mode supports the following options:

Option Description

--sha256 <hash>

Checks that the image matches the expected SHA-256 hash before writing it.

--disable-verify

Skips verification after writing.

--disable-eject

Doesn’t eject the storage device after verification.

--first-run-script <file>

Adds a firstrun.sh script to the image.

--cloudinit-userdata <file>

Adds a cloud-init user-data file to the image.

--cloudinit-networkconfig <file>

Adds a cloud-init network-config file to the image.

--secure-boot-key <key-file>

Signs the boot partition with an RSA 2048-bit private key in PEM format. For more information, see Secure boot.

--cache-file <file>

Uses a custom cache file. Requires --sha256.

--enable-writing-system-drives

Allows Imager to write to a system drive. By default, command line mode refuses to write to system drives. Don’t use this option unless you’re certain that the destination device is correct.

--quiet

Suppresses all console output except errors.

--debug

Prints debug messages to the console.

--log-file <path>

Writes log output to a file.

For example, to write an image and check its hash:

$ sudo rpi-imager --cli --sha256 <hash> raspios.img.xz /dev/sdb

To write an image and sign its boot partition for secure boot:

$ sudo rpi-imager --cli --secure-boot-key ~/secure-boot-key.pem raspios.img.xz /dev/sdb

Telemetry

By default, Imager collects anonymous usage statistics (telemetry). Raspberry Pi uses these statistics to understand which operating systems and versions of Imager people use, and to prioritise work on Imager.

When you write an image, Imager sends the following information:

  • The URL, category, and name of the OS you selected

  • The version of Imager

  • Whether Imager is running on a desktop computer or as part of Network Install

  • The version, architecture, and locale of your computer’s operating system

  • When running as part of Network Install, the revision of your Raspberry Pi

Raspberry Pi stores this data as aggregate counts, and doesn’t associate any personal data with them. To see the aggregate data, visit rpi-imager-stats.raspberrypi.com. For more information about how the data is stored, see the Imager README.

Turn off telemetry

To turn off telemetry, do one of the following:

  • Select App Options, turn off Enable anonymous statistics (telemetry), and then select Save.

  • Launch Imager with the --disable-telemetry option. Imager saves this setting for future launches.

Troubleshooting

Imager doesn’t show my storage device

  • Check that the storage device is connected and that your computer recognises it.

  • If the Storage tab says that all devices are hidden by the filter, the device might be one your computer treats as a system drive. Don’t clear Exclude system drives unless you’re certain that you’ve identified the correct device.

  • If the device is read-only, check for a write-protect switch on the SD card or adapter.

  • If Imager reports a permissions problem when listing storage devices, run Imager with administrator privileges. On Linux, run Imager as root.

Imager can’t download the OS list

If Imager can’t download the device list or OS list, check your internet connection and select Retry.

You can still write an image file that’s stored on your computer by selecting Use custom in the OS tab. For more information, see Write an image file from your computer.

If downloads fail on a network with broken IPv6 routing, turn on Force IPv4-only Downloads in Debug options.

Verification fails

If verification fails, the image on your storage device doesn’t match the original image. Try the following:

  • Write the image again.

  • Try a different card reader or USB port.

  • Try a different storage device. A storage device that repeatedly fails verification might be faulty, or might be a counterfeit that reports more capacity than it has.

My Raspberry Pi doesn’t boot after writing an image

Make sure you selected the correct Raspberry Pi model in the Device tab, and that you let verification finish. For more troubleshooting steps, see Troubleshooting in Getting started.