Membuat USB Installer Centos 7 di Mac / OsX


Create a bootable USB drive with the CentOS 7 installer ISO file on Mac OSX (Apple MacBook).
Steps:
  1. Format a USB drive as eFAT with Disk Utility
  2. Download CentOS 7 Full or Minimal iso file
  3. Open terminal and find USB drive partition name with command “diskutil list
  4. In terminal, use dd command to copy CentOS iso to usb
  5. Test usb drive in Parallels virtual machine

FIND USB DRIVE PARTITION

In terminal, run command “diskutil list” to view partitions, the usb drive will be the last one listed.
Screenshot of the USB partition /dev/disk2 formatted as eFAT (but shows Windows NTFS)

COPY CENTOS 7 ISO TO USB DRIVE WITH DD

Sebelum menjalankan perintan DD, unmount dulu flashdisk dengan perintah :

diskutil umount /dev/disk2s1

Run the following command to copy iso drive to the usb drive, this command makes the usb drive bootable.

sudo dd if=./Downloads/CentOS-7-x86_64-DVD-1611.iso of=/dev/rdisk2 bs=1m


Note the additional “r” prepended to the usb partition name rdisk2 instead of disk2. The does a raw copy which is much faster than a block-by-block file copy.
Press CTRL + T to view progress, which will show blocks processed.

4177+0 records in
4177+0 records out
4379901952 bytes transferred in 323.733465 secs (13529346 bytes/sec)

Screenshot of the usb drive after iso has been copied. Note that the partition type has been changed to “0xEF” a GUID partition.

OSX will not recognise this partition, click ignore at the “Disk not readable” prompt. This usb drive will not be readable on OSX but can be used to boot and install CentOS 7.


TEST USB DRIVE

To test the bootable usb drive spin-up a Parallels virtual machine with a 10 GB partition and change the boot order in configuration to external drive > usb drive


References:
  1. CentOS download link
  2. Microsoft doc on GUID partition
  3. Server Fault dd page



sumber : https://cloudwrk.com/create-centos-7-bootable-usb-on-osx/

Membuat USB Installer Centos 7 di Mac / OsX Membuat USB Installer Centos 7 di Mac / OsX Reviewed by ilham.sp on October 08, 2019 Rating: 5

No comments:

Notice

This site uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.Learn More

Powered by Blogger.