diskutil list
-bash-3.2# disk util
-bash: disk: command not found
-bash-3.2# diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 24.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_CoreStorage Fusion 23.6 GB disk0s2
3: Apple_Boot Boot OS X 134.2 MB disk0s3
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_CoreStorage Fusion 996.7 GB disk1s2
3: Apple_Boot Boot OS X 134.2 MB disk1s3
4: Apple_Boot 650.0 MB disk1s4
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk2
1: Apple_HFS OS X Base System 2.0 GB disk2s1
/dev/disk3 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +1.0 TB disk3
Logical Volume on disk0s2, disk1s2
D3E95740-928B-44A5-9BF7-FF37686655E8
Unencrypted Fusion Drive
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk21
-bash-3.2#
gpt show disk1
-bash-3.2# gpt show disk1
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 1946767808 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
1947177448 262144 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
1947439592 1269536 4 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
1948709128 4816007
1953525135 32 Sec GPT table
1953525167 1 Sec GPT header
-bash-3.2#
ls -R /Volumes/"Boot OS X 1"
-bash-3.2# ls -R /Volumes/"Boot OS X 1"
ls: /Volumes/Boot OS X 1: No such file or directory
-bash-3.2#
-bash-3.2#
-bash-3.2# ls -al /Volumes/
total 8
drwxr-xr-x 4 root wheel 204 1 sep 17:00 .
drwxrwxr-t 16 root admin 612 4 jul 08:34 ..
drwxrwxr-x 7 root admin 306 1 sep 15:17 Macintosh HD
lrwxr-xr-x 1 root wheel 1 1 sep 17:00 OS X Base System -> /
-bash-3.2#
diskutil mount disk1s3
ls -R /Volumes/"Boot OS X"
-bash-3.2# diskutil mount disk1s3
Volume Boot OS X on disk1s3 mounted
-bash-3.2# ls -R /Volumes/"Boot OS X"
com.apple.boot.R
/Volumes/Boot OS X/com.apple.boot.R:
.disk_label .disk_label.contentDetails .disk_label_2x PlatformSupport.plist SystemVersion.plist boot.efi com.apple.Boot.plist prelinkedkernel usr
/Volumes/Boot OS X/com.apple.boot.R/usr:
standalone
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone:
i386
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386:
EfiLoginUI
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI:
Lucida13.efires Lucida13White.efires appleLogo.efires battery.efires disk_passwordUI.efires flag_picker.efires guest_userUI.efires loginui.efires recoveryUI.efires recovery_user.efires sound.efires unknown_userUI.efires
-bash-3.2#
cp -av /Volumes/"Boot OS X"/com.apple.boot.R /Volumes/"Macintosh HD"
diskutil umount force disk3
diskutil umount force disk1s3
gpt remove -i 3 disk1
diskutil umount force disk3
gpt remove -i 4 disk1
-bash-3.2# cp -av /Volumes/"Boot OS X"/com.apple.boot.R /Volumes/"Macintosh HD"
/Volumes/Boot OS X/com.apple.boot.R -> /Volumes/Macintosh HD/com.apple.boot.R
/Volumes/Boot OS X/com.apple.boot.R/.disk_label -> /Volumes/Macintosh HD/com.apple.boot.R/.disk_label
/Volumes/Boot OS X/com.apple.boot.R/.disk_label.contentDetails -> /Volumes/Macintosh HD/com.apple.boot.R/.disk_label.contentDetails
/Volumes/Boot OS X/com.apple.boot.R/.disk_label_2x -> /Volumes/Macintosh HD/com.apple.boot.R/.disk_label_2x
/Volumes/Boot OS X/com.apple.boot.R/boot.efi -> /Volumes/Macintosh HD/com.apple.boot.R/boot.efi
/Volumes/Boot OS X/com.apple.boot.R/com.apple.Boot.plist -> /Volumes/Macintosh HD/com.apple.boot.R/com.apple.Boot.plist
/Volumes/Boot OS X/com.apple.boot.R/PlatformSupport.plist -> /Volumes/Macintosh HD/com.apple.boot.R/PlatformSupport.plist
/Volumes/Boot OS X/com.apple.boot.R/prelinkedkernel -> /Volumes/Macintosh HD/com.apple.boot.R/prelinkedkernel
/Volumes/Boot OS X/com.apple.boot.R/SystemVersion.plist -> /Volumes/Macintosh HD/com.apple.boot.R/SystemVersion.plist
/Volumes/Boot OS X/com.apple.boot.R/usr -> /Volumes/Macintosh HD/com.apple.boot.R/usr
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386 -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/appleLogo.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/appleLogo.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/battery.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/battery.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/disk_passwordUI.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/disk_passwordUI.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/flag_picker.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/flag_picker.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/guest_userUI.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/guest_userUI.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/loginui.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/loginui.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/Lucida13.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/Lucida13.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/Lucida13White.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/Lucida13White.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/recovery_user.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/recovery_user.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/recoveryUI.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/recoveryUI.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/sound.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/sound.efires
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/unknown_userUI.efires -> /Volumes/Macintosh HD/com.apple.boot.R/usr/standalone/i386/EfiLoginUI/unknown_userUI.efires
-bash-3.2#
-bash-3.2#
-bash-3.2# diskutil umount force disk3
Volume Macintosh HD on disk3 force-unmounted
-bash-3.2# diskutil umount force disk1s3
Volume Boot OS X on disk1s3 force-unmounted
-bash-3.2#
-bash-3.2# gpt remove -i 3 disk1
disk1s3 removed
-bash-3.2#
-bash-3.2# diskutil umount force disk3
Volume Macintosh HD on disk3 force-unmounted
-bash-3.2#
-bash-3.2# gpt remove -i 4 disk1
disk1s4 removed
-bash-3.2#
diskutil list
-bash-3.2# diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 24.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_CoreStorage Fusion 23.6 GB disk0s2
3: Apple_Boot Boot OS X 134.2 MB disk0s3
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_CoreStorage Fusion 996.7 GB disk1s2
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk2
1: Apple_HFS OS X Base System 2.0 GB disk2s1
/dev/disk3 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +1.0 TB disk3
Logical Volume on disk0s2, disk1s2
D3E95740-928B-44A5-9BF7-FF37686655E8
Unencrypted Fusion Drive
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk21
-bash-3.2#
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_CoreStorage Fusion 996.7 GB disk1s2
diskutil umount force disk3
gpt add -b 1947177448 -s 1269536 -t hfs -i 3 /dev/disk1
disk0s3 added
diskutil list
-bash-3.2# diskutil umount force disk3
Volume Macintosh HD on disk3 force-unmounted
-bash-3.2# gpt add -b 1947177448 -s 1269536 -t hfs -i 3 /dev/disk1
/dev/disk1s3 added
-bash-3.2# diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 24.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_CoreStorage Fusion 23.6 GB disk0s2
3: Apple_Boot Boot OS X 134.2 MB disk0s3
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_CoreStorage Fusion 996.7 GB disk1s2
3: Apple_HFS Boot OS X 650.0 MB disk1s3
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk2
1: Apple_HFS OS X Base System 2.0 GB disk2s1
/dev/disk3 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +1.0 TB disk3
Logical Volume on disk0s2, disk1s2
D3E95740-928B-44A5-9BF7-FF37686655E8
Unencrypted Fusion Drive
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk21
-bash-3.2#
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_CoreStorage Fusion 996.7 GB disk1s2
3: Apple_HFS Boot OS X 650.0 MB disk1s3
3: Apple_HFS Boot OS X 650.0 MB disk1s3
diskutil mount disk1s3
ls -R /Volumes/"Boot OS X"
-bash-3.2# diskutil mount disk1s3
Volume Boot OS X on disk1s3 mounted
-bash-3.2# ls -R /Volumes/"Boot OS X"
com.apple.boot.R
/Volumes/Boot OS X/com.apple.boot.R:
.disk_label boot.efi
.disk_label.contentDetails com.apple.Boot.plist
.disk_label_2x prelinkedkernel
PlatformSupport.plist usr
SystemVersion.plist
/Volumes/Boot OS X/com.apple.boot.R/usr:
standalone
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone:
i386
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386:
EfiLoginUI
/Volumes/Boot OS X/com.apple.boot.R/usr/standalone/i386/EfiLoginUI:
Lucida13.efires disk_passwordUI.efires recoveryUI.efires
Lucida13White.efires flag_picker.efires recovery_user.efires
appleLogo.efires guest_userUI.efires sound.efires
battery.efires loginui.efires unknown_userUI.efires
-bash-3.2#
-bash-3.2# ls -R /Volumes/"Boot OS X"
com.apple.boot.R
diskutil rename disk1s3 "Recovery HD"