Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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)

share|improve this question
    
Actually, killing the first 4 bytes should be enough. –  Ignacio Vazquez-Abrams Aug 21 '12 at 5:23

2 Answers 2

up vote 1 down vote accepted
 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
share|improve this answer
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.

share|improve this answer
    
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 at 22:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.