Technical professionals. Trusted advisors. Certified expertise.

HCS Blog

Problem-solving by Apple Certified Professionals

Using diskutil to partition a disk

I’m not a fan of the new Disk Utility in El Capitan.  I had a drive with 3 partitions and I needed to make it a single partition drive. Disk Utility would not allow me to delete one of the partitions no matter what I tried.

So I used the following Terminal command:



diskutil partitionDisk /dev/disk2 GPT JHFS+ New 0b



To break it down:

1.  diskutil - is a command line tool used for formatting disks.

2.  patitionDisk -  is an option that can be used in diskutil.

3.  /dev/disk2 -  is the location of the disk that you want to format.  You can use the diskutil “list” option  to find this information.

4.  GPT -  is the GUID Partition Table.

5.  JHFS+ - is the default filesystem type that OS X uses.

6.  New - This is the name of the partition.  You can name it whatever you like.

7.  0b - This tells the command to use all available free disk space.

×
Stay Informed

When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.

How to Upgrade Universal Type Server 4 to Universa...
OS X 10.11 El Capitan "Repair Disk Permissions"

Locations


New York

Connecticut
Florida
Louisiana
Chicago

Corporate Headquarters
New York

80 Orville Drive Suite 100
Bohemia, NY 11716
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Connecticut

65 High Ridge Road #510
Stamford, CT 06905
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Florida

3321 SW 194th Terrace
Miramar, FL 33029
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Louisiana

218 Barksdale Drive
Broussard LA 70518
This email address is being protected from spambots. You need JavaScript enabled to view it.

Chicago

4 Knollwood Place
Joliet, IL 60433
This email address is being protected from spambots. You need JavaScript enabled to view it.

London

10 Grosvenor Court
Rayners Road
London SW15 2AX UK

Stay Connected

© Copyright 2023, HCS Technology Group. All Rights Reserved.