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
  • 相关阅读:
    声明:此资源由本博客收集整理于网络,只用于交流学习,请勿用作它途。如有侵权,请联系, 删除处理。
    注入点归纳
    网站入侵思路
    关于网上的“人肉”里面的技巧,简单解释
    SQL注入复习
    自己构造注入点方便入侵
    SQL通常注射的一些介绍
    AWVS13破解版安装_Windows
    黑页
    显ipQQ
  • 原文地址:https://www.cnblogs.com/axibug/p/12951390.html
Copyright © 2011-2022 走看看