Mac terminal erase disk partition. Next, find the disk that contains the partition you wish to delete and enter the following command: “diskutil eraseVolume JHFS+ [name of partition I've also tried: diskutil eraseDisk JHFS+ Stef2TB /dev/disk2 Started erase on disk2 Unmounting disk Creating partition map Waiting for disks to reappear Formatting disk2s2 as Mac OS Extended (Journaled) with name Stef2TB Error: -9944: File system formatter failed Can I salvage this drive somehow or is it ready for the trash? Sep 28, 2025 · Step-by-step guide using Disk Utility, Terminal, and Erase All Content & Settings to wipe startup disk on macOS Tahoe. If using macOS 10. Feb 21, 2023 · If the partition map failure occurred on your system drive, the best solution is to reinstall macOS and opt to wipe the system drive entirely. Here's how to use it. 3 days ago · Summary: Disk Utility won't let you erase hard drives? This post includes all possible solutions to fix the "Erase process has failed" error, and the Erase button grayed out in Mac Disk Utility. Step-by-step guide for formatting and securely wiping data on your Mac drive. To remove all partitions from the disk and make the disk brand new again, in macOS we can use this command: andy-mac:~ andy$ diskutil list /dev/disk0 (internal, physical): #: TYPE NAME Sep 28, 2025 · Step-by-step guide using Disk Utility, Terminal, and Erase All Content & Settings to wipe startup disk on macOS Tahoe. You can use it to write an Ubuntu image to a USB stick. Sep 8, 2023 · You should be able to do this with the Disk Utility GUI The following should work if your diskutil list shows (free space) for your disk0: Open Disk Utility (GUI), e. An error occurred while partitioning the disk. After your drive is erased, open Terminal. From the terminal, which is included in the OS X install, I've ran diskutil and here is the output: diskutil unmountDisk force /dev/disk012 also can't unmount disks. Jul 26, 2015 · I need to delete a folder otherwise my mac won't boot. Jul 23, 2016 · If you have a partition on your Mac that you don't use anymore, you may want to reclaim that space. . Learn effective alternatives and ensure your data is securely wiped. Choose a format (APFS, HFS+, or exFAT). From what I've read, I need to completely nuke the partition table. Jan 15, 2026 · Add the Install macOS xxx. Mar 16, 2026 · Manage Storage Space: Disk Utility allows you to create partitions and volumes to organize your storage. This command will erase the contents partition 4. Unlike Disk Utility or Terminal, Recovery Assistant doesn't offer a choice of what to erase. Jun 20, 2025 · Learn 4 ways to format USB flash drives to FAT32 on Windows 11/10, plus detailed guides for macOS and Linux users. Creating partitions on Mac offers several benefits to Mac users. 3 days ago · Here are the 8 fixes to eliminate 'Your disk could not be partitioned. Oct 4, 2023 · There are a few reasons why someone may want to completely delete all partitions on their Mac’s hard drive: Before selling or gifting the Mac, to wipe all personal data and start fresh To troubleshoot partition and disk issues, resetting may fix problems To reinstall macOS from scratch and clear out any problems To switch from a partitioned drive to having a single volume To change the Jan 13, 2026 · This article guides you on how to erase a disk using Terminal. Jan 29, 2020 · Recovery Mode is a special partition on your Mac you can use to restore from a backup, reinstall macOS, get online support, or erase your startup disk. It seems to be stuck at a point where it states it's waiting for partitions to activate. Jul 29, 2021 · So, that process modified the partition table, and the drive now reports a size of 1Gb. ) Sep 8, 2023 · You should be able to do this with the Disk Utility GUI The following should work if your diskutil list shows (free space) for your disk0: Open Disk Utility (GUI), e. Feb 18, 2019 · I am trying to reformat my MAC using Disk Utility but the buttons are grayed out (see image below) SO I tried to use the terminal but not sure on the steps. Step 2. Aug 29, 2022 · Now we can erase the disk. Step 6. I tried some commands from google, they weren’t recognized. Macworld is your ultimate guide to Apple's product universe, explaining what's new, what's best and how to make the most out of the products you love. Aug 12, 2016 · Merge Mac Partition with Disk Utility Let’s access the two partitions that have to be deleted in the partition pie chart and then delete and merge them right from the utility window. You should probably quit the Disk Utility application before entering this command. g. Aug 9, 2024 · Learn how to erase a disk on macOS using Terminal with our easy-to-follow guide. Seeing “Disk Locked” when reinstalling macOS? Here’s how to unlock and erase your Mac’s drive safely using Disk Utility or Terminal, step by step. Open Disk Utility. The best course of action to make sure you don’t lose any photos or documents is to make a backup of your Mac’s data. It allows you to install different OS or Virtual Machine on your Mac. The Partitions tab was no longer greyed out, and I could take it from there (delete "unused space"/orphan partition, resize disk, add new partition. To access Disk Utility, navigate through the Recovery app and choose to either run Disk Utility or quit back to the main Recovery menu. 3 days ago · This post tells you how to delete partitions on a Mac with stepwise methods. Native Disk Utility is unable to eject disk to re-partition it. Nov 16, 2023 · An easy, step-by-step guide for formatting a drive on macOS, including an introduction to file systems and how to troubleshoot formatting issues. 13+, then you need to click "View" within Disk Utility and select "Show All Devices" so that the physical drive appears on the left pane of Disk Utility. Open Advanced features. This guide will explain how to use the Terminal application in order to delete a partition from your hard drive. Previously if i was going to erase an entire disk (delete all volumes, partitions, containers) etc. Step 4. I split it 600 gb for the mac and 400 gb for boot camp. the mac portion still only has access to 600 gigs while the rest of the hard drive is empty. Step 5. Step 7. Here's how to erase and remove a partition on your Mac. May 13, 2023 · Disk Utility ships with macOS and has been part of the operating system since its first release. Keep GUID Partition Map as the scheme. Dec 29, 2025 · Here, you can learn how to force erase disk on Mac Terminal with our step-by-step guide. May 14, 2019 · The easier, GUI way of accessing volumes is via Finder, but with the terminal you have more control using the shell. Make sure you have backup first Jul 26, 2015 · I need to delete a folder otherwise my mac won't boot. Select GUID Partition Map as the scheme. ' on Boot Camp for Macs running Monterey/Big Sur Aug 5, 2025 · Using diskutil Terminal commands is another way to format your drive and generate a completely fresh partition map. This is only to erase the hard drive on an Intel-based Mac. Learn some safe and effective methods for wiping data. Name your drive MyVolume. Nov 8, 2018 · Trying to completely erase / reformat the HD through Disk Utility. Dec 9, 2024 · This step-by-step guide shows you how to erase an external hard drive, USB drive or SD card by using Terminal commands. In the opening prompt, click the grey "Partition Intel-based Mac OS X uses a combination of GPT and MBR for partition tables. Nov 11, 2025 · Discover step-by-step instructions to force erase disk Mac terminal when Disk Utility fails. Select the top layer of your e xternal drive and click Erase. Open Disk Utility (Applications > Utilities). Make sure you back up your important data before erasing the partition, as erasing the partition will delete all the data on it. In the opening prompt, click the grey "Partition May 23, 2024 · Using Disk Utility or Terminal, you can safely delete partitions by following the provided precautions and procedures. These examples show you how to create one, two or three partitions: I used the first two commands to delete the partition, but since I was a bit wary of using mergePartitions, I went to Disk Utility after that. The next part of the command is the format of the drive, so we need to know how we’re going to use the drive. We also cover a safer alternative using PartitionAssistant to manage stubborn drives. Nov 3, 2021 · For example, if you try to erase or partition your boot disk in Disk Utility, you won’t be able to because macOS won’t unmount the disk. How can I do this in recovery mode or whatever it's called using Terminal commands? Jan 7, 2019 · For Windows power users, we all know that diskpart clean command is pretty handy. 4 days ago · Step 1. Aug 5, 2025 · Wenn Sie diesen Artikel hilfreich finden, teilen Sie ihn. Prepare Drives for Use: Formatting a drive is necessary before you can use it, and Disk Utility provides the tools to do so. Essentially, the erase process has failed on your Mac. How can I achieve this using Terminal? 1: EFI 209. If you are having trouble with the Disk Utility App for erasing or formatting a drive, you can try using the Command Line in Terminal to erase or format a drive. Use LVM and encryption is the recommended encryption option. Recently I have started to run out of space and found out that the hard drive was still partitioned. Apr 23, 2019 · How to erase disk from Terminal in MacBook pro My MacBook Pro froze. Follow the steps for your type of Mac. Erase and reinstall macOS Important: Do not follow the steps below if your computer is a Mac with Apple silicon or an Intel-based Mac with the Apple T2 Security Chip. diskutil is a command-line utility on macOS used for managing disk drives and volumes. Connect your WD My Passport to your Mac. How can I do this in recovery mode or whatever it's called using Terminal commands? Nov 26, 2021 · How to erase a partition on your mac showing the steps for Opening Finder on Mac (Image credit: iMore) Scroll down and open the Utilities folder. Step 3. Click "View" and select "Show all devices". Once disk0s4 becomes visible in the Disk Utility application, you can remove the partition and reclaim the space. Enter a name for your drive. via Spotlight Search. After a couple months I didn't need boot camp anymore and deleted the partition. Its capabilities include partitioning disks, formatting volumes, checking disk integrity, and managing RAID sets. ShredOS - Secure disk erasure/wipe - PartialVolume/sh Jan 16, 2026 · On the Disk setup screen, select Erase disk and install Ubuntu. On the left, click on your disk drive at the root of the navigation tree. Click Erase to begin 1 day ago · Users can format the Mac startup disk using the Erase feature and utilize First Aid to address disk issues. Choose Mac OS Extended (Journaled) as the format. Delete a partition on Mac without losing data. Jan 7, 2026 · The application asks for your password. If you are using macOS 10. 11+, now erase the physical drive as GUID partition and MacOS Extended (Journaled) if the drive is only to be used with macOS, otherwise use exFAT file system if you need to Deleting a partition through Mac OS Terminal is a simple process that can be completed in a few steps. When editing partitions with GParted, the GUID partition table will be updated, and the MSDOS partition table will be set to a single protective entry. I recommend that you don't exit the Apple Recovery app after you complete the formatting so you ca Jul 26, 2011 · I'm able to erase a partition using the Disk Utility, but I want to change the name without losing data. Shredos Disk Eraser 64 bit for all Intel 64 bit processors as well as processors from AMD and other vendors which make compatible 64 bit chips. Jul 16, 2024 · If you’re looking to get rid of all the data on a Mac hard drive or SSD, you need to wipe it fully. Apr 17, 2025 · How to delete a partition on Mac using Disk Utility Before we get started, it’s important to understand that deleting a partition will erase its stored data. How can I achieve this using Terminal? Feb 4, 2026 · macOS Recovery is your computer’s built-in recovery system, with utilities to reinstall macOS, repair or erase your startup disk, restore from a Time Machine backup, and more. In Disk Utility on your Mac, add, delete, erase or enlarge a partition on a storage device. This will list all of the disks and their associated partitions. May 29, 2024 · Learn how to use terminal tools to erase a disk on your Mac. Mar 13, 2023 · Mac OS Terminal offers an easy way to do this without damaging any data on the disk. There’s a bunch that you can do, but here’s the 5 formats you’ll most likely need. Jan 13, 2026 · Summary: In this article from iBoysoft, you'll learn how to use the diskutil command with various verbs to manage internal or external disks/partitions in Terminal. Tried erasing APFS volume / entire disk through terminal. Unfortunately, erasing or reformatting the drive doesn't fix it. TimeMachine will warn you that the drive has to be reformatted as Mac OS Extended (Journaled) and ask for your approval to proceed Jan 18, 2018 · So when I boot into recovery mode and access terminal from there, and then run “diskutil list” the results show that I have 21 disks. May 22, 2017 · This guide goes through how to safely remove partitions from a hard drive on a Mac using its built-in program, Disk Utility. Feb 4, 2022 · Fortunately, you can also erase a specific partition directly from the command line in Terminal, and then use Disk Utility to remove the partition completely. 9 GB disk1s2 imac:~ user$ /** * to delete a partition you can also use diskutil eraseVolume followed by partition type, partition name and the path **/ imac:~ user$ diskutil eraseVolume HFS+ eDrive /dev/disk0s4 /** * to merge partitions use diskutil mergePartitions the syntax is nearly the same as Apr 17, 2025 · How to delete a partition on Mac using Disk Utility Before we get started, it’s important to understand that deleting a partition will erase its stored data. Apr 28, 2025 · Learn how to securely erase a Mac's hard drive using Terminal commands. When the progress bar finishes, click Eject this disk (⏏). 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. Feb 24, 2015 · I would like to completely wipe my MBP's hard drive, remove any and all partitions so that I may start with a truly fresh HDD. It discusses the following verbs: diskutil list, diskutil apfs, diskutil erase, diskutil mount/unmount, diskutil repair, and diskutil eject. A progress bar appears while Disks is writing the image. Anyone know anything about this issue? FYI: Creating a GUID Partition Table with an APFS format. Gets to about 50% then halts progress. This helps prevent data loss and maintain system stability before proceeding to remove partition Mac. The versatility and power of diskutil make it a great tool for managing disks and partitions on Mac. I'm trying to delete all the partitions on my SSD drive and create new GUID (HFS+) partition table. use Disk Utility to format the drive APFS Open TimeMachine preferences and select the drive you just formatted. Usually, this would be very easy to do on a Linux machine, but I must do it on a Mac right now. Double-click to open Disk Utility. And you also can use disk management tool such as Disk Utility, DoYourData Super Eraser for Mac to erase or wipe disk on Mac. Nov 7, 2017 · The command sudo diskutil eraseVolume jhfs+ MyVolume disk0s4 should make the partition visible in the Disk Utility application. Sep 21, 2023 · This post introduces how to use diskutil commands in Mac Terminal to manage disks/partitions like view, create, unmount, format, resize, repair disk partitions. 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. Please help on the next step on how to Jan 7, 2019 · For Windows power users, we all know that diskpart clean command is pretty handy. app installer to the Applications folder. Sep 17, 2020 · Delete Your APFS Partition the Right Way If you use Disk Utility to erase an APFS volume and format it HFS+, you’ll find that the old APFS container sticks around. I would just run:diskutil secureerase 0 disk0 now with M1 i'm getting multiple issues either: when running diskutil erasedisk apfs macintosh disk0 i get errors saying failed to unmount. To remove all partitions from the disk and make the disk brand new again, in macOS we can use this command: andy-mac:~ andy$ diskutil list /dev/disk0 (internal, physical): #: TYPE NAME Jan 8, 2022 · In this guide, we will explain how you can delete disk partitions on Mac Partitioning the Mac drive means dividing the total available space into small parts known as containers. Whether you're preparing a drive for a fresh install or clearing data before selling your Mac, this… Jul 10, 2021 · Launch Disk Utility. First, open Terminal and enter the following command: “ diskutil list “. You can erase the drive to APFS, ExFAT, HFS+, FAT32 or even NTFS. Instead, follow the steps in Erase your Mac. Using Startup Disk Creator ¶ The Startup Disk Creator application is part of the extended Ubuntu Desktop installation. Click Erase. Jan 29, 2026 · This article talks about how to delete an APFS partition/volume/container from the Macintosh HD or an external hard drive. Detailed steps are introduced in this post, aiming to help you erase a disk successfully. How is it possible? Mar 3, 2022 · When you go for another partition for Mac, you can learn 3 ways to delete the previous partition on Mac completely and free up more storage space. This process will replace the old corrupted or damaged partition map with a new one. I tried Fist aid, erase, and restore from disk until, but didn’t work. Had this issue with a usb drive that I was trying to use for Time Machine. In this video, we'll show you the steps to securely wipe a disk or hard drive using Terminal commands. 7 MB disk1s1 2: Apple_HFS Backup 999. Locate your drive in the sidebar. You will learn how to format a disk on Mac in two ways. Wie erzwingt man das Löschen einer Festplatte mit dem Mac Terminal? Der Befehl Force Erase wird verwendet, wenn das übliche Löschen nicht erfolgreich durchgeführt werden kann oder wenn das Löschen erzwungen werden muss, indem Systemschutz und Fehlermeldungen umgangen werden. Jul 4, 2025 · This article will explain in detail what Mac terminal format disk is and what commands it can use to format a disk. Click View > Show All Devices. I will show how to access any volume on a mac using the terminal. Jan 1, 2017 · Partition format, from diskutil listFilesystems Partition name Partition size repeat For partition size, you can use decimal numbers with the suffixes B, K, M, G, T, P (bytes, kilobytes, megabytes, gigabytes, terabytes or petabytes), % of the disk size, or R for remainder. 6 days ago · How to Wipe My Mac Clean: The Ultimate Guide Wiping your Mac clean is essential when selling, donating, or experiencing significant performance issues; this comprehensive guide provides step-by-step instructions to securely erase your data and reinstall macOS, ensuring your privacy and your Mac’s optimal functionality. macOS Recovery serves as a built-in system for reinstalling macOS, erasing or repairing startup disks If you're having trouble erasing a disk with the Disk Utility app, want to have a backup method, or just want to learn more about the Terminal, here's a beginner's walkthrough on locating Jul 26, 2015 · Mac OS X has a pretty solid disk utility for scenarios where you might want to create, resize or delete or modify new or existing partitions. Step 8. Dec 8, 2025 · How to erase (format) the built-in startup disk of an Intel-based Mac. … Jan 13, 2026 · For instance, running the command diskutil list will list all disks on your Mac, including the hidden partitions like EFI, Preboot, or Recovery HD, with detailed information, which Disk Utility only partially displays. Click Erase at the top. Supports formatting large drives over 32GB as FAT32. We have my main macOS disk that has a EFI, Macintosh HD, Preboot, and VM partitions within disk0. It erases everything on your Mac - including your files, apps, user data, settings, and macOS itself. Jan 29, 2026 · Learn how to fix Disk Utility getting stuck on 'Waiting for partitions to activate' when erasing Mac's internal hard drive, an SD card/SSD/HDD, or a USB flash drive. In the upper right, click "Partition". Select a disk encryption method. Jul 26, 2015 · Mac OS X has a pretty solid disk utility for scenarios where you might want to create, resize or delete or modify new or existing partitions. You should back up your Mac before trying to erase or reformat it. So I heard the only way to turn on the MacBook again is to erase/unmount disk through Terminal. Ensure to wipe data permanently if necessary. Sep 19, 2021 · Use Terminal to securely erase a drive What if you want to do this from Terminal instead? In Terminal, a program named diskutil provides most of the features of macOS’s Disk Utility. If you’re only going to be using this drive on modern Macs or as a Mac boot drive, then you should type in APFS Apr 23, 2019 · How to erase disk from Terminal in MacBook pro My MacBook Pro froze.
shvsb zvv xtxy jifsowlb nruias gtzj nbdcz znwcr jwxq pgpds