← 返回命令列表

Linux command

balena-etcher 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Launch Balena Etcher

balena-etcher

Flash an image

balena-etcher [image.img] --drive [/dev/sdX] --yes

Flash an image

balena-etcher [image.img] --drive [/dev/sdb] --drive [/dev/sdc]

Flash and validate

balena-etcher [image.img] --drive [/dev/sdX] --check --yes

说明

Balena Etcher is a cross-platform graphical application for flashing OS images to SD cards and USB drives. It provides a simple three-step process: select image, select drive, and flash. When launched without arguments, it opens the GUI. When given command-line arguments specifying an image and drive, it operates in CLI mode. The application validates writes by reading back and comparing checksums, ensuring reliable image flashing. It supports raw images (.img, .iso), compressed images (.zip, .gz, .xz, .bz2), and can flash directly from URLs. Etcher automatically detects removable drives and prevents accidental selection of system drives. It supports a multi-write feature to flash multiple drives simultaneously.

参数

-d, --drive _device_
Specify the target drive to flash (repeatable for multiple drives).
-y, --yes
Confirm automatically without prompting.
-c, --check
Validate the write by reading back and comparing checksums after flashing.
-u, --unmount
Unmount drives before flashing.
-h, --help
Display help information.
-v, --version
Show version number.

FAQ

What is the balena-etcher command used for?

Balena Etcher is a cross-platform graphical application for flashing OS images to SD cards and USB drives. It provides a simple three-step process: select image, select drive, and flash. When launched without arguments, it opens the GUI. When given command-line arguments specifying an image and drive, it operates in CLI mode. The application validates writes by reading back and comparing checksums, ensuring reliable image flashing. It supports raw images (.img, .iso), compressed images (.zip, .gz, .xz, .bz2), and can flash directly from URLs. Etcher automatically detects removable drives and prevents accidental selection of system drives. It supports a multi-write feature to flash multiple drives simultaneously.

How do I run a basic balena-etcher example?

Run `balena-etcher` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --drive _device_ do in balena-etcher?

Specify the target drive to flash (repeatable for multiple drives).