V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hadixlin
V2EX  ›  macOS

BootCamp 安装 win10 出错,求助.

  •  
  •   hadixlin · 2018-03-07 00:42:26 +08:00 · 8016 次点击
    这是一个创建于 2461 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题安装 win10 的时候,提示不能分区.

    具体文字信息如下:

    Your disk could not be partitioned
    An error occurred while partitioning the disk. Please run Disk Utility to check and fix the error.

    尝试了各种网上的各种解决方案:

    1. 进入单用户模式使用 fsck -fy
    2. 使用磁盘工具里面的修复功能
    3. 关闭 time machine,执行 tmutil thinlocalsnapshots / 9999999999999999

    上述方案均为解决问题.问题依旧.

    求有经验的朋友指点.

    第 1 条附言  ·  2018-03-07 01:16:47 +08:00

    另外在系统日志里面发现这些相关日志

    default	00:58:21.774594 +0800	authd	Succeeded authorizing right 'com.apple.DiskManagement.internal.APFS' by client '/usr/libexec/diskmanagementd' [3295] for authorization created by '/Applications/Utilities/Boot Camp Assistant.app' [3322] (B,0)
    fault	00:58:21.810167 +0800	diskmanagementd	Unmount of disk1s1 blocked by dissenter PID=0 (kernel) status=0xf8da0002 (kDAReturnBusy)
    fault	00:58:21.861960 +0800	diskmanagementd	diskmanagement: execve(2) pid=3351 /System/Library/Filesystems/apfs.fs/Contents/Resources/fsck_apfs -n -x -l /dev/disk0s2 .
    fault	00:59:04.823117 +0800	diskmanagementd	diskmanagement: waitpid(2) pid=3351 exit=0
    default	01:00:03.129685 +0800	Boot Camp Assistant	DiskManagement: request for localized user error string for code -69606
    default	01:00:03.129734 +0800	Boot Camp Assistant	BCA: partition Error <A problem occurred while resizing APFS Container structures.> (-69606)
    
    
    第 2 条附言  ·  2018-03-07 01:18:22 +08:00

    diskutil list 输出如下

    /dev/disk0 (internal):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                         251.0 GB   disk0
       1:                        EFI EFI                     314.6 MB   disk0s1
       2:                 Apple_APFS Container disk1         250.7 GB   disk0s2
    
    /dev/disk1 (synthesized):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      APFS Container Scheme -                      +250.7 GB   disk1
                                     Physical Store disk0s2
       1:                APFS Volume Macintosh HD            114.4 GB   disk1s1
       2:                APFS Volume Preboot                 21.2 MB    disk1s2
       3:                APFS Volume Recovery                509.8 MB   disk1s3
       4:                APFS Volume VM                      1.1 GB     disk1s4
    
    /dev/disk2 (disk image):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            CPBA_X64FRE_ZH-CN_DV5  +4.6 GB     disk2
    
    第 3 条附言  ·  2018-03-07 01:29:27 +08:00
    操作系统版本 10.13.3
    BootCamp 版本 6.1.0 (6067.40.1)
    14 条回复    2018-03-07 13:30:33 +08:00
    lp10
        1
    lp10  
       2018-03-07 00:52:27 +08:00
    tmutil 需要 sudo

    然后麻烦截图或者复制粘贴发一下 diskutil list 的结果
    hadixlin
        2
    hadixlin  
    OP
       2018-03-07 01:10:52 +08:00
    @lp10
    /dev/disk0 (internal):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme 251.0 GB disk0
    1: EFI EFI 314.6 MB disk0s1
    2: Apple_APFS Container disk1 250.7 GB disk0s2

    /dev/disk1 (synthesized):
    #: TYPE NAME SIZE IDENTIFIER
    0: APFS Container Scheme - +250.7 GB disk1
    Physical Store disk0s2
    1: APFS Volume Macintosh HD 114.4 GB disk1s1
    2: APFS Volume Preboot 21.2 MB disk1s2
    3: APFS Volume Recovery 509.8 MB disk1s3
    4: APFS Volume VM 1.1 GB disk1s4

    /dev/disk2 (disk image):
    #: TYPE NAME SIZE IDENTIFIER
    0: CPBA_X64FRE_ZH-CN_DV5 +4.6 GB disk2
    lp10
        3
    lp10  
       2018-03-07 01:24:38 +08:00
    用 BootCamp 助理做好 Windows 安装 U 盘( BootCamp 助理里面只勾第一个选项,第二个会自动勾上,第三个不勾)。

    然后手动分区(“ 190g ”是指你的新 APFS 总分区大小)
    sudo diskutil apfs resizeContainer disk1 190g FAT32 BOOTCAMP 0
    (注意:分区操作有风险,过程中切勿断电关机。请先备份重要数据。)

    分区完成以后重启按住 option 进启动选单,插 U 盘选 EFI Boot 那个启动选项,然后正常安装。
    hadixlin
        4
    hadixlin  
    OP
       2018-03-07 01:31:16 +08:00
    使用磁盘工具手动进行分区,也是不行的.
    日志如下:
    ```
    Running operation 1 of 1: Add “ bootcamp ” by splitting “ Macintosh HD ”…
    Resizing APFS Container designated by APFS Container Reference disk1
    Verifying storage system
    Using live mode.
    Performing fsck_apfs -n -x -l /dev/disk0s2
    Checking volume.
    Checking the container superblock.
    Checking the EFI jumpstart record.
    Checking the space manager.
    Checking the object map.
    Checking the APFS volume superblock.
    Checking the object map.
    Checking the fsroot tree.
    Checking the snapshot metadata tree.
    Checking the extent ref tree.
    Checking the snapshots.
    Checking the APFS volume superblock.
    Checking the object map.
    Checking the fsroot tree.
    Checking the snapshot metadata tree.
    Checking the extent ref tree.
    Checking the snapshots.
    Checking the APFS volume superblock.
    Checking the object map.
    Checking the fsroot tree.
    Checking the snapshot metadata tree.
    Checking the extent ref tree.
    Checking the snapshots.
    Checking the APFS volume superblock.
    Checking the object map.
    Checking the fsroot tree.
    Checking the snapshot metadata tree.
    Checking the extent ref tree.
    Checking the snapshots.
    Verifying allocated space.
    warning: Overallocation Detected on Main device: (1300091+1) bitmap address (434910)
    The volume /dev/disk0s2 appears to be OK.
    Storage system check exit code is 0.
    Shrinking APFS Physical Store disk0s2 from 250,685,575,168 to 202,685,575,168 bytes
    Shrinking APFS data structures
    APFS Container Resize error code is 49187
    A problem occurred while resizing APFS Container structures.
    ```
    lp10
        5
    lp10  
       2018-03-07 01:31:32 +08:00
    或者你开机的时候按 cmd+R 进恢复模式然后再修复磁盘看看?
    hadixlin
        6
    hadixlin  
    OP
       2018-03-07 01:33:12 +08:00
    @lp10 我的 BootCamp 打开之后没有勾选的操作界面.
    只有选择镜像和调整磁盘分区.
    再下一步就开始下载 windows 支持软件->创建分区->出错结束.
    hadixlin
        7
    hadixlin  
    OP
       2018-03-07 01:33:49 +08:00
    @lp10 恢复模式修复磁盘也试过了.无效.
    lp10
        8
    lp10  
       2018-03-07 01:36:36 +08:00
    重启重装买新的(
    lp10
        9
    lp10  
       2018-03-07 01:44:58 +08:00
    重新试一下整套步骤?……

    cmd+R 进恢复模式
    sudo tmutil disable
    sudo tmutil thinlocalsnapshots / 9999999999999999
    sudo diskutil apfs resizeContainer disk0s2 0
    然后分区
    yescola
        10
    yescola  
       2018-03-07 06:20:57 +08:00 via iPhone
    这么跟你说。。我也是安装 win10 死活提示磁盘问题,后来实在憋不住重装了 macOS,然后就能正常装 win10 了。。
    ioth
        11
    ioth  
       2018-03-07 10:32:58 +08:00
    @yescola 有道理。
    分区和 mac os 本身系统有关系。
    aborigine
        12
    aborigine  
       2018-03-07 11:09:23 +08:00 via iPhone
    我也是重装解决的…直接 app store 覆盖安装一下就好了
    hadixlin
        13
    hadixlin  
    OP
       2018-03-07 13:27:45 +08:00 via iPhone
    @aborigine 用户数据会擦除吗?
    aborigine
        14
    aborigine  
       2018-03-07 13:30:33 +08:00
    @hadixlin #13 覆盖安装,不要格式化不会擦除用户数据的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2702 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 09:32 · PVG 17:32 · LAX 01:32 · JFK 04:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.