- 积分
- 142
- 最后登录
- 2024-3-25
- 精华
- 0
- 阅读权限
- 20
- 主题
- 4
- UID
- 282868
- 帖子
- 355
- PB币
- 3372
- 威望
- 0
- 贡献
- 0
- 技术
- 1
- 活跃
- 1279
Power_By_RTL
- UID
- 282868
- 帖子
- 355
- PB币
- 3372
- 贡献
- 0
- 技术
- 1
- 活跃
- 1279
|
发表于 2019-8-19 19:02:22
IP属地广西
|显示全部楼层
可用系统自带命令重新定义分区大小,以下命令需root权限,最好在单用户模式下进行
HFS+:diskutil resizeVolume xxxxxx
- $ mount
- /dev/disk0s2 on / (local, journaled)
- # 確認
- $ diskutil resizeVolume /dev/disk0s2 limits
- For device disk0s2 Macintosh HD:
- Current size: 99686268928 bytes
- Minimum size: 22444863488 bytes
- Maximum size: 99686268928 bytes
- # 执行
- $ diskutil resizeVoluem /dev/disk0s2 50G <======使用全部空间改为0
复制代码
APFS:
diskutil apfs resizeContainer xxxxxx
ps:忠告执行命令前需先备份资料并了解命令,否则有数据丢失风险
|
|