7

I have a USB key that was previously set up as a bootable key (clonezilla)

Because of this there is an MBR on the key that will try (and fail) to boot off the key if it is left in a system. Deleting/formatting partitions won't change this.

On Linux I could use dd to overwrite the first few MB of the key and then repartition it, what is the equivalent way to do this on Windows? (destroying all data on the key is fine)

DrStalker
  • 6,676
  • 24
  • 76
  • 106

3 Answers3

14
diskpart
list disk
select disk X
clean

(X = The number of the disk)

Go to Disk Management and create a new partition on the disk, it should then work as normal again.

Anthonygamer
  • 141
  • 1
  • 3
  • Disk Management is found inside the Computer Management tool that ships with Windows -- it took me a few minutes to find it on Control Panel\Administrative Tools. – mMontu Feb 27 '14 at 22:59
  • 1
    This should be marked as answer, it does exactly what has been asked in the most "clean and beautiful" way – lucaferrario Mar 19 '15 at 10:20
  • -1 @mMontu I have used the Disk Manager of Windows, removed all partitions and recreated a unique one; my TV didn't see the USB device, it worked only after `diskpart` – Fabrice T Apr 11 '19 at 07:54
  • @FabriceLylianTayou 6 years, lol. That's arrive late at a party – mMontu Apr 11 '19 at 10:33
5
 diskpart
 list disk
 select disk X
 list partition
 select partition Y
 inactive
  • X = the number (not letter) of your USB disk, as indicated by the list disk command.
  • Y = the number (not letter) of the bootble partition, as indicated by the list partition command
Skyhawk
  • 14,149
  • 3
  • 52
  • 95
0

For a GUI version Download HP USB Disk Storage Format Tool 2.2.3 http://www.techspot.com/downloads/6582-hp-usb-disk-storage-format-tool.html Run the exe as Administrator

  1. Select the USB device.
  2. Select the desired file system.
  3. Format.
arundev.me
  • 21
  • 1