Disk formatting is the process of preparing a data storage device such as a hard disk drive, solid-state drive, floppy disk or USB flash drive for initial use. Partitioning is the common term for the second part of the process, making the data storage device visible to an operating system. This function also helps to clear virus that contained in your computer.