Site TIPS PAGE🔎 SEARCH  Ξ INDEX  MAIN MENU  UP ONE LEVEL
 OJB's Web Site. Version 2.1. Mac Tip.You are here: tip tips mac owen2 
Tip

Up to OJB's Mac Tips List

Erase a Disk from Terminal

To erase a Disk from the Command Line...

Get disk identifier, use: diskutil info "DISKNAME" | grep "Device Node"
Then erase disk using: diskutil eraseDisk FILESYSTEM DISKNAME DISKIDENTIFIER

Where FILESYSTEM is JHFS+ (Journalled), HFS+, FAT32
DISKNAME is the name to be given to the disk
DISKIDENTIFIER is the ID returned above (eg /dev/disk6s2)

Erase volume example: diskutil eraseVolume JHFS+ Erased /dev/disk6s2
Erase disk example: diskutil eraseDisk JHFS+ Erased disk6



I usually write a blog post about once a week. The latest post can be viewed here: Deranged Rants: Many of them are totally feral, unhinged, and totally irrational. (posted 2024-11-13 at 17:55:14). I do podcasts too!. You can listen to my latest podcast, here: OJB's Podcast 2024-08-22 Stirring Up Trouble: Let's just get every view out there and fairly debate them..
 Site ©2024 by OJBOJB's BlogMicrosoft Free ZoneMade & Served on Mac 
Site Features: Blog RSS Feeds Podcasts Feedback Log07 Jun 2024. Hits: 159,702,309
Description: Mac TipKeywords: Macintosh,Computers,Fixing Problems,TipsLoad Timer: 11ms