A
A
Arseny Sokolov2019-11-05 10:51:19
macOS
Arseny Sokolov, 2019-11-05 10:51:19

How to expand volume size in Mac OS Hight Sierra?

I have 2 disks in the poppy with an average size of 250 GB, on one disk 94 GB was allocated for the /private/var/vm partition, I recreated it, allocating a maximum of 10 GB to it and a minimum of 1 GB.
However, I would like to give the freed space to the main partition, but I don’t know how, I reviewed all the commands, dug through the Internet and found nothing.
Here are the sections:

$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *256.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk2         255.9 GB   disk0s2

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *250.1 GB   disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:                  Apple_HFS Data                    249.7 GB   disk1s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +255.9 GB   disk2
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            149.4 GB   disk2s1
   2:                APFS Volume Preboot                 22.5 MB    disk2s2
   3:                APFS Volume Recovery                519.3 MB   disk2s3
   4:                APFS Volume VM                      1.0 GB     disk2s4

And this is how the list of APFS volumes looks like:
$ diskutil apfs list
APFS Container (1 found)
|
+-- Container disk2 A7F88CD0-0B0F-478A-A1BB-5CEE3E2E3562
    ====================================================
    APFS Container Reference:     disk2
    Size (Capacity Ceiling):      255850758144 B (255.9 GB)
    Minimum Size:                 252803153920 B (252.8 GB)
    Capacity In Use By Volumes:   244895367168 B (244.9 GB) (95.7% used)
    Capacity Not Allocated:       10955390976 B (11.0 GB) (4.3% free)
    |
    +-< Physical Store disk0s2 AE753737-D34F-42B3-9661-5965325EB28B
    |   -----------------------------------------------------------
    |   APFS Physical Store Disk:   disk0s2
    |   Size:                       255850758144 B (255.9 GB)
    |
    +-> Volume disk2s1 D05A3B27-AD12-3F9F-851D-8C3FEF35B5B3
    |   ---------------------------------------------------
    |   APFS Volume Disk (Role):   disk2s1 (No specific role)
    |   Name:                      Macintosh HD (Case-insensitive)
    |   Mount Point:               /
    |   Capacity Consumed:         149366562816 B (149.4 GB)
    |   FileVault:                 No
    |
    +-> Volume disk2s2 1123C094-6956-424F-BF9A-FAEE2653AEEF
    |   ---------------------------------------------------
    |   APFS Volume Disk (Role):   disk2s2 (Preboot)
    |   Name:                      Preboot (Case-insensitive)
    |   Mount Point:               Not Mounted
    |   Capacity Consumed:         22503424 B (22.5 MB)
    |   FileVault:                 No
    |
    +-> Volume disk2s3 B43F9C6F-9A56-4386-AA35-2ECBD815600D
    |   ---------------------------------------------------
    |   APFS Volume Disk (Role):   disk2s3 (Recovery)
    |   Name:                      Recovery (Case-insensitive)
    |   Mount Point:               Not Mounted
    |   Capacity Consumed:         519303168 B (519.3 MB)
    |   FileVault:                 No
    |
    +-> Volume disk2s4 A23A7E6A-1398-46AE-BC4E-9660F333071A
        ---------------------------------------------------
        APFS Volume Disk (Role):   disk2s4 (VM)
        Name:                      VM (Case-insensitive)
        Mount Point:               /private/var/vm
        Capacity Consumed:         1000001536 B (1.0 GB)
        Capacity Reserve:          1000001536 B (1.0 GB)
        Capacity Quota:            10000003072 B (10.0 GB) (10.0% reached)
        FileVault:                 No

Those. it is not necessary to increase the APFS container in size, but only 1 volume in the container, which is disk2s1. How can I do that? Preferably without deleting all the data on the disk.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question