zoukankan      html  css  js  c++  java
  • Generate Ubuntu Install Media On Mac

    Opps, my computer system was broken again... Let's repire it.


    Introduction

    The system of my PC is broken. I could enter the UEFI setting. So that means I coud start my PC using USB flash drive. But first of all, I need a Installer driver.

    ISO to DMG

    I have a xxx.iso. I need to convert it to xxx.dmg file.

    hdiutil convert -format UDRW -o xxx.img xxx.iso
    

    The process is very fast.

    Install to USB Flash Driver

    Firstly, unmount the target driver.

    # Obtain your disk name.
    diskutil list
    # assuming that your USB flash driver is named disk9
    diskutil unmountDisk /dev/disk9
    

    Then, write data to this flash. Be careful not to mistake the flash name.

    # The following command cost some minutes.
    sudo dd if=where your img.dmg file exists of=/dev/rdisk9 bs=1m
    # finally eject your flash. All done.
    diskutil eject /dev/disk9
    
  • 相关阅读:
    NOI 2020 游记
    BJOI2020 游记
    行列式
    CSP-S 2019 游记
    类欧几里得算法
    有关二次离线和 Yuno loves sqrt technology II
    NOI2019 游记
    CTS 2019 Pearl
    BJOI2019 游记
    2017 山东二轮集训 Day7 国王
  • 原文地址:https://www.cnblogs.com/darryo/p/Generate-Ubuntu-Install-Media-On-Mac.html
Copyright © 2011-2022 走看看