首页 > 代码库 > OSX: 10.10 Yosemite Developer Preview 2安装的一个注意事项

OSX: 10.10 Yosemite Developer Preview 2安装的一个注意事项

上一篇说到,安装完10.10 DP2之后,在显示每个分区的磁盘工具中,各个分区看着有些异样,这是因为它把原来的普通分区转化为了Core Storage了。

下面是我安装在普通Mac3 (disk1s5)分区之后,磁盘的内部情况。参考我前面的三篇blog(OSX: 逻辑卷管理系统Core Storage(1), OSX: 逻辑卷管理系统Core Storage(2)和OSX: 逻辑卷管理系统Core Storage(3))来看即能看懂。


下面是运行diskutil list的结果,原来disk1s5处的Apple_HFS Mac3的地方被Apple_CoreStorage 的取代了,多出了一个disk2的Apple_HFS X.10dp2(注:X.10dp2是我把Mac3改名的结果):

/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *120.0 GB   disk1
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS X.93                    29.5 GB    disk1s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk1s3
   4:                  Apple_HFS Mac2                    30.0 GB    disk1s4
   5:          Apple_CoreStorage                         19.5 GB    disk1s5
   6:                 Apple_Boot Recovery HD             650.0 MB   disk1s6
   7:                  Apple_HFS Mac4                    29.3 GB    disk1s7
   8:                  Apple_HFS Test                    9.9 GB     disk1s8
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS X.10dp2                *19.0 GB    disk2



这个是查看disk1s5的结果,可以看到它的原名叫Mac3:

<span style="color:#009900;">$diskutil info disk1s5</span>
   Device Identifier:        disk1s5
   Device Node:              /dev/disk1s5
   Part of Whole:            disk1
   Device / Media Name:      Mac3

   Volume Name:              Not applicable (no file system)

   Mounted:                  Not applicable (no file system)

   File System:              None

   Partition Type:           Apple_CoreStorage
   OS Can Be Installed:      No
   Media Type:               Generic
   Protocol:                 FireWire
   SMART Status:             Not Supported

   Total Size:               19.5 GB (19484213248 Bytes) (exactly 38055104 512-Byte-Blocks)
   Volume Free Space:        Not applicable (no file system)
   Device Block Size:        512 Bytes

   Read-Only Media:          No
   Read-Only Volume:         Not applicable (no file system)
   Ejectable:                Yes

   Whole:                    No
   Internal:                 No



这个是看disk2的, Media Name处的名字是磁盘的名字:
$ <span style="color:#009900;">diskutil info disk2</span>
   Device Identifier:        disk2
   Device Node:              /dev/disk2
   Part of Whole:            disk2
   Device / Media Name:      LaCie Group SA

   Volume Name:              X.10dp2
   Escaped with Unicode:     X.10dp2

   Mounted:                  Yes
   Mount Point:              /Volumes/X.10dp2
   Escaped with Unicode:     /Volumes/X.10dp2

   File System Personality:  Journaled HFS+
   Type (Bundle):            hfs
   Name (User Visible):      Mac OS Extended (Journaled)
   Journal:                  Journal size 8192 KB at offset 0x98000
   Owners:                   Disabled

   Content (IOContent):      Apple_HFS
   OS Can Be Installed:      Yes
   Media Type:               Generic
   Protocol:                 FireWire
   SMART Status:             Not Supported
   Volume UUID:              D237CD21-49AE-351F-B2A8-E559D61BDC51

   Total Size:               19.0 GB (18997837824 Bytes) (exactly 37105152 512-Byte-Blocks)
   Volume Free Space:        5.7 GB (5718700032 Bytes) (exactly 11169336 512-Byte-Blocks)
   Device Block Size:        512 Bytes

   Read-Only Media:          No
   Read-Only Volume:         No
   Ejectable:                Yes

   Whole:                    Yes
   Internal:                 No
   OS 9 Drivers:             No
   Low Level Format:         Not supported



这个是看Core Storage的:
<span style="color:#009900;">$ diskutil cs list</span>
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group 76704EE0-1F96-4F64-A28A-C7A8471109B2
    =========================================================
    Name:         <span style="color:#ff0000;">Mac3</span>
    Status:       Online
    Size:         19484213248 B (19.5 GB)
    Free Space:   150827008 B (150.8 MB)
    |
    +-< Physical Volume D9465F3E-46B6-47FD-9D31-330FA7255E02
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk1s5
    |   Status:   Online
    |   Size:     19484213248 B (19.5 GB)
    |
    +-> Logical Volume Family DF805042-6E4A-4EB5-AB4F-51B15E3A1CB3
        ----------------------------------------------------------
        Encryption Status:       Unlocked
        Encryption Type:         None
        Conversion Status:       NoConversion
        Conversion Direction:    -none-
        Has Encrypted Extents:   No
        Fully Secure:            No
        Passphrase Required:     No
        |
        +-> Logical Volume 7588EF0D-4DEE-4A27-99AC-95371434A42A
            ---------------------------------------------------
            Disk:               disk2
            Status:             Online
            Size (Total):       18997837824 B (19.0 GB)
            Size (Converted):   -none-
            Revertible:         Yes (no decryption required)
            LV Name:            X.10dp2
            Volume Name:        X.10dp2
            Content Hint:       Apple_HFS


一旦转化为使用Core torage目前来说,在磁盘工具中,整个磁盘上的所有分区就无法再改变大小了!!!只能用终端命令了-这也是为什么好多人无法改变分区大小的原因之一。


预期:Core Storage在新版本中可能会担当重任,有可能会发布第一个正式版本,而磁盘工具应该也会支持对Core Storage的更多功能,比如改变分区大小,创建新分区等等。


让咱们翘首以盼,抑或拭目以待吧。