Since this question, I'm using:
dd if=/dev/zero of=/dev/sdb bs=1M # wipe the disk
fdisk /dev/sdb <<< $'n\np\n\n\n\nt\nb\np\nw\n' # create a partition
mkfs.fat /dev/sdb1 # FAT format the partition
to wipe a USB flash drive and restore it to a state, so that it can be used on Linux, Windows, TV recorders, etc.
But usually, once rebooting on Windows, it asks me to format the disk once again (as if it wouldn't have been re-initialized correctly).
Is it correct or would you generally make a FAT directly on /dev/sdb
:
mkfs.fat /dev/sdb
What is the standard for USB flash drives, in order to be accepted by all main OS?