Erasing your disk: For most reasons to erase, including when reformatting a disk or selling, giving away, or trading in your Mac, you should erase your entire disk.

Erasing a volume on your disk: In other cases, such as when your disk contains multiple volumes (or partitions) and you don't want to erase them all, you can erase specific volumes on the disk.

Jul 06, 2018 GPT fdisk (consisting of the gdisk, cgdisk, sgdisk, and fixparts programs) is a set of text-mode partitioning tools for Linux, FreeBSD, Mac OS X, and Windows. The gdisk, cgdisk, and sgdisk programs work on Globally Unique Identifier (GUID) Partition Table (GPT) disks, rather than on the older (and once more common) Master Boot Record (MBR) partition tables. The DOS fdisk program can be used to divide space on the disk into parti- tions and set one active. This fdisk program serves a similar purpose to the DOS program. When called with no special flags, it prints the MBR partition table of the specified device, i.e., # fdisk fd0 Disk: fd0 geometry: 80/2/18 2880 sectors Offset: 0 Signature: 0xAA55.

Erasing a disk or volume permanently deletes all of its files. Before continuing, make sure that you have a backup of any files that you want to keep.

How to erase your disk

  1. Start up from macOS Recovery. Then select Disk Utility from the Utilities window and click Continue.
    If you're not erasing the disk your Mac started up from, you don't need to start up from macOS Recovery: just open Disk Utility from the Utilities folder of your Applications folder.
  2. Choose View > Show All Devices from the menu bar in Disk Utility. The sidebar now shows your disks (devices) and any containers and volumes within them. The disk your Mac started up from is at the top of the list. In this example, Apple SSD is the startup disk:
  3. Select the disk that you want to erase. Don't see your disk?
  4. Click Erase, then complete these items:
    • Name: Type the name that you want the disk to have after you erase it.
    • Format: Choose APFS or Mac OS Extended (Journaled). Disk Utility shows a compatible format by default.
    • Scheme: Choose GUID Partition Map.
  5. Click Erase to begin erasing your disk and every container and volume within it. You might be asked to enter your Apple ID. Forgot your Apple ID?
  6. When done, quit Disk Utility.
  7. If you want your Mac to be able to start up from the disk you erased, reinstall macOS on the disk.
Fdisk

How to erase a volume on your disk

  1. Start up from macOS Recovery. Then select Disk Utility from the Utilities window and click Continue.
    If you're not erasing the volume your Mac started up from, you don't need to start up from macOS Recovery: just open Disk Utility from the Utilities folder of your Applications folder.
  2. In the sidebar of Disk Utility, select the volume that you want to erase. The volume your Mac started up from is named Macintosh HD, unless you changed its name. Don't see your volume?
  3. Click Erase, then complete these items:
    • Name: Type the name that you want the volume to have after you erase it.
    • Format: Choose APFS or Mac OS Extended (Journaled). Disk Utility shows a compatible format by default.
  4. If you see an Erase Volume Group button, the volume you selected is part of a volume group. In that case, you should erase the volume group. Otherwise, click Erase to erase just the selected volume. You might be asked to enter your Apple ID. Forgot your Apple ID?
  5. When done, quit Disk Utility.
  6. If you want your Mac to be able to start up from the volume you erased, reinstall macOS on that volume.

Reasons to erase

You can erase at any time, including in circumstances such as these:

  • You want to permanently erase all content from your Mac and restore it to factory settings. This is one of the final steps before selling, giving away, or trading in your Mac.
  • You're changing the format of a disk, such as from a PC format (FAT, ExFAT, or NTFS) to a Mac format (APFS or Mac OS Extended).
  • You received a message that your disk isn't readable by this computer.
  • You're trying to resolve a disk issue that Disk Utility can't repair.
  • The macOS installer doesn't see your disk or can't install on it. For example, the installer might say that your disk isn't formatted correctly, isn't using a GUID partition scheme, contains a newer version of the operating system, or can't be used to start up your computer.
  • The macOS installer says that you may not install to this volume because it is part of an Apple RAID.

About APFS and Mac OS Extended

Download

Disk Utility in macOS High Sierra or later can erase using either the newer APFS (Apple File System) format or the older Mac OS Extended format, and it automatically chooses a compatible format for you.

How to choose between APFS and Mac OS Extended

Disk Utility tries to detect the type of storage and show the appropriate format in the Format menu. If it can't, it chooses Mac OS Extended, which works with all versions of macOS. If you want to change the format, answer these questions:

  • Are you formatting the disk that came built into your Mac?
    If the built-in disk came APFS-formatted, Disk Utility suggests APFS. Don't change it to Mac OS Extended.
  • Are you about to install macOS High Sierra or later for the first time on the disk?
    If you need to erase your disk before installing High Sierra or later for the first time on that disk, choose Mac OS Extended (Journaled). During installation, the macOS installer decides whether to automatically convert to APFS—without erasing your files.
  • Are you preparing a Time Machine backup disk or bootable installer?
    Choose Mac OS Extended (Journaled) for any disk that you plan to use as a Time Machine backup disk or as a bootable installer.
  • Will you be using the disk with another Mac?
    If the other Mac isn't using macOS High Sierra or later, choose Mac OS Extended (Journaled). Earlier versions of macOS don't work with APFS-formatted volumes.

How to identify the format currently in use

If you want to know which format is currently in use, use any of these methods:

Fdisk
  • Select the volume in the Disk Utility sidebar, then check the information shown on the right. For more detail, choose File > Get Info from the Disk Utility menu bar.
  • Open System Information and select Storage in the sidebar. The File System column on the right shows the format of each volume.
  • Select the volume in the Finder, then choose File > Get Info from the menu bar. The Get Info window shows the Format of that volume.

Fdisk For Mac Os X 10 11 Download Free

Fdisk mac os x

If your disk or volume doesn't appear, or the erase fails

  1. Shut down your Mac, then unplug all nonessential devices from your Mac.
  2. If you're erasing an external drive, make sure that it's connected directly to your Mac using a cable that you know is good. Then turn the drive off and back on.
  3. If your disk or volume still doesn't appear in Disk Utility, or Disk Utility reports that the erase process failed, your disk or Mac might need service. If you need help, please contact Apple Support.

Learn more

Xterm For Mac Os X

  • If you can't start up from macOS Recovery, you can use a different startup disk instead.
  • If Disk Utility shows a Security Options button in the Erase window, you can click that button to choose between a faster (but less secure) erase and a slower (but more secure) erase. Some older versions of Disk Utility offer the option to zero all data instead. These secure-erase options aren't offered or needed for solid-state drives (SSDs) and flash storage.