Translated

This commit is contained in:
2019-06-13 18:41:34 +08:00 committed by GitHub
parent 8273737f9f
commit c0c225440f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,46 +1,46 @@
Translanting by robsean
BootISO A Simple Bash Script To Securely Create A Bootable USB Device From ISO File
BootISO 一个简单的 Bash 脚本来安全地从 ISO 文件中创建一个可启动的 USB 设备
======
Most of us (including me) very often create a bootable USB device from ISO file for OS installation.
为操作系统安装,我们中的大多数人(包括我)非常经常地从 ISO 文件中创建一个可启动的 USB 设备。
There are many applications freely available in Linux for this purpose. Even we wrote few of the utility in the past.
为达到这个目的,在 Linux 中有很多自由可用的应用程序。甚至在过去我们写了几个实用程序。
Every one uses different application and each application has their own features and functionality.
每个人使用不同的应用程序,每个应用程序有它们自己的特色和功能。
In that few of applications are belongs to CLI and few of them associated with GUI.
在这些应用程序中,一些应用程序属于 CLI ,一些应用程序与 GUI 关联。
Today we are going to discuss about similar kind of utility called BootISO. Its a simple bash script, which allow users to create a USB device from ISO file.
今天,我们将讨论相同类型的称为 BootISO 的实用程序。它是一个简单的 bash 脚本,允许用户来从 ISO 文件中创建一个可启动的 USB 设备。
Many of the Linux admin uses dd command to create bootable ISO, which is one of the native and famous method but the same time, its one of the very dangerous command. So, be careful, when you performing any action with dd command.
很多 Linux 管理员使用 dd 命令开创建可启动的 ISO ,它是一个本地的且著名的方法,但是与此同时,它也是一个非常危险的命令。因此,小心,当你执行一些带有 dd 命令的动作。
**Suggested Read :**
**(#)** [Etcher Easy way to Create a bootable USB drive & SD card from an ISO image][1]
**(#)** [Create a bootable USB drive from an ISO image using dd command on Linux][2]
**建议阅读:**
**(#)** [Etcher 简单的方法来从一个 ISO 镜像中创建一个可启动的 USB 驱动器 & SD 卡][1]
### What IS BootISO
**(#)** [在 Linux 上使用 dd 命令来从一个 ISO 镜像中创建一个可启动的 USB 驱动器][2]
[BootIOS][3] is a simple bash script, which allow users to securely create a bootable USB device from one ISO file. Its written in bash.
### BootISO 是什么
It doesnt offer any GUI but in the same time it has vast of options, which allow newbies to create a bootable USB device in Linux without any issues. Since its a intelligent tool that automatically choose if any USB device is connected on the system.
[BootIOS][3] 是一个简单的 bash 脚本,允许用户来安全的从一个 ISO 文件中创建一个可启动的 USB 设备,它是用 bash 编写的。
It will print the list when the system has more than one USB device connected. When you choose manually another hard disk manually instead of USB, this will safely exit without writing anything on it.
它不提供任何图形用户界面,但是与此同时,它有大量的选项,允许初学者在 Linux 上来创建一个可启动的 USB 设备,而没有任何问题。因为它是一个智能工具,自动地选择是否一些 USB 设备被连接到系统上。
This script will also check for dependencies and prompt user for installation, it works with all package managers such as apt-get, yum, dnf, pacman and zypper.
当系统有多个 USB 设备连接,它将打印列表。当你手动选择另一个硬盘而不是 USB ,在这种情况下,它将安全地退出,而不在硬盘上写任何东西。
### BootISO Features
这个脚本也将检查依赖关系,并提示用户安装,它与所有的软件包管理器一起工作,例如 apt-getyumdnfpacman 和 zypper。
* It checks whether the selected ISO has the correct mime-type or not. If no then it exit.
* BootISO will exit automatically, if you selected any other disks (local hard drive) except USB drives.
* BootISO allow users to select the desired USB drives when you have more than one.
* BootISO prompts the user for confirmation before erasing and paritioning USB device.
* BootISO will handle any failure from a command properly and exit.
* BootISO will call a cleanup routine on exit with trap.
### BootISO 特色
* 它检查选择的 ISO 是否是正确的 mime 类型。如果不是,那么退出。.
* 如果你选择除 USB 设备以外的任何其它的磁盘(本地硬盘)BootISO 将自动地退出。
* 当你有多个驱动器时BootISO 允许用户选择想要的 USB 驱动器。
* 在擦除和分区 USB 设备前BootISO 提示用户确认。
* BootISO 将正确地处理来自一个命令的任何失灵,并退出。
* BootISO 在退出陷阱时将调用一个清理例行程序。
### How To Install BootISO In Linux
### 如果在 Linux 中安装 BootISO
There are few ways are available to install BootISO in Linux but i would advise users to install using the following method.
在 Linux 中安装 BootISO 有几个可用的方法,但是,我建议用户使用下面的方法安装。
```
$ curl -L https://git.io/bootiso -O
$ chmod +x bootiso
@ -48,7 +48,7 @@ $ sudo mv bootiso /usr/local/bin/
```
Once BootISO installed, run the following command to list the available USB devices.
一旦 BootISO 已经安装,运行下面的命令来列出可用的 USB 设备。
```
$ bootiso -l
@ -58,7 +58,7 @@ sdd 1 32G running disk
```
If you have only one USB device, then simple run the following command to create a bootable USB device from ISO file.
如果你仅有一个 USB 设备,那么简单地运行下面的命令来从一个 ISO 文件中创建一个可启动的 USB 设备。
```
$ bootiso /path/to/iso file
@ -85,37 +85,37 @@ You can safely remove it !
```
Mention your device name, when you have more than one USB device using `--device` option.
提到你的设备名称,当你有多个 USB 设备时,使用 `--device` 选项。
```
$ bootiso -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso
```
By default bootios uses `rsync` command to perform all the action and if you want to use `dd` command instead of, use the following format.
默认情况下BootISO 使用 `rsync` 命令来执行所有的动作,如果你想使用 `dd` 命令代替它,使用下面的格式。
```
$ bootiso --dd -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso
```
If you want to skip `mime-type` check, include the following option with bootios utility.
如果你想跳过 `mime-type` 检查BootISO 实用程序带有下面的选项。
```
$ bootiso --no-mime-check -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso
```
Add the below option with bootios to skip user for confirmation before erasing and partitioning USB device.
为 BootISO 添加下面的选项来跳过在擦除和分区 USB 设备前的用户确认。
```
$ bootiso -y -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso
```
Enable autoselecting USB devices in conjunction with -y option.
连同 -y 选项一起,启用自动选择 USB 设备。
```
$ bootiso -y -a /opt/iso_images/archlinux-2018.05.01-x86_64.iso
```
To know more all the available option for bootiso, run the following command.
为知道更多全部可用的 BootISO 选项,运行下面的命令。
```
$ bootiso -h
Create a bootable USB from any ISO securely.
@ -162,7 +162,7 @@ via: https://www.2daygeek.com/bootiso-a-simple-bash-script-to-securely-create-a-
作者:[Prakash Subramanian][a]
选题:[lujun9972](https://github.com/lujun9972)
译者:[译者ID](https://github.com/译者ID)
译者:[robsean](https://github.com/robsean)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出