하드 드라이브를 분할하고 공간의 절반을 잃어 버렸습니다.


1

하드 드라이브를 분할했는데 이제는 파티션을 삭제 한 후에 원래 있던 공간의 절반을 사용하게되었습니다. 내 공간을 다시 얻으려면 어떻게해야합니까 ?? enter image description here


어떻게 분할 했어? APFS 컨테이너와 구별 되었습니까? 아니면 그 안에 새 볼륨이 있습니까?
Alex

답변:


5

다음과 같이 APFS에게 컨테이너를 확장하여 디스크를 채울 수 있습니다.

diskutil apfs resizeContainer disk0s2 0

이것은 비파괴 적이며 실제 디스크를 채우기 위해 자동으로 증가합니다. 이것이 바로 마지막 0의 의미입니다.

전체 설명 :

Usage:  diskutil APFS resizeContainer <inputDisk> limits [-plist]
        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 the Container which it defines will be resized by an
equal amount. You do this by specifying a new Container size; to preview the
current available range, you can instead specify "limits"; no change will be
made. A new size of zero is taken as a request to do a 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, and all of
the Container's Volumes must be unencrypted or unlocked.
Example:  diskutil apfs resizeContainer disk5 110g
          diskutil apfs resizeContainer disk0s2 110g
          diskutil apfs resizeContainer disk5 0
          diskutil apfs resizeContainer disk5 1.5t jhfs+ foo 10g ms-dos BAR 0
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.