en	[[!meta title="Resetting a USB stick using macOS"]]

en	[[!inline pages="doc/reset.intro" raw="yes" sort="age"]]
tr	[[!inline pages="doc/reset.intro.tr" raw="yes" sort="age"]]

en	<div class="caution">

en	You might overwrite any hard disk on the computer.

en	If at some point you are not sure about which device to choose, stop proceeding.

en	</div>

en	Make sure that the USB stick that you want to reset is unplugged.

en	Start *Disk Utility*.

en	A list of all the storage devices on the computer appears in the left pane of the window.

en	Plug in the USB stick that you want to reset.

en	A new device appears in the list of storage devices. This new device corresponds to the USB stick that you plugged in. Click on it.

en	In the list of storage devices, verify that the device corresponds to the USB stick that you want to reset, its brand, its size, etc.

en	To reset the USB stick:

en	a. If there is an **Erase** tab in the right pane, click on it and then click on the **Erase** button on the bottom right

en	b. If there is an **Erase** button on the top middle, click on it.

en	In the confirmation dialog, click on the **Erase** button to confirm.

en	In the **Erase** dialog, if you want the USB stick to also work on Windows and Linux, specify:

en	**Format**: **MS-DOS (FAT)**

en	**Scheme**: **Master Boot Record**

en	Click **Erase**.

en	<div class="note">

en	If the erase process fails, try [[!toggle id="format" text="formatting the USB stick using the command line"]] first.

en	[[!toggleable id="format" text="""

en	[[!toggle id="format" text=""]]

en	Resetting a USB stick using the command line

en	Unplug the USB stick from the computer.

en	Open the **Terminal** utility from **Applications&nbsp;▸ Utilities**.

en	Execute the following command.

en	diskutil list

en	It returns a list of the storage devices on the system. For example:

en	/dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *500.1 GB disk0 1: EFI 209.7 MB disk0s1 2: Apple_HFS MacDrive 250.0 GB disk0s2 3: EFI 134.1 GB disk0s3 4: Microsoft Basic Data BOOTCAMP 115.5 GB disk0s4

en	Execute again the same command.

en	Your USB stick appears as a new device in the list. Check that its size corresponds to the size of your USB stick.

en	/dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *8.0 GB disk1 1: Apple_HFS Untitled 1 8.0 GB disk1s1

en	Take note of the device name of your USB stick.

en	In this example, the USB stick is 8.0 GB and its device name is /dev/disk1. Yours might be different.

en	If you are unsure about the device name, you should stop proceeding or you risk overwriting any hard disk on the system.

en	Execute the following command to safely eject the USB stick. Replace device with the device name found in step 6.

en	diskutil unmountDisk device

en	Execute the following command to format the USB stick. Replace device with the device name found in step 6.

en	sudo fdisk -iy device

en	You can try to reset the USB stick again using *Disk Utility* from the beginning of this page.