• 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
  • 相关阅读:
    VUE单页模板
    Nacos(作为配置中心)
    OpenFeign与Nacos(作为注册中心) 远程调用
    Nacos 服务注册
    Docker 安装Redis
    Docker安装Mysql
    多线程之CAS和ABA
    Volatile
    JAVA语言的特点
    判断多选按钮被选中两种方法
  • 原文地址:https://www.cnblogs.com/axibug/p/12951390.html
Copyright © 2020-2023  润新知