“Couldn’t Modify Partition Map” Error and How to Fix It

couldn't modify partition map

If you’re working with a drive and you keep getting the “Couldn’t Modify Partition Map” error, that typically means the storage device got corrupted or something went wrong with the file system. This makes the entire device unreadable to all but very specific software.

In this article, we explore three ways to deal with this error. We included step-by-step instructions as well as accompanying screenshots so you can safely work on your drive without worrying about your files (more on this later). Read on!

What is a Partition Map?

To understand what a partition map is, let’s first break down what a partition is. A “partition” is a virtual section of a hard disk. You can have multiple partitions on your hard disk, even if you’re using just a single HDD or SSD.

A “partition map” is your HDD or SSD’s table of contents. When you connect your drive to your computer, the partition map tells the operating system the following information:

  • Which partition is bootable
  • Where each partition is physically located on the hard disk
  • What each partition is used for (e.g., one for macOS, another for file storage, etc.)

The “Couldn’t Modify Partition Map” error usually occurs when this partition map gets damaged or corrupted, if it’s blocked from user access, or when the partition is currently in use.

How to Recover Deleted Data from a Problematic Device

Once you start encountering the Couldn’t Modify Partition Map error, we strongly recommend that you immediately recover your data, even before trying to fix the drive. This is to prevent total data loss in case of corruption or in case the repair solutions demand it (e.g., factory resetting your Mac).

For this task, you need a tool called “data recovery software.” It’s a type of application that can read the raw data on your hard disk and restore them as files—even if the drive is malfunctioning. For this demonstration, we’ll be using an app called Disk Drill. It’s very easy to use, it’s compatible with the latest macOS, and it natively supports a lot more file types than its competitors (especially videos).

Most importantly, it has a feature called Byte-to-byte backup. Disk Drill can create an image backup of your drive and use it as the scanning target, instead of putting your drive through more wear and tear. We’ll show you how it works in the step-by-step guide below.

Disk Drill Basic for Mac doesn’t offer free data recovery. However, you can download it for free, scan your drives as much as you want, and fully preview all of your files with no limits. You can at least check whether your files are even recoverable. You can also create image backups for free.
  1. Download and install Disk Drill.
  2. Securely connect your problematic drive to your Mac. Then, open Disk Drill.
  3. In the left sidebar, expand the Extra tools section and choose Byte-to-byte backup. Then, select your drive and click Create backup of your drive.
    Creating a Byte-to-bye backup with Disk Drill
  4. Choose a name and save location for your backup file. Then, click the Save button.
  5. Once your backup is created, click the Home button to return to the main window.
    Disk Drill successful backup creation
  6. Click Storage Devices from the left sidebar. Then, use the Attach disk image… button to add the backup file you created in step 4. Once it’s added, select it from the source list and click Search for lost data.
    Choosing a Byte-to-byte backup file in Disk Drill's source selection menu
  7. Select Universal Scan.
    Selecting Universal Scan from Disk Drill's scan type selection dialog
  8. Once Disk Drill is done scanning your files, click Review found items. Alternatively, Disk Drill may even be able to detect a lost partition–you can opt to review it specifically and only browse files from the affected drive (which can save you a lot of time).
    Button to review files that Disk Drill recovered
  9. If you want to recover specific files only, you can use filters in the left sidebar, as well as the search bar in the top-right corner of the window. And make sure to preview your files as you want to recover—hover your mouse pointer beside each file and click the eye button that appears.
    Utilizing Disk Drill's Preview, Filter, and Search tools
  10. To select the files you want to restore, tick the boxes beside them (in the left-most column). Then, click Recover. Alternatively, you can leave all boxes unticked and click Recover All.
    Selecting partition files to recover in Disk Drill's recovery menu
  11. In the dialogue box, choose a folder on your Mac that Disk Drill can use to store the recovered files (do not save it to the affected drive–you might overwrite your data). Finally, click Next.
    Choosing a save location for the partition files Disk Drill recovered
Try opening your recovered files to make sure they work. Once your data has been secured, you can proceed with the fixes in the next section safely.

How to Fix “Couldn’t modify partition map” Error

In this section, we’ll demonstrate 3 different methods to fix a drive with the “Couldn’t modify partition map” error. Each method has their own pros and cons and performs the repair operation in different ways–but one good thing they all have in common is that they only use native macOS tools.

