欢迎来到电脑知识学习网,专业的电脑知识大全学习平台!

手机版

u盘启动打开iso文件-(iso文件 u盘启动)

电脑故障 发布时间:2022-09-11 18:09:39

u盘启动打开iso文件

(iso文件 u盘启动)

今天,我们将讨论这个名字 BootISO 类似工具的实用程序。它很简单 bash 允许用户来自脚本 ISO 创建一个可启动的文件 USB 设备。

-- Prakash Subramanian(作者)

为了安装操作系统,我们大多数人(包括我)经常从 ISO 创建一个可启动的文件 USB 设备。为了达到这个目的,在 Linux 有许多自由可用的应用程序。甚至在过去,我们写了几篇关于这个实用程序的文章。

每个人使用不同的应用程序,每个应用程序都有自己的特点和功能。有些应用程序属于这些应用程序 CLI 有些应用程序是 GUI 的。

今天,我们将讨论这个名字 BootISO 类似工具的实用程序。它很简单 bash 允许用户来自脚本 ISO 创建一个可启动的文件 USB 设备。

很多 Linux 管理员使用 dd 创建可启动的命令 ISO ,这是一种著名的原生方法,但同时,它也是一个非常危险的命令。所以,当你用的时候要小心 dd 当命令执行某些动作时。

建议阅读:

Etcher:从一个 ISO 创建一个可启动的镜像 USB 驱动器 & SD 卡的简单方法是 Linux 上使用 dd 命令来自一个 ISO 创建一个可启动的镜像 USB 驱动器BootISO 是什么

BootISO 简单 bash 脚本,允许用户从一个接一个地安全 ISO 创建一个可启动的文件 USB 使用设备 bash 编写的。

它提供了很多选项,而不是提供任何图形用户界面,可以让初学者顺利进行 Linux 创建一个可启动的 USB 设备。

它提供了很多选项,而不是提供任何图形用户界面,可以让初学者顺利进行 Linux 创建一个可启动的 USB 设备。因为它是一种可以自动选择连接到系统的智能工具 USB 设备。

当有多个系统时 USB 将设备连接起来,打印出列表。当你手动选择另一个硬盘时,而不是 USB 在这种情况下,它会安全地退出,而不是在硬盘上写任何东西。

该脚本还将检查依赖关系,并提示用户安装它可以与所有软件包管理器一起工作,例如 apt-get、yum、dnf、pacman 和 zypper。BootISO 的功能检查选择 ISO 是否正确 mime 类型。如果没有,那就退出。假如你选择去除 USB 设备外的任何其他磁盘(本地硬盘),BootISO 将自动地退出。当你有多个驱动器时,BootISO 允许用户选择他们想要使用的 USB 驱动器。在擦除和分区 USB 设备前,BootISO 会提示用户确认。BootISO 从命令中正确处理任何错误并退出。BootISO 遇到问题退出时,调用例行清理程序。

如何在 Linux 中安装 BootISO

在 Linux 中安装 BootISO 但是,我建议用户使用以下方法进行安装。

$ curl -L https://git.io/bootiso -O$ chmod x bootiso$ sudo mv bootiso /usr/local/bin/

一旦 BootISO 已安装并操作下列命令列出可用性 USB 设备。

$ bootiso -lListing USB drives available in your system:NAME HOTPLUG SIZE STATE TYPEsdd 1 32G running disk

假如你只有一个 USB 设备,如此简单地操作下面的命令,从一个 ISO 创建一个可启动的文件 USB 设备。

$ bootiso /path/to/iso file$ bootiso /opt/iso_images/archlinux-2018.05.01-x86_64.isoGranting root privileges for bootiso.Listing USB drives available in your system:NAME HOTPLUG SIZE STATE TYPEsdd 1 32G running diskAutoselecting `sdd' (only USB device candidate)The selected device `/dev/sdd' is connected through USB.Created ISO mount point at `/tmp/iso.vXo'`bootiso' is about to wipe out the content of device `/dev/sdd'.Are you sure you want to proceed? (y/n)>yErasing contents of /dev/sdd...Creating FAT32 partition on `/dev/sdd1'...Created USB device mount point at `/tmp/usb.0j5'Copying files from ISO to USB device with `rsync' Synchronizing writes on device `/dev/sdd' `bootiso' took 250 seconds to write ISO to USB device with `rsync' method.ISO succesfully unmounted.USB device succesfully unmounted.USB device succesfully ejected.You can safely remove it !

当你有多个 USB 可用于设备 --device 选项指示您的设备名称。

$ bootiso -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso

默认情况下,BootISO 使用 rsync 如果你想使用命令来执行所有动作 dd 使用以下格式代替命令。

$ bootiso --dd -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso

假如你想跳过 mime 类型检查,BootISO 实用程序有以下选项。

$ bootiso --no-mime-check -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso

为 BootISO 添加以下选项跳过擦除和分区 USB 用户在设备前确认。

$ bootiso -y -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso

连同 -y 共同选择选项,启用自动选择 USB 设备。

$ bootiso -y -a /opt/iso_images/archlinux-2018.05.01-x86_64.iso

为知道更多的 BootISO 运行以下命令。$ bootiso -hCreate a bootable USB from any ISO securely.Usage: bootiso[...]Options-h, --help, help Display this help message and exit.-v, --version Display version and exit.-d, --device Select block file as USB device. If is not connected through USB, `bootiso' will fail and exit. Device block files are usually situated in /dev/sXX or /dev/hXX. You will be prompted to select a device if you don't use this option.-b, --bootloader Install a bootloader with syslinux (safe mode) for non-hybrid ISOs. Does not work with `--dd' option.-y, --assume-yes `bootiso' won't prompt the user for confirmation before erasing and partitioning USB device. Use at your own risks.-a, --autoselect Enable autoselecting USB devices in conjunction with -y option. Autoselect will automatically select a USB drive device if there is exactly one connected to the system. Enabled by default when neither -d nor --no-usb-check options are given.-J, --no-eject Do not eject device after unmounting.-l, --list-usb-drives List available USB drives.-M, --no-mime-check `bootiso' won't assert that selected ISO file has the right mime-type.-s, --strict-mime-check Disallow loose application/octet-stream mime type in ISO file.-- POSIX end of options.--dd Use `dd' utility instead of mounting `rsync'. Does not allow bootloader installation with syslinux.--no-usb-check `bootiso' won't assert that selected device is a USB (connected through USB bus). Use at your own risks.Readme Bootiso v2.5.2. Author: Jules Samuel Randolph Bugs and new features: https://github.com/jsamr/bootiso/issues If you like bootiso, please help the community by making it visible: * star the project at https://github.com/jsamr/bootiso * upvote those SE post: https://goo.gl/BNRmvm https://goo.gl/YDBvFe

via: https://www.2daygeek.com/bootiso-a-simple-bash-script-to-securely-create-a-bootable-usb-devic e-

责任编辑:电脑知识学习网