{"id":515,"date":"2020-07-14T08:07:23","date_gmt":"2020-07-13T20:07:23","guid":{"rendered":"http:\/\/wp.gaborhargitai.hu\/?p=515"},"modified":"2020-07-14T08:11:50","modified_gmt":"2020-07-13T20:11:50","slug":"delete-bootcamp-and-other-multiple-partitions-from-external-disk-hard-drive-ssd-under-macos","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/delete-bootcamp-and-other-multiple-partitions-from-external-disk-hard-drive-ssd-under-macos\/","title":{"rendered":"Delete Bootcamp and other multiple partitions from external disk \/ hard drive \/ ssd under macOS"},"content":{"rendered":"\n
The built-in Disk Utility app is suprisingly negligent with external drives that have at least one non-HFS+\/APFS partitions on it. Multiple partition external drive partitioning requires some extra steps to be done. We are going to destroy the complete partition map so that the drive can be reformatted into one whole partition using Disk Utility – essentially, a clean slate. Open up Terminal and let’s get destructive!<\/p>\n\n\n\n
Disclaimer: you are exclusively responsible for taking these steps by following along.<\/em><\/p>\n\n\n\n If at any point you get permission errors, preface the commands with Find out which disk<\/strong> we need to do surgery on:<\/p>\n\n\n\n Note the name of the partition and the volume. Let’s take a look at the raw partition table:<\/p>\n\n\n\n You should take note of the index<\/strong> number next to the partition. If you only have one partition then it will most likely be “1”.<\/p>\n\n\n\n Let’s check the MBR side of things – also remember to take note of the index<\/strong> number here as well:<\/p>\n\n\n\n Unmount your partitions:<\/p>\n\n\n\n Delete the partition with gpt:<\/p>\n\n\n\n You might need to unmount. Next up, we will remove the MBR (Master Boot Record) from the drive, essentially destroying the BootCamp boot capability. We will be editing everything by hand.<\/p>\n\n\n\n You will be on the command line of fdisk. The commands in bold<\/strong> are the ones you need to type. First, we check out the partition table:<\/p>\n\n\n\n The idea is to replace everything with one whole partition of type EE that covers the whole disk.<\/p>\n\n\n\n Let’s check what we’ve done:<\/p>\n\n\n\n You should see one entry that is of type EE and all other entries are blank. Time to write the changes to the disk:<\/p>\n\n\n\n As a final step, we have to quit:<\/p>\n\n\n\n Unplug and re-plug your disk, Disk Util should complain about initialization – go ahead and format your disk, we’re done!<\/p>\n\n\n\n Reblogged from StackExchange<\/a>, original author is pmdj<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" The built-in Disk Utility app is suprisingly negligent with external drives that have at least one non-HFS+\/APFS partitions on it. Multiple partition external drive partitioning requires some extra steps to be done. We are going to destroy the complete partition map so that the drive can be reformatted into one whole partition using Disk Utility […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/515"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=515"}],"version-history":[{"count":8,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/515\/revisions"}],"predecessor-version":[{"id":525,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/515\/revisions\/525"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}sudo<\/code> (eg.:
sudo fdisk \/dev\/disk3<\/code>). I’ll be using disk3 <\/strong>as an example. <\/p>\n\n\n\n
diskutil list<\/code><\/pre>\n\n\n\n
gpt -r show disk3<\/code><\/pre>\n\n\n\n
fdisk \/dev\/disk3<\/code><\/pre>\n\n\n\n
diskutil unmount \"\/Volumes\/BOOTCAMP\"\ndiskutil unmount \"\/Volumes\/External Drive\"<\/code><\/pre>\n\n\n\n
gpt remove -i 1 disk3<\/code><\/pre>\n\n\n\n
fdisk -e \/dev\/disk3<\/code><\/pre>\n\n\n\n
fdisk: 1> p<\/strong><\/pre>\n\n\n\n
fdisk: 1> erase<\/strong><\/pre>\n\n\n\n
fdisk:*1> edit 1<\/strong><\/pre>\n\n\n\n
Partition id ('0' to disable) [0 - FF]: [0] (? for help) EE<\/strong><\/pre>\n\n\n\n
Do you wish to edit in CHS mode? [n] n<\/strong><\/pre>\n\n\n\n
Partition offset [0 - 505856]: [63] 1<\/strong><\/pre>\n\n\n\n
Partition size [1 - 505855]: [505855] <hit Enter><\/strong><\/pre>\n\n\n\n
fdisk: 1> p<\/strong><\/pre>\n\n\n\n
fdisk: 1> w<\/strong><\/pre>\n\n\n\n
fdisk: 1> q<\/strong><\/pre>\n\n\n\n