The following methods will cause partial or total data loss. We strongly recommend that you recover your data (using the guide in the last section) before proceeding.

Method 1: Use Disk Utility’s First Aid Feature

Disk Utility is macOS’ native disk management tool. It has a feature called First Aid, which is a basic diagnostics and repair tool that can fix the underlying corruption or logical inconsistencies in the disk’s data structure (which could be leading to the partition map error).

It’s unable to repair severe cases of corruption, but it can be highly effective if your partition map just needs a consistency check.

  1. Open Disk Utility by using Spotlight Search (CMD + Space) or by opening Finder > Applications > Utilities > Disk Utility app.
    utilities folder within applications folder
  2. Select the problematic drive.
    disk utility window
  3. On the top right corner of the Disk Utility window, click the “First Aid” button.
    first aid button

Method 2: Use Disk Utility to Format the Drive and Create a New Partition Map

If you’re unable to resolve the error using First Aid due to the severity of the issue, your next best option is to completely format the drive. This erases everything on the drive and generates a completely new (and error-free) partition map from scratch.

You can use Disk Utility again for this operation; only this time, you’ll be using the Erase tool instead of First Aid. This method is much more likely to succeed than Method 1—just make sure to secure your data beforehand.

  1. Open Disk Utility by using Spotlight Search (CMD + Space) or by opening Finder > Applications > Utilities > Disk Utility app.
    spotlight search popup
  2. Click the “View” button on the top left corner of the Disk Utility window and click “Show All Devices.”
    show all devices option
  3. Select the storage device (not the partition) and click the “Erase” button at the top of the window.
    disk utility erase button
  4. Change the name of the device to whatever you want, and choose MS-DOS (FAT) for the format, and “Master Boot Record” for the scheme. Click the “Erase” button. This overwrites the old partitions and creates a new one, along with a new partition map.
    partition properties and the erase button
  5. Wait for the erase process to complete, and click “Done.” You now should be able to use your device.

Method 3: Format Your Drive Using Terminal Commands

Using diskutil Terminal commands is another way to format your drive and generate a completely fresh partition map. Use it if the Disk Utility GUI fails to format your drive due to bugs or limitations, such as in the case of severely corrupted partition maps.

Don’t worry! You only have to run a few easy commands—just follow our guide below.

  1. Connect your USB flash drive, SD card, or external hard drive to your Mac.
  2. Open the Terminal app by using using Spotlight Search (CMD + Space) or by opening Finder > Applications > Utilities > Terminal app
    terminal app
  3. To find your Disk’s identifier, type the following command and press return:
    diskutil list

    terminal disk identifier

  4. Once you’ve identified your disk, type the following command and press return:
    diskutil eraseDisk MS-DOS “disk name” /dev/”disk identifier”
    Change “drive name” to whatever you named your storage device, and “disk identifier” according to the identifier you found in Step #3. For example, here’s what I would type on the Terminal app:

    diskutil eraseDisk MS-DOS SAMSUNG BAR /dev/disk4s1

If successful, you’ll lose all your data but you will be able to use your device normally again.

Seeing Other Signs of Corruption?

The “Couldn’t Modify Partition Map” error could simply be a symptom of a much larger corruption issue. If this is the case for you, there are more methods you can try to repair the root cause of the error and eliminate it completely.

Check out our other guide on how to fix corrupted hard drives on a Mac. We’ll show you other fixes that are missing from this guide, that could possibly repair the larger instance of corruption causing the partition map error.

FAQ

If this partition cannot be modified, it means that the partition map (or the entire partition or even the entire disk) was corrupted, or certain information on the partition is missing. The partition then becomes unreadable, and your OS can’t interact with it as usual.
If you want to change the partition map, you’ll have to reformat the entire disk. There’s no way to isolate this modification for a single partition. Before reformatting, make sure to recover and back up your important files.
    1. Recover and back up your data with data recovery software like Disk Drill.
    2. Try Disk Utility’s First Aid feature to repair the partition map on your Mac.
    3. Reformat the disk. Again, recover and back up your data first.
Alejandro Santos
Chief Writer
Alejandro is Macgasm’s Chief Writer and Apple ecosystem enthusiast. He pens the majority of troubleshooting guides and software reviews for this website, tapping into his love for technology and extensive background in technical writing. He started his career by helping… Full Bio