badrealestate.blogg.se

Resize a mac disk image
Resize a mac disk image











resize a mac disk image

The diskutil command automatically locates the physical store for my APFS container, and resizes things accordingly. Note that in my case, I could replace disk0s2 with disk1 for either command, since my APFS container is located at disk1. I could also create multiple partitions, using a command like this: sudo diskutil apfs resizeContainer disk0s2 750g jhfs+ Media 200g FAT32 Windows 50g The output of the command will look something like this: Resize you APFS container from Terminal I could have also issued the command like this, and diskutil would automatically determine the size for my new partition: sudo diskutil apfs resizeContainer disk0s2 750g jhfs+ Media 0b We need to use sudo here, to take administrative privileges over the Terminal session. That command would resize the APFS container from 1TB to 750GB, also creating a 250GB journaled HFS+ partition with the freed space. To shrink my 1TB APFS container to 750GB, I’d issue the following command in Terminal: sudo diskutil apfs resizeContainer disk0s2 750g jhfs+ Extra 250g You use the same command for both processes, but you might be likely to want to reduce the size of your APFS partition first, perhaps to install another operating system on your Mac. Let’s talk about shrinking the APFS partition, or container, first. Locating your APFS container prior to resizing it Resizd Your APFS Container (the Hard Way) Note that my APFS container is named /dev/disk1, and resides at /dev/disk0s2. Once there, issue this command to find out where your APFS container lives: diskutil list To do this, you’ll need to open Terminal from Applications -> Utilities. For now, though, the Terminal is our friend. It’s a pretty common requirement, so Cupertino is bound to incorporate it more easily into the final version of macOS 10.13 High Sierra. I’m confident that by the time High Sierra ships in the fall, this will be possible within the graphical Disk Utility. Of course, if you haven’t already migrated over to APFS, you might want to look into that first, with the help of John Martellaro. You can’t currently do this from Disk Utility, so it requires some Terminal geekery.

resize a mac disk image

If you’re running one of the macOS High Sierra betas and have tried to resize your APFS container without success, I’ve got the answer for you.













Resize a mac disk image