Tuesday, March 24, 2015

How to mount and umount an iso image from the command line on Mac OS

How to mount an iso image from the command line on Mac OS :
# hdiutil mount SUSE_Manager_Server.x86_64-2.1.0.iso /dev/disk3 /Volumes/KIWI CD_DVD Installation
Here you go, your iso image will be mount in /Volumes/ . If needed here is how to list your disks :
# diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage 250.1 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: Apple_HFS Macintosh HD *249.8 GB disk1 Logical Volume on disk0s2 /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_HFS WDOUILLE 900.0 GB disk2s2 3: Microsoft Basic Data FATOUILLE 99.8 GB disk2s3 /dev/disk3 #: TYPE NAME SIZE IDENTIFIER 0: KIWI CD_DVD Install... *611.4 MB disk3
To unmount your iso from the cli :
# hdiutil eject /dev/disk3 "disk3" unmounted. "disk3" ejected.

No comments:

Post a Comment