I really need help. Even if you are not sure of the solution, please suggest something. I really need it.
I formatted a pendrive in macOS using disk utility (GUID, macOS extended journaled). Then I copied macOS setup for hackintosh. Then I used clover(software to make macOS pendrive bootable) to mount the efi partition. It created a 200MB efi partition. Later I needed to format the drive to use it. On windows, disk management doesn't show the option to delete the efi partition. It shows option to delete the larger partition but even after clicking delete nothing happens. I read many articles on internet. I used diskpart as administrator and selected my disk and used clean command. It showed disk cleaned successfully but it lied. The disk is the same. With efi partition and the data on the main partition also there. I first tried macOS disk utility to erase the disk but it says failed to erase the disk. Under details, it says partition not unmounted. I booted into my linux, used terminal df to list disks. Then unmounted the pendrive using umount.
Then formatted using mkfs. All commands are sudo. Terminal showed cleaning disk, creating partition table etc. After it was over, I see again that the disk is unaffected. It's new pendrive. Worked fine. No problems with pendrive whatsoever.
I also tried third party softwares but they all do what diskpart in Windows and terminal in Linux did which is => showed formatting completed but actually nothing happened to the pendrive. Please help me format it.