Do you know why receive that message in advance?
When the a running application is a lock in a file stored in USB Pen it gives this message in advance.
Probably a virus.But may be not. Such as Kingston lock program, etc.
That's not true. Having a locked file isn't a big deal when formatting a USB pen or any other USB driven disk. The main problem in most of the cases is that the USB pen drives get corrupted due to incorrect handling such as removing without power off the USB port (This is not relevant to USB3 drives), exposed to excessive heat, etc... In this case either the partition sector or the boot sector (when a partition sector is not available) gets damaged which the drive data such as total sectors couldn't be identified. Standard format applications such as windows format fails here. Or else sometimes reports a wrong capacity after formatting. Recently one of my 16GB pen drive was reporting 1GB after formatting with Windows.
And I don't know what's the mechanism around that HP software. Could you explain?
These format programs access the USB pen's flash chip using ATA commands and get information on total sectors, bytes per sector, etc... from the controller chip and reestablish the partition/boot sector with correct records. In this way the USB pen drives start working as before but you'll loose data as Nandika stated clearly.
PS: Both Sandun and Nandika exceeded 100 posts and I'm going to join you to Promo Team after getting permission from Neo. Let me have a quick chat with him

. Hope you will increase activity of ROBOT.LK by introducing this to your friends, exchange knowledge, etc... That's the responsibility of a Promo Team Member of ROBOT.LK.