blob: c1e069e46ecca16fa96c83aae769976e6a23f087 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
[[!meta title="Resetting a USB stick or SD card using Windows"]]
[[!inline pages="doc/first_steps/usb_reset.intro" raw="yes"]]
<div class="bug">
<strong>The following instructions do not work on Windows XP.</strong><br/>
The version of <span class="application">Diskpart</span> on Windows XP does not list removable disks.
</div>
Using <span class="application">Diskpart</span>
===============================================
<div class="caution">
<strong>You might overwrite any hard disk on the computer.</strong><br/>
If at some point you are not sure about the disk number, stop proceeding.
</div>
1. Make sure that the USB stick or SD card that you want to reset is unplugged.
1. Click on the <span class="button">Start</span> button, and choose <span
class="menuchoice">All Programs ▸ Accessories ▸ Command
Prompt</span>, to open the <span class="application">[[!wikipedia Command
Prompt]]</span>,
[[More help on how to start the <span class="application">Command
Prompt</span>|http://www.computerhope.com/issues/chdos.htm]]
2. Execute the <span class="command">diskpart</span> command, to start
<span class="application">Diskpart</span>.
3. Execute the <span class="command">list disk</span> command to obtain
information about each disk in the computer.
For example:
Diskpart> list disk
Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 80 GB 0 B
4. Plug the USB stick or SD card that you want to reset. Run the <span
class="command">list disk</span> command again.
A new disk, which corresponds to that device, appears in the list.
For example:
Diskpart> list disk
Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 80 GB 0 B
Disk 1 Online 4 GB 0 B
Make sure that its size corresponds to the size of the device that you want to
reset. Note down the disk number assigned by <span
class="application">Diskpart</span> to the device.
5. To select the device, execute the following command: <span
class="command">select disk=<span class="replaceable">number</span></span>.
Replace <span class="replaceable">number</span> by the disk number of the
device that you want to reset.
6. Execute the <span class="command">clean</span> command to delete the
partition table from the device.
7. Execute the <span class="command">convert mbr</span> command to
create a new partition table on the device.
8. Execute the <span class="command">create partition primary</span>
command to create a new primary partition on the device.
Troubleshooting
===============
See the [[Diskpart documentation from Microsoft Support|http://support.microsoft.com/kb/300415]].
|