Format Hard Drive Mac Os X Terminal

02.08.2020by

Mac OS X Mountain Lion gives users several ways to access the Terminal and three common options for formatting a hard drive. You can launch Terminal within Mac OS X to format hard drives currently. Mac OS X can only be installed on a hard drive formatted in Mac OS Extended ( Journaled), filesystem. So if you wish to clean a hard drive for a fresh install of OS X you will need to format it under Mac OS Extended ( Journaled). If you want to create an encrypted drive for Mac, it should be formatted in Mac OS Extended (Journaled). Reformatting the drive will erase all data on the drive, so you should copy any data you want off the drive prior to formatting. The following is based on Mac OS X version 10.10.5. However, the steps are suitable for Mac OS X 10.6.8 to 10.10.5. For instructions on how to format a drive in Mac OS 10.11 (El Capitan) and above click here.

Format hard drive mac os x terminal

Jul 12, 2017  Why You Probably Don’t Want to Use APFS Yet. RELATED: The Best New Features in macOS Sierra (and How to Use Them) The new Apple File System is currently experimental. Apple is targeting a final release in 2017, and your Mac’s system drive–and the drives inside iPhones, iPads, Apple TVs, and Apple Watches–should automatically convert to APFS at that point. Aug 30, 2016  Some Mac users may require the ability to erase a disk or erase a hard drive from the command line on Mac OS, a task which is typically performed through the Disk Utility application from the GUI. The command line approach to disk erasure in macOS is a bit different and it requires precise syntax to insure that you are erasing the proper disk, making this method of erasing any disk only.

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.

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.

If the assistant says that the Windows support software could not be saved to the selected drive, or that the USB flash drive can't be used, make sure that your USB flash drive has a storage capacity of at least 16GB and is. Disconnect and reconnect the drive, then click Continue. Installation failed can't install the software mac torrent. If the assistant doesn't see your USB flash drive, click Go Back and make sure that the drive is connected directly to the USB port on your Mac—not to a display, hub, or keyboard. If the assistant says that it can't download the software because of a network problem,.

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.

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.

Format Hard Drive Mac Os X Terminal

About APFS and Mac OS Extended

Format hard drive mac os

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.

Format Disk Mac Os X

How to identify the format currently in use

Fat32 Format Mac Os X

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

  • 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.

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

  • 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.
Comments are closed.