mac.mdwn 4.26 KB
Newer Older
1
[[!meta title="Resetting a USB stick using macOS"]]
muri's avatar
muri committed
2

3
[[!inline pages="doc/first_steps/reset.intro" raw="yes" sort="age"]]
muri's avatar
muri committed
4 5 6 7 8 9 10 11

<div class="caution">

<strong>You might overwrite any hard disk on the computer.</strong> If at some
point you are not sure about which device to choose, stop proceeding.

</div>

Tails developers's avatar
Tails developers committed
12
1.  Make sure that the USB stick that you want to reset is unplugged.
muri's avatar
muri committed
13

sajolida's avatar
sajolida committed
14
2.  Start <span class="application">Disk Utility</span>.
15

muri's avatar
muri committed
16 17 18
    A list of all the storage devices on the computer appears in the left pane
    of the window.

Tails developers's avatar
Tails developers committed
19
3.  Plug the USB stick that you want to reset.
muri's avatar
muri committed
20 21

    A new device appears in the list of storage devices. This new device
Tails developers's avatar
Tails developers committed
22
    corresponds to the USB stick that you plugged in. Click on it.
muri's avatar
muri committed
23 24

4.  In the list of storage devices, verify that the device corresponds
25
    to the USB stick that you want to reset, its brand, its size, etc.
muri's avatar
muri committed
26

27
5.  To reset the USB stick:
28 29

    a. If there is an <span class="guilabel">Erase</span> tab
sajolida's avatar
sajolida committed
30
    in the right pane, click on it and then click on the <span class="button">
31 32
    Erase</span> button on the bottom right

sajolida's avatar
sajolida committed
33
    b. If there is an <span class="button">
sajolida's avatar
sajolida committed
34
    Erase</span> button on the top middle, click on it.
muri's avatar
muri committed
35

sajolida's avatar
sajolida committed
36
6.  In the confirmation dialog, click on the <span class="button">Erase</span>
sajolida's avatar
sajolida committed
37
    button to confirm.
38

39 40
<div class="note">

41 42
<p>If the erase process fails, try [[!toggle id="format"
text="formatting the USB stick using the command line"]] first.</p>
43 44 45

</div>

46 47
[[!toggleable id="format" text="""
<span class="hide">[[!toggle id="format" text=""]]</span>
48

49 50 51 52 53
Troubleshooting
---------------

Format using the command line
-----------------------------
54

55 56
<!-- Note for translators: This section is very similar to /install/mac/usb. -->

sajolida's avatar
sajolida committed
57 58
1. Unplug the USB stick from the computer.

59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
1. Open <span class="application">Terminal</span> from
   <span class="menuchoice">
     <span class="guimenu">Applications</span>&nbsp;▸
     <span class="guisubmenu">Utilities</span>&nbsp;▸
     <span class="guimenuitem">Terminal.app</span></span>.

1. Execute the following command:

       diskutil list

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

       $ diskutil list
       /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

1. Plug the USB stick in the computer.

1. Execute again the same command:

       diskutil list

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

       $ diskutil list
       /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
       /dev/disk1
         #:                     TYPE NAME         SIZE      IDENTIFIER
         0:   FDisk_partition_scheme             *4.0 GB    disk1
         1:                Apple_HFS Untitled 1   4.0 GB    disk1s1

1. Take note of the *device name* of your USB stick.
   In this example, the USB stick is 4.0 GB and its device name is <span class="code">/dev/disk1</span>.
   Yours might be different.

   <div class="caution">
   <p>If you are unsure about the device name, you should stop proceeding or
   <strong>you risk overwriting any hard disk on the system</strong>.</p>
   </div>

1. Execute the following command to safely remove the USB stick. Replace <span class="code">[device]</span>
sajolida's avatar
sajolida committed
112
   with the device name found in step 6.
113 114

       diskutil unmountDisk [device]
115

116
2. Execute the following command to format the USB stick. Replace <span class="code">[device]</span>
sajolida's avatar
sajolida committed
117
   with the device name found in step 6.
118

119
       sudo fdisk -iy [device]
120 121 122 123 124 125

1. You can try to reset the USB stick again using
   <span class="application">Disk Utility</span> from the beginning of this
   page.

"""]]