Create a bootable USB drive with the CentOS 7 installer ISO file on Mac
OSX (Apple MacBook).
Steps:
- Format a USB drive as eFAT with Disk Utility
- Download CentOS 7 Full or Minimal iso file
- Open terminal and find USB drive partition name with command “diskutil list“
- In terminal, use dd command to copy CentOS iso to usb
- 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.
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 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:
sumber : https://cloudwrk.com/create-centos-7-bootable-usb-on-osx/
Membuat USB Installer Centos 7 di Mac / OsX
Reviewed by ilham.sp
on
October 08, 2019
Rating:
No comments: