zoukankan      html  css  js  c++  java
  • MacOS虚拟机拓展磁盘容量

    1、终端指令查询:diskutil list

    2、终端指令拓展:diskutil apfs resizeContainer disk0s2 100GB

    macsn@MacsndeMac ~ % diskutil list
    /dev/disk0 (internal, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *137.4 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:                 Apple_APFS Container disk1         64.1 GB    disk0s2
    
    /dev/disk1 (synthesized):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      APFS Container Scheme -                      +64.1 GB    disk1
                                     Physical Store disk0s2
       1:                APFS Volume Mac - 数据              24.8 GB    disk1s1
       2:                APFS Volume Preboot                 83.8 MB    disk1s2
       3:                APFS Volume Recovery                528.1 MB   disk1s3
       4:                APFS Volume VM                      1.1 MB     disk1s4
       5:                APFS Volume Mac                     11.0 GB    disk1s5
    
    macsn@MacsndeMac ~ % diskutil resizeVolume disk0s2 100GB
    disk0s2 is an APFS Physical Store (use "diskutil apfs resizeContainer" instead to resize)
    macsn@MacsndeMac ~ % diskutil apfs resizeContainer disk0s2 100GB
    Started APFS operation
    Aligning grow delta to 35,919,462,400 bytes and targeting a new physical store size of 99,999,997,952 bytes
    Determined the maximum size for the targeted physical store of this APFS Container to be 137,228,169,216 bytes
    Resizing APFS Container designated by APFS Container Reference disk1
    The specific APFS Physical Store being resized is disk0s2
    Verifying storage system
    Using live mode
    Performing fsck_apfs -n -x -l -S /dev/disk0s2
    Checking the container superblock
    Checking the EFI jumpstart record
    Checking the space manager
    Checking the space manager free queue trees
    Checking the object map
    Checking volume
    Checking the APFS volume superblock
    The volume Mac - 数据 was formatted by hfs_convert (1412.101.1) and last modified by apfs_kext (1412.101.1)
    Checking the object map
    Checking the snapshot metadata tree
    Checking the snapshot metadata
    Checking the extent ref tree
    Checking the fsroot tree
    Checking volume
    Checking the APFS volume superblock
    The volume Preboot was formatted by hfs_convert (1412.101.1) and last modified by apfs_kext (1412.101.1)
    Checking the object map
    Checking the snapshot metadata tree
    Checking the snapshot metadata
    Checking the extent ref tree
    Checking the fsroot tree
    Checking volume
    Checking the APFS volume superblock
    The volume Recovery was formatted by diskmanagementd (1412.101.1) and last modified by apfs_kext (1412.101.1)
    Checking the object map
    Checking the snapshot metadata tree
    Checking the snapshot metadata
    Checking the extent ref tree
    Checking the fsroot tree
    Checking volume
    Checking the APFS volume superblock
    The volume VM was formatted by diskmanagementd (1412.101.1) and last modified by apfs_kext (1412.101.1)
    Checking the object map
    Checking the snapshot metadata tree
    Checking the snapshot metadata
    Checking the extent ref tree
    Checking the fsroot tree
    Checking volume
    Checking the APFS volume superblock
    The volume Mac was formatted by diskmanagementd (1412.101.1) and last modified by apfs_kext (1412.101.1)
    Checking the object map
    Checking the snapshot metadata tree
    Checking the snapshot metadata
    Checking the extent ref tree
    Checking the fsroot tree
    Verifying allocated space
    The volume /dev/disk0s2 appears to be OK
    Storage system check exit code is 0
    Growing APFS Physical Store disk0s2 from 64,080,535,552 to 99,999,997,952 bytes
    Modifying partition map
    Growing APFS data structures
    Finished APFS operation
  • 相关阅读:
    C++:delete和delete[]释放内存的区别
    C++:四种必须使用初始化列表情况
    C++:获取数组长度
    C++:构造函数默认的参数声明
    java 的开源wiki维基系统
    openfire 最大连接数调优
    即时通讯服务器的对比
    分分钟带你玩转 Web Services
    让git忽略ignore所有文件,只对某些文件进行版本控制
    miracast 协议wifi display
  • 原文地址:https://www.cnblogs.com/axibug/p/12951390.html
Copyright © 2011-2022 走看看