在mbp上克隆后需要分配可用空间


1

我将MacBook Pro 1 TB SSD克隆到2 TB SSD。新的SSD与旧的SSD一样出现。如何将新SSD上未分配的可用空间(〜1 TB)添加到主卷中?

technicgal1:~ Technicgal1$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            250.1 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +249.8 GB   disk1
                                 Logical Volume on disk0s2
                                 97A5C3A5-484A-40CF-9E73-6251095F1DA2
                                 Unlocked Encrypted
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.1 TB     disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:          Apple_CoreStorage SSHD                    999.3 GB   disk2s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk2s3
/dev/disk3 (external, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS SSHD2TB                +999.0 GB   disk3
                                 Logical Volume on disk2s2
                                 DA8E726B-6383-4470-BE08-97745C29D5DA
                                 Unlocked Encrypted
technicgal1:~ Technicgal1$ diskutil cs list
CoreStorage logical volume groups (2 found)
|
+-- Logical Volume Group 4322AA94-E294-4F72-B6F8-D6BA40A51408
|   =========================================================
|   Name:         Macintosh HD
|   Status:       Online
|   Size:         250140434432 B (250.1 GB)
|   Free Space:   9445376 B (9.4 MB)
|   |
|   +-< Physical Volume 94A7EE4F-CFC7-44BE-8A6A-83ABECAC3417
|   |   ----------------------------------------------------
|   |   Index:    0
|   |   Disk:     disk0s2
|   |   Status:   Online
|   |   Size:     250140434432 B (250.1 GB)
|   |
|   +-> Logical Volume Family 35483A58-9E0E-45ED-9317-7F22F7B49F6F
|       ----------------------------------------------------------
|       Encryption Type:         AES-XTS
|       Encryption Status:       Unlocked
|       Conversion Status:       Complete
|       High Level Queries:      Fully Secure
|       |                        Passphrase Required
|       |                        Accepts New Users
|       |                        Has Visible Users
|       |                        Has Volume Key
|       |
|       +-> Logical Volume 97A5C3A5-484A-40CF-9E73-6251095F1DA2
|           ---------------------------------------------------
|           Disk:                  disk1
|           Status:                Online
|           Size (Total):          249769230336 B (249.8 GB)
|           Revertible:            Yes (unlock and decryption required)
|           Revert Status:         Reboot required
|           LV Name:               Macintosh HD
|           Volume Name:           Macintosh HD
|           Content Hint:          Apple_HFS
|
+-- Logical Volume Group 42B22334-B408-4A14-881A-59085EFA8574
    =========================================================
    Name:         SSHD
    Status:       Online
    Size:         999345127424 B (999.3 GB)
    Free Space:   6062080 B (6.1 MB)
    |
    +-< Physical Volume 88553EA4-D22B-46CA-9F86-7C8CE46D529E
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk2s2
    |   Status:   Online
    |   Size:     999345127424 B (999.3 GB)
    |
    +-> Logical Volume Family BAEB0215-349C-4DC6-A03A-7AE4057DF831
        ----------------------------------------------------------
        Encryption Type:         AES-XTS
        Encryption Status:       Unlocked
        Conversion Status:       Complete
        High Level Queries:      Fully Secure
        |                        Passphrase Required
        |                        Accepts New Users
        |                        Has Visible Users
        |                        Has Volume Key
        |
        +-> Logical Volume DA8E726B-6383-4470-BE08-97745C29D5DA
            ---------------------------------------------------
            Disk:                  disk3
            Status:                Online
            Size (Total):          998982549504 B (999.0 GB)
            Revertible:            Yes (unlock and decryption required)
            LV Name:               SSHD2TB
            Volume Name:           SSHD2TB
            Content Hint:          Apple_HFS
technicgal1:~ Technicgal1$ 

OSHD 10.11.6安装在SSHD2TB上。


评论不作进一步讨论;此对话已转移至聊天
伊恩·C(

Answers:


1

要将2 TB SSD的未分配磁盘空间添加到卷SSHD2TB中,您必须调整整个CoreStorage堆栈SSHD(其中包含逻辑卷组42B22334-B408-4A14-881A-59085EFA8574,物理卷88553EA4-D22B-46CA- 9F86-7C8CE46D529E,逻辑卷系列BAEB0215-349C-4DC6-A03A-7AE4057DF831和逻辑卷DA8E726B-6383-4470-BE08-97745C29D5DA):

  • 引导至Macintosh HD。输入密码后,系统将启动到桌面。现在,将要求您输入SSHD2TB的密码以对其进行解锁。输入此密码。
  • 打开“磁盘工具”,然后验证/修复SSHD2TB。
  • 打开Terminal.app并输入diskutil list
  • 使用2 TB SSD的磁盘标识符(在您的示例disk2中)输入:

    diskutil info disk2 | grep "Total Size"
    

    这将产生类似以下内容:

    Total Size:      2.0 TB (2000390717440 Bytes) (exactly 3907013120 512-Byte-Units)
    
  • 然后输入diskutil cs list
  • 您将得到与问题类似或相同的输出。
  • 要调整整个堆栈的大小,请使用以下命令:diskutil cs resizeStack lvUUID sizelvUUID = SSHD2TB的逻辑卷UUID和大小:最终大小,以t(TeraByte),g(GigaByte),m(MegaByte)等为单位。

    现在,您必须从找到的总大小中减去EFI和Recovery HD的大小,以获得大小:〜2000391 MB-210 MB-650 MB = 1999531 MB。
    在这种情况下,命令如下:

    diskutil cs resizeStack DA8E726B-6383-4470-BE08-97745C29D5DA 1999531m
    

    如果出现错误:

    Error: -69720: There is not enough free space in the Core Storage Logical Volume Group for this operation
    

    只需选择一个较小的尺寸(例如1999525m),然后使用此值重新输入命令即可。

    在极少数情况下,魔术大小0g也适用:

    diskutil cs resizeStack DA8E726B-6383-4470-BE08-97745C29D5DA 0g
    

    这会将堆栈扩展到最大可能的大小。

    这两个命令都会调整整个CoreStorage堆栈的大小,然后将2 TB磁盘(在您的示例disk2s3中)上的Recovery HD移至磁盘末端。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.