mac如何挂载iso文件…

1.通过finder点击自动挂载(DiskImageMounter)

2.通过命令hdiutil

//挂载
hdiutil mount ~/ISOPath/filename.iso

mvpbang@mvpbang Downloads % hdiutil mount windows11-multi.iso 
/Volumes/win11

mvpbang@mvpbang Downloads % ll /Volumes/win11 
total 4112
-rwxr-xr-x  1 mvpbang  staff      128 12  4  2023 autorun.inf
drwxr-xr-x  1 mvpbang  staff     2048 12  4  2023 boot
-rwxr-xr-x  1 mvpbang  staff   413738 12  4  2023 bootmgr
-rwxr-xr-x  1 mvpbang  staff  1574256 12  4  2023 bootmgr.efi
drwxr-xr-x  1 mvpbang  staff     2048 12  4  2023 efi
-rwxr-xr-x  1 mvpbang  staff    74184 12  4  2023 setup.exe
drwxr-xr-x  1 mvpbang  staff    30720  3  7 20:53 sources
drwxr-xr-x  1 mvpbang  staff     2048 12  4  2023 support

//卸载
hdiutil unmount /DestinationFolder

mvpbang@mvpbang ~ % hdiutil unmount  /Volumes/win11 
"/Volumes/win11" unmounted successfully.