Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

keysofanxiety

macrumors G3
Original poster
Nov 23, 2011
9,539
25,303
Hi all,

I need to format a volume on the internal HDD as unallocated -- so completely uninitialised. It's a partition rather than an entire disk. You could easily do it in Yosemite, but every time I try to delete the partition in El Cap it just wants to resize it.

Is there a Terminal command that can do this? I've tried most of the diskutil commands but haven't had any luck.

Alternatively, if there's any way I can format it as GPT, that would be just as good.

I'd be ever indebted to anybody who could help me. :) Thank you for any suggestions or assistance!
[doublepost=1456412537][/doublepost]S'ok, I figured it out. I was using the diskutil eraseVolume, but was doing /dev/disk0/disk0s4 and I should've just done /dev/disk0s4 instead.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.