共計 4282 個字符,預計需要花費 11 分鐘才能閱讀完成。
自動寫代碼機器人,免費開通
這篇文章主要為大家展示了“BootISO 中如何從 ISO 文件中創(chuàng)建一個可啟動的 USB 設(shè)備”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓丸趣 TV 小編帶領(lǐng)大家一起研究并學習一下“BootISO 中如何從 ISO 文件中創(chuàng)建一個可啟動的 USB 設(shè)備”這篇文章吧。
BootISO 是什么
BootISO 是一個簡單的 bash 腳本,允許用戶來安全的從一個 ISO 文件中創(chuàng)建一個可啟動的 USB 設(shè)備,它是用 bash 編寫的。
它不提供任何圖形用戶界面而是提供了大量的選項,可以讓初學者順利地在 Linux 上來創(chuàng)建一個可啟動的 USB 設(shè)備。因為它是一個智能工具,能自動地選擇連接到系統(tǒng)上的 USB 設(shè)備。
當系統(tǒng)有多個 USB 設(shè)備連接,它將打印出列表。當你手動選擇了另一個硬盤而不是 USB 時,在這種情況下,它將安全地退出,而不會在硬盤上寫入任何東西。
這個腳本也將檢查依賴關(guān)系,并提示用戶安裝,它可以與所有的軟件包管理器一起工作,例如 apt-get、yum、dnf、pacman 和 zypper。
BootISO 的功能
它檢查選擇的 ISO 是否是正確的 mime 類型。如果不是,那么退出。
如果你選擇除 USB 設(shè)備以外的任何其它的磁盤(本地硬盤),BootISO 將自動地退出。
當你有多個驅(qū)動器時,BootISO 允許用戶選擇想要使用的 USB 驅(qū)動器。
在擦除和分區(qū) USB 設(shè)備前,BootISO 會提示用戶確認。
BootISO 將正確地處理來自一個命令的任何錯誤,并退出。
BootISO 在遇到問題退出時將調(diào)用一個清理例行程序。
如何在 Linux 中安裝 BootISO
在 Linux 中安裝 BootISO 有幾個可用的方法,但是,我建議用戶使用下面的方法安裝。
$ curl -L https://git.io/bootiso -O$ chmod +x bootiso$ sudo mv bootiso /usr/local/bin/
一旦 BootISO 已經(jīng)安裝,運行下面的命令來列出可用的 USB 設(shè)備。
$ bootiso -l Listing USB drives available in your system:NAME HOTPLUG SIZE STATE TYPEsdd 1 32G running disk
如果你僅有一個 USB 設(shè)備,那么簡單地運行下面的命令來從一個 ISO 文件中創(chuàng)建一個可啟動的 USB 設(shè)備。
$ 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 設(shè)備時,可以使用 –device 選項指明你的設(shè)備名稱。
$ bootiso -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso
默認情況下,BootISO 使用 rsync 命令來執(zhí)行所有的動作,如果你想使用 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 添加下面的選項來跳過在擦除和分區(qū) USB 設(shè)備前的用戶確認。
$ bootiso -y -d /dev/sde /opt/iso_images/archlinux-2018.05.01-x86_64.iso
連同 -y 選項一起,啟用自動選擇 USB 設(shè)備。
$ 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
以上是“BootISO 中如何從 ISO 文件中創(chuàng)建一個可啟動的 USB 設(shè)備”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學習更多知識,歡迎關(guān)注丸趣 TV 行業(yè)資訊頻道!
向 AI 問一下細節(jié)
丸趣 TV 網(wǎng) – 提供最優(yōu)質(zhì)的資源集合!