Код ошибки изменения размера контейнера apfs 49187

I managed to solve the problem.

Error code 49187 appears to be an internal error in the structure of the APFS that occurred during the file system installation.

I couldn’t find a solution to fix it, so I could only recover the following steps:

#Step 1:
I made a Time Machine backup (otherwise I just updated my existing one)

#Step 2:
I restarted the computer and selected the installation option from the USB installer

#Step 3:
I then run the following command in the terminal to list the disks:

diskutil list

(The terminal can be found as a menu item once the installer boots)

#Step 4:
I selected the disk on which the macOS is installed (in this case, this was «disk1»)

#Step 5:
Then I ran the following command (To convert an APFS container into a free space, you must first delete the container):

diskutil apfs deleteContainer disk1

#Step 6:
Then restore the system using Time Machine

After restoring the system, I was able to partition without problems.

If Boot Camp Assistant fails trying to partition a Mojave OSX volume after a clean install, giving an unhelpful message to run Disk Utility (which finds no problem), it is a «silent» 49187 error. Seems to be triggered by a Bootcamp partition that is much larger than the OSX partition. Confirmation comes by trying to create partitions with the same size in Disk Utility, which reports the 49187 error. This Time Machine backup/wipe/restore procedure cures the silent 49187 error and lets Boot Camp Assistant perform the partition.
enter image description here

When I try to create/resize partition via Disk Utility or Terminal I get an error:
APFS Container Resize error code is 49187

Also I stopped Time Machine, deleted all snapshots, but nothing changed.

Any ideas?

From Disk Utility
enter image description here

From Terminal
enter image description here

asked Jun 23, 2018 at 21:34

Vitaliy Kravchyshyn's user avatar

1

Load 6 more related questions

Show fewer related questions

macOS Sonoma: Available 9.26

Looks like no one’s replied in a while. To start the conversation again, simply

ask a new question.

APFS Container Resize error code is 49187

Posted on Nov 20, 2017 8:22 PM

3 replies

Nov 20, 2017 8:30 PM in response to jimmyqu

Sorry, but there is no error code list for APFS from Apple. APFS is too new. Highly unlikely anyone here knows what that means beyond the obvious — container resizing. I would assume there is a problem that you can try to fix using Disk Utility if you haven’t already tried. Try performing First Aid on the volume.

Repair the Drive for El Capitan or Later

  1. Restart the computer and after the chime hold down the Command and R keys until the Utility Menu appears.
  2. Select Disk Utility and press the Continue button.
  3. Then select the indented (usually, Macintosh HD) volume entry from the side list.
  4. Click on the First Aid tab in the toolbar and wait for the Done button to activate. Click on it, then quit Disk Utility.
  5. Select Restart from the Apple menu.

If the above doesn’t help then you need to reformat the volume.

Nov 20, 2017 8:38 PM in response to jimmyqu

By chance do you have a Boot Camp partition on your drive? See Can APFS be used with Time Machine, Boot Camp, and File Vault?. Or it could be caused by Time Machine’s snapshots.

APFS Container Resize error code is 49187

Apple: Can't resize macOS partition (APFS error code 49187) (4 Solutions!!)

Uploaded by Roel Van de Paar | 2021-02-24 23:54:02

Apple: Can’t resize macOS partition (APFS error code 49187)

Helpful? Please support me on Patreon: https://www.patreon.com/roelvandepaar

With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under CC BY-SA https://meta.stackexchange.com/help/licensing | Music: https://www.bensound.com/licensing | Images: https://stocksnap.io/license & others | With thanks to user Victor (apple.stackexchange.com/users/313140), user Emmanuel Vazquez (apple.stackexchange.com/users/381365), user dosmath (apple.stackexchange.com/users/308767), user dctacsi (apple.stackexchange.com/users/318148), user banjo (apple.stackexchange.com/users/390707), user atirit (apple.stackexchange.com/users/136782), and the Stack Exchange Network (apple.stackexchange.com/questions/316061). Trademarks are property of their respective owners. Disclaimer: All information is provided “AS IS” without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com

#Apple #Can39t #resize #macOS #partition #APFS #error #code #Solutions – AreaViral


