Skip to content

Instantly share code, notes, and snippets.

@jovemfelix
Created December 28, 2021 15:16
Show Gist options
  • Save jovemfelix/98c6a361e865592809547022f83af9af to your computer and use it in GitHub Desktop.
Save jovemfelix/98c6a361e865592809547022f83af9af to your computer and use it in GitHub Desktop.

download

curl https://static.redhat.com/downloads/training-certification/rhrexboot.iso

listar ISO

ls
-rw-r--r--@  1 renato  staff   2.3G Nov 13 18:48 rhrexboot.iso

converter

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

Reading Protective Master Boot Record (MBR : 0)… Reading GPT Header (Primary GPT Header : 1)… Reading GPT Partition Data (Primary GPT Table : 2)… Reading (Apple_Free : 3)… Reading Untitled 1 (21686148-6449-6E6F-744E-656564454649 : 4)… Reading Untitled 2 (C12A7328-F81F-11D2-BA4B-00A0C93EC93B : 5)… ..... Reading Untitled 3 (0FC63DAF-8483-4772-8E79-3D69D8477DE4 : 6)… .................... Reading Untitled 4 (0FC63DAF-8483-4772-8E79-3D69D8477DE4 : 7)… .................... Reading (Apple_Free : 8)… Reading GPT Partition Data (Backup GPT Table : 9)… .................... Reading GPT Header (Backup GPT Header : 10)… .................... Elapsed Time: 5.076s Speed: 464.0Mbytes/sec Savings: 0.0% created: /Users/renato/Downloads/rhrexboot.img.dmg

renomear

mv rhrexboot.img.dmg rhrexboot.img

ver qual é a partição

diskutil list

/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 314.6 MB disk0s1 2: Apple_APFS Container disk1 250.7 GB disk0s2

/dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +250.7 GB disk1 Physical Store disk0s2 1: APFS Volume HD 22.1 GB disk1s1 2: APFS Snapshot com.apple.os.update-... 22.1 GB disk1s1s1 3: APFS Volume Preboot 394.4 MB disk1s2 4: APFS Volume Recovery 625.7 MB disk1s3 5: APFS Volume VM 24.6 KB disk1s4 6: APFS Volume HD - Data 201.9 GB disk1s5

/dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *31.5 GB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_HFS REDHAT 31.1 GB disk2s2

injetar (aqui tive problema e fiz pelo Disk Utility)

diskutil unmountDisk /dev/disk2

Unmount of disk2 failed: at least one volume could not be unmounted Unmount was dissented by PID 368 (/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mds_stores) Dissenter parent PPID 1 (/sbin/launchd)

copiar para USB

sudo dd if=$PWD/rhrexboot.img of=/dev/disk2 bs=1m

2355+1 records in 2355+1 records out 2469606400 bytes transferred in 471.694163 secs (5235609 bytes/sec)

remove your flash media when the command completes

diskutil eject /dev/disk2

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment