Disco fisso partizionato e ora manca metà dello spazio

1

Ho parzonato il mio disco fisso e ora ho metà dello spazio che avevo originariamente anche dopo aver eliminato la partion. Come posso recuperare il mio spazio ??

    
posta Andrea 25.08.2018 - 02:27
fonte

1 risposta

5

Puoi dire a APFS di far crescere il contenitore per riempire il disco come segue:

diskutil apfs resizeContainer disk0s2 0

Questo non è distruttivo e lo crescerà automaticamente per riempire il disco reale - questo è ciò che l'ultimo 0 significa.

Spiegazione completa:

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
    
risposta data 25.08.2018 - 02:34
fonte

Leggi altre domande sui tag