select partition 1 gives "No partition selected"

Windows tend to act weird around USB pendrives. It tends to helpfully recognize only a single partition where as all(?) other OS's seems to recognize it as mass storage with the ability for multiple partitions.

Thus I would suggest either:

  • using an other OS to delete the partition
  • or using diskparts clean command to completely wipe the disk partition table.
    Make very sure you selected the right disk before using this command.

I had the same problem which I solved by re-formatting with diskpart:

list disk
select disk X*
clean
create partition primary
format fs=fat32 unit=64k
list partition
active
exit

* Where X is your USB Disk/SD Card