Back to top button

Can’t resize macOS partition (APFS error code 49187)

I’m unable to shrink my APFS macOS partition in Disk Utility or by using diskutil. When I try with either method, I receive error code 49187. There appears to be no reference for these codes and I can’t find any information online. I have tried deleting Time Machine snapshots and that made no difference. First Aid on my disk reveals some kind of corruption in the partition map:

enter image description here

I tried what it said and First Aid only lets me scan my macOS partition in Recovery Mode. Using diskutil gives me Error starting file system repair for disk0: Invalid request (-69886).

Is there any way to fix this? I’m trying to add a FAT32 partition to my disk.

This is on macOS 10.13.3.

Solution 1:

I solved this error for myself by the following steps, (to be sure I included all)

  • Time Machine snapshot delete fix
  • Decrypt harddrive from filevault

This resulted in the persistence of the error. But then I booted in recovery mode (reboot and hold cmd+R) and started the disk utility there. To my surprise the Disk Utility showed me different values for the free space of my partition. I only had 20g free instead of the 50g I tried to allocate each time.

When I did the normal partition steps in the recovery boot Disk Utility everything went fine and I am currently running Ubuntu 18.04.1 alongside Mojave 10.14.1 without problems, be it that I only have 20g.

Solution 2:

I experienced the same error code, 49187. Below is some background context from my situation and my resolution at the end.

I had re-imaged a MacBook Air as a dev machine and forgot that I wanted to partition the drive.

I, too, ensured file encryption and Time Machine were not active (and used tmutil to thin snapshots) but still experienced the same partition error as the OP. I then took the scorched earth approach; I was going to re-format entirely. I first ensured I had a Mojave installer on a USB thumb drive (using DiskMaker X) then rebooted into recovery mode (Cmd-R).

There, I started Disk Utility to erase and partition. In fact, it failed there as well. After it failed, it showed used file space of roughly 1gig and 75gig of ‘other’ (which is actually the size of the partition I attempted to add).

The resolution, fortunately, was at hand. I was able to Unmount the APFS drive and actually erase/re-format it with APFS and then create the additional partition.

I am not exactly sure why this worked. When I looked at my drive initially in Disk Utility, it said that it was shared by 4 volumes although I hadn’t partitioned anything myself. Once I unmounted and erased the entire drive in Recovery Mode, it showed as One Volume. I wonder if any recovery volume(s) added during High Sierra or Mojave’s install prevented APFS partitioning to take effect.

Solution 3:

My solution was trying a smaller second partition size. Disk Utility said the space was free but I guess it really isn’t.

Solution 4:

I managed to solve the problem.

Error code 49187 appears to be an internal error in the structure of the APFS that occurred during the file system installation.

I couldn’t find a solution to fix it, so I could only recover the following steps:

#Step 1:
I made a Time Machine backup (otherwise I just updated my existing one)

#Step 2:
I restarted the computer and selected the installation option from the USB installer

#Step 3:
I then run the following command in the terminal to list the disks:

diskutil list

(The terminal can be found as a menu item once the installer boots)

#Step 4:
I selected the disk on which the macOS is installed (in this case, this was «disk1»)

#Step 5:
Then I ran the following command (To convert an APFS container into a free space, you must first delete the container):

diskutil apfs deleteContainer disk1

#Step 6:
Then restore the system using Time Machine

After restoring the system, I was able to partition without problems.

If Boot Camp Assistant fails trying to partition a Mojave OSX volume after a clean install, giving an unhelpful message to run Disk Utility (which finds no problem), it is a «silent» 49187 error. Seems to be triggered by a Bootcamp partition that is much larger than the OSX partition. Confirmation comes by trying to create partitions with the same size in Disk Utility, which reports the 49187 error. This Time Machine backup/wipe/restore procedure cures the silent 49187 error and lets Boot Camp Assistant perform the partition.
enter image description here

Like this post? Please share to your friends:
  • Код ошибки камаз евро 5 sa61
  • Код ошибки интернета 3002
  • Код ошибки есм
  • Код ошибки камаз евро 4 520211
  • Код ошибки интернал сервер что значит