How can I correct a CF disk rendered un-bootable by Windows diskpart

0

I used windows diskpart to clean and format a 64mb compact flash card I use to backup work on industrial machines. Prior to this diskpart format, I was able to boot to this compact flash card by placing 2 files on the drive and powering on the machine (windows embedded). Now, I can put the same files on the drive, but the disk will no longer boot. What could diskpart have done to this disk to make it unbootable? The diskpart commands I ran were:

  • select disk x
  • select volume x
  • clean all
  • create partition primary
  • format fs=fat label=”mydisk”

Flotsam N. Jetsam

Posted 2016-02-09T19:59:41.373

Reputation: 1 291

You sure there were no other hidden boot files? Have you tried "fat32" or "ntfs" instead of "fat"? AFAIK the FAT32 and NTFS created by Windows has the necessary boot code for bootmgr. Last but not least, you didn't seem to have made the partition "active". – Tom Yan – 2016-02-10T18:16:24.490

I am certain there were no other files. I've only done fat because known good cards are fat too. I am suspecting when cleaned, the diskpart app creates an mbr or some other low level boot sector item in some place other than where the disk previously had it--where my device is not looking causing the fail. But I do not know how to view that level. – Flotsam N. Jetsam – 2016-02-10T22:26:38.970

AFAIK when you recreate a partition, diskpart will write the necessary boot code to MBR as well. Basically the code look for the active partition and execute the boot code on its filesystem. – Tom Yan – 2016-02-10T23:01:48.407

No answers