Lion's installation will automatically generate a memory MB recovery disk partition in the hard disk, which is invisible on the normal GUI. Use the following statement to view the partition of the hard disk:
Diskutil list
This shows that the name of the hidden partition is recovery HD.
Run the following command to install it in the GUI (for example, I use disk1s4 ):
Diskutil Mount disk1s4
The following content in its root is displayed:
D-WX-wt @ 3 root _ Unknown hidden 102 2 Jul. trashes
Drwxr-XR-x @ 3 root admin-102 2 Jul 16:16. fseventsd
-RW-r -- @ 1 root admin-0 2 Jul 16:16. metadata_never_index
Drwxr-XR-x @ 9 root admin-306 2 Jul 16:17 com. Apple. Recovery. boot
Content in the com. Apple. Recovery. Boot directory:
Total 930040
Drwxr-XR-x @ 9 Root Admin 306 2 Jul.
Drwxrwxr-x 8 Root Admin 340 2 Jul ..
-RW-r -- @ 1 Root Admin 749 2 Jul. disk_label
-RW-r -- @ 1 root wheel 451307798 2 Jul basesystem. DMG
-RW-r -- @ 1 root wheel 2245 15 jun platformsupport. plist
-R -- @ 1 root wheel 475 29 Jun systemversion. plist
-RW-r -- @ 1 root wheel 858800 30 jun boot. EFI
-RW-r -- @ 1 Root Admin 361 2 Jul com. Apple. boot. plist
-RW-r -- @ 1 root wheel 23992189 29 Jun kernelcache
Here is all the content of the boot disk.
Check the content of each file:
Systemversion. plist:
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype plist public "-// Apple // DTD plist 1.0 // en" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<Plist version = "1.0">
<Dict>
<Key> productbuildversion </key>
<String> 11a511 </string>
<Key> productcopyright </key>
<String> 1983-2011 Apple Inc. </string>
<Key> productname </key>
<String> Mac OS X </string>
<Key> productuservisibleversion </key>
<String> 10.7 </string>
<Key> productversion </key>
<String> 10.7 </string>
</Dict>
</Plist>
Platformsupport. plist
It is the same as the content in the installation disk, which contains the list of Supported Hardware motherboard idnumbers
Com. Apple. boot. plist: controls how to use the basesystem. DMG file to start the system recovery program.
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype plist public "-// Apple // DTD plist 1.0 // en" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<Plist version = "1.0">
<Dict>
<Key> kernel cache </key>
<String> \ com. Apple. Recovery. Boot \ kernelcache </string>
<Key> kernel flags </key>
<String> Rp = file: // com. Apple. Recovery. Boot/basesystem. DMG </string>
</Dict>
</Plist>
Then install basesystem. DMG In the GUI. You can see this figure.
Is a core system that automatically runs the Insall Mac OS X lion. app program to restore the system. However, this recovery process requires downloading and installing from the App Store.
Install Mac OS X lion. app:
Look back at the content of the ESD installation disk. The above files can be found on the ESD installation disk:
Total 960568
Drwxrwxr-T 20 Root Admin 748 2 Jul.
Drwxrwxrwt @ 9 Root Admin 306 2 Jul ..
-RW-r -- @ 1 dd admin 15364 2 Jul. ds_store
Drwx ------ 5 _ Unknown 170 2 Jul. Spotlight-V100
D-WX-wt @ 3 _ Unknown 102 2 Jul 21:59. trashes
-Rwxr-XR-x @ 1 root wheel 82 13 Jun :47. _ instructions. localized
-RW-r -- @ 1 Root Admin 581 30 jun. disk_label
Drwx ------ 6 _ Unknown 204 2 Jul. fseventsd
-RW-r -- @ 1 Root Admin 1876 30 jun basesystem. chunklist
-RW-r -- @ 1 Root Admin 451307798 30 jun basesystem. DMG
Drwxr-XR-x @ 3 root wheel 102 29 Jun 20:24 install Mac OS X lion. app
Drwxr-XR-x @ 4 root wheel 136 2 Jul Library
-R -- @ 1 root wheel 46516 8 Jun 2010 macosx_media_background.png
Drwxr-XR-x @ 51 root wheel 1734 30 jun packages
Drwxr-XR-x @ 3 root wheel 102 16 jun System
-RW-r -- @ 1 Root Admin 858800 30 jun boot. EFI
-RW-r -- @ 1 Root Admin 23992189 30 jun kernelcache
-RW-r -- @ 1 root wheel 15565140 18 Jun mach_kernel
Drwxr-XR-x @ 3 root wheel 102 16 jun private
Drwxr-XR-x @ 4 root wheel 136 30 jun USR
Compare the boot. EFI file sizes of 10.6 and 10.7:
The size of the 10.6 boot. EFI file is 332464 bytes, while that of the Lion file is 858800 bytes.
Com. Apple. boot. plist in ESD is in/library/preferences/systemconfiguration /.
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype plist public "-// Apple // DTD plist 1.0 // en" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<Plist version = "1.0">
<Dict>
<Key> kernel flags </key>
<String> root-DMG = file: // basesystem. DMG </string>
<Key> kernel cache </key>
<String> \ kernelcache </string>
</Dict>
</Plist>
It differs from the content of the above recovery disk, with different paths and different parameters. One is root-DMG and the other is Rp.
In addition, lion adds a hard disk detection program called hwmond.
Hardware check part of the installation disk:
/System/library/launchdaemons/COM. Apple. hwmond. plist
CAT/volumes/MAC \ OS \ x \ install \ ESD/system/library/launchdaemons/COM. Apple. hwmond. plist
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype plist public "-// Apple Computer // DTD plist 1.0 // en" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<Plist version = "1.0">
<Dict>
<Key> label </key>
<String> com. Apple. hwmond </string>
<Key> OnDemand </key>
<False/>
<Key> Program </key>
<String>/usr/sbin/hwmond </string>
<Key> programarguments </key>
<Array>
<String> hwmond </string>
</Array>
<Key> serviceipc </key>
<False/>
</Dict>
</Plist>
Code returned for the hardware test:/volumes/MAC \ OS \ x \ install \ ESD/private/etc/hwmond. Smart
By comparing the two install Mac OS X lion. apps on the installation and recovery disks, they are exactly the same.
This baswsystem. DMG is useful for system recovery in the management environment.