Thursday, January 11, 2018

[MAC] - Format USB Stick / sdcard from terminal

Connect your USB Stick or SDCard on your mac.

Open terminal and write:
diskutil list
With this command you have a list of all disks connected on your computer. Normally the external disk (USB Stick, SDCard, External drive, ...) is up to 2 (ex. disk2, disk3, disk4, ...)

DON'T ERASE disk0 or disk1 because it's OS disk.

Erase the selected disk with this command
diskutil eraseDisk JHFS+ NAME-OF-DRIVE disk2
On last command replace NAME-OF-DRIVE to your new drive name and disk2 to your disk ID listed on first command.

No comments :

Post a Comment