Monday, August 20, 2012

how to create a OSX recovery partition

for LION.
how to create a recovery partition when none exists.

from http://apple.stackexchange.com/questions/19145/how-can-i-create-or-recreate-a-lion-recovery-partition


First, open a Terminal.
Status before:
$ diskutil list
/dev/disk0
  #:                       TYPE NAME                    SIZE       IDENTIFIER
  0:      GUID_partition_scheme                        *128.0 GB   disk0
  1:                        EFI                         209.7 MB   disk0s1
  2:                  Apple_HFS Macintosh HD            127.8 GB   disk0s2
Get Lion Recovery Update v1.0 (431.91 MB)
Mount RecoveryHDUpdate.dmg
$ hdiutil attach ~/Downloads/RecoveryHDUpdate.dmg
Extract data from RecoveryHDUpdate.pkg
$ pkgutil --expand /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update/RecoveryHDUpdate.pkg ~/Desktop/RHD
Mount RecoveryHDMeta.dmg (in the RecoveryHDUpdate.pkg package)
$ hdiutil attach ~/Desktop/RHD/RecoveryHDUpdate.pkg/RecoveryHDMeta.dmg
Run tool that will finally resize current partition and create recovery
$ ~/Desktop/RHD/RecoveryHDUpdate.pkg/Scripts/Tools/dmtest ensureRecoveryPartition / /Volumes/Recovery\ HD\ Update/BaseSystem.dmg 0 0 /Volumes/Recovery\ HD\ Update/BaseSystem.chunklist
Creating recovery partition: finished
Status after:
$ diskutil list
/dev/disk0
  #:                       TYPE NAME                    SIZE       IDENTIFIER
  0:      GUID_partition_scheme                        *128.0 GB   disk0
  1:                        EFI                         209.7 MB   disk0s1
  2:                  Apple_HFS Macintosh HD            127.2 GB   disk0s2
  3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

----
also
furthermore
and not withstanding etc...
this other page also incorporates a non-functioning or broken recovery partition. removing and merging said partition then building a new one.

http://derflounder.wordpress.com/2011/10/22/removing-and-rebuilding-a-malfunctioning-recover-hd-partition/



there also seems to be a script to do all this as well.

http://hints.macworld.com/article.php?story=20120316132618149

No comments:

Post a Comment