首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何缩小/调整apfs的大小?

如何缩小/调整apfs的大小?
EN

Stack Overflow用户
提问于 2017-06-11 16:12:12
回答 1查看 3.5K关注 0票数 8

我想缩小引导文件系统的大小(格式化为APFS),怎么做呢?

在macOS Sierra中,HFS+可以在不重新启动/重装的情况下缩小(在disk utility中),但是在macOS High中,这似乎是不可能的。

EN

回答 1

Stack Overflow用户

发布于 2017-07-28 04:43:45

您要查找的命令是diskutil apfs resizeContainer

代码语言:javascript
复制
Usage:  diskutil APFS resizeContainer <inputDisk> <newSize> [<triple>*]
        where <inputDisk> = A Container Reference DiskIdentifier (preferred)
              or a Physical Store DiskIdentifier
              <newSize> = the desired new Container or Physical Store size
              <triple> = a { fileSystemPersonality, name, size } tuple
Resize an APFS Container. One of the Container's Physical Store disks will be
resized, and therefore its Container will be resized by an equal amount. You
can specify a new size of zero to request an automatic grow-to-fit operation.
If the new size implies a shrink, you can specify ordered triples in the same
manner as diskutil partitionDisk, etc, to fill the partition map's free space
gap that would otherwise result. If there is more than one Physical Store and
you specify a Container Reference, the appropriate Physical Store will be
chosen automatically. Ownership of the affected disks is required.
Example:  diskutil apfs resizeContainer disk5 110g
          diskutil apfs resizeContainer disk5 110g jhfs+ foo 10g ms-dos BAR r
          diskutil apfs resizeContainer disk0s2 90g jhfs+ foo 10g ms-dos BAR r
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44485949

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档