Transform USB labeled install (already Mac OS Extended
(Journaled), GUID Partition Map) into a bootable macOS Monterey
installer using InstallMacOSX.dmg from USB labeled Ventory.
Both USB drives inserted
Admin access
install is empty and correctly formatted
Ventory contains InstallMacOSX.dmg
Ventory {#mount-the-dmg-from-ventory }hdiutil attach /Volumes/Ventory/InstallMacOSX.dmg -noverify -mountpoint /Volumes/InstallDMG
Success: Shows /dev/diskX ... /Volumes/InstallDMG
.pkg to Extract the Full Installer App {#install-.pkg-to-extract-the-full-installer-app }sudo installer -pkg /Volumes/InstallDMG/InstallMacOSX.pkg -target /
Wait: 2--5 minutes\
Result: /Applications/Install macOS Monterey.app
install {#create-bootable-installer-on-install}sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia \
--volume /Volumes/install --nointeraction
Duration: 15--30 minutes\ Progress:
Erasing disk...
Copying installer files...
Making disk bootable...
Final message:\
Install media now available at "/Volumes/Install macOS Monterey"
hdiutil detach /Volumes/InstallDMG
hdiutil detach /Volumes/install
Both drives safely unmounted
install {#boot-imac-mid-2017-27-from-install }Shut down iMac
Insert USB labeled install
Power on + hold Option (⌥)
Select orange icon: Install macOS Monterey $\rightarrow$
Enter
diskutil list
Identify internal disk (e.g., disk2, size 500GB--2TB)
# Replace disk2 with your internal disk
diskutil apfs deleteContainer disk2
diskutil apfs createContainer /dev/disk2
diskutil apfs addVolume disk2 APFS "Macintosh HD"
Creates fresh APFS volume: Macintosh HD
Select Install macOS Monterey $\rightarrow$ Continue
Choose Macintosh HD as destination
Duration: 30--60 minutes (2--3 restarts)
Final boot: macOS Monterey setup screen
Your mid-2017 27\" iMac now runs macOS Monterey.\
Remove Ventory
Keep install for future recovery