How can I format a partition into a filesystem quickly?

24,039

If you would like to format a partition as NTFS, please use mkfs.ntfs or mkntfs. From man mkfs:

This  mkfs  frontend  is  deprecated  in  favour of filesystem specific
mkfs.<type> utils.

For NTFS, you can add the -f or -Q flag to perform a quick format. From man mkntfs:

-f, --fast, -Q, --quick
       Perform  quick  (fast) format. This will skip both zeroing of the volume and bad sector checking.

Therefore, your command should be:

$ sudo mkfs.ntfs -f /dev/sdb1
Share:
24,039

Related videos on Youtube

Tim
Author by

Tim

Elitists are oppressive, anti-intellectual, ultra-conservative, and cancerous to the society, environment, and humanity. Please help make Stack Exchange a better place. Expose elite supremacy, elitist brutality, and moderation injustice to https://stackoverflow.com/contact (complicit community managers), in comments, to meta, outside Stack Exchange, and by legal actions. Push back and don't let them normalize their behaviors. Changes always happen from the bottom up. Thank you very much! Just a curious self learner. Almost always upvote replies. Thanks for enlightenment! Meanwhile, Corruption and abuses have been rampantly coming from elitists. Supportive comments have been removed and attacks are kept to control the direction of discourse. Outright vicious comments have been removed only to conceal atrocities. Systematic discrimination has been made into policies. Countless users have been harassed, persecuted, and suffocated. Q&amp;A sites are for everyone to learn and grow, not for elitists to indulge abusive oppression, and cover up for each other. https://softwareengineering.stackexchange.com/posts/419086/revisions https://math.meta.stackexchange.com/q/32539/ (https://i.stack.imgur.com/4knYh.png) and https://math.meta.stackexchange.com/q/32548/ (https://i.stack.imgur.com/9gaZ2.png) https://meta.stackexchange.com/posts/353417/timeline (The moderators defended continuous harassment comments showing no reading and understanding of my post) https://cs.stackexchange.com/posts/125651/timeline (a PLT academic had trouble with the books I am reading and disparaged my self learning posts, and a moderator with long abusive history added more insults.) https://stackoverflow.com/posts/61679659/revisions (homework libels) Much more that have happened.

Updated on September 18, 2022

Comments

  • Tim
    Tim almost 2 years

    In gparted, repartitioning a disk into one single partition and formatting the partition to a filesystem is very fast. It seems not write zeros to the partition.

    How can I achieve the same when using commands? Here is what I got:

    $ sudo mkfs -t ntfs /dev/sdb1
    Cluster size has been automatically set to 4096 bytes.
    Initializing device with zeroes:  14% 16%
    
  • Tim
    Tim over 5 years
    Thanks. Why "This mkfs frontend is deprecated in favour of filesystem specific mkfs.<type> utils."?
  • mxmehl
    mxmehl over 5 years
    @Tim glad it worked. Would you please mark my answer as accepted if it lead you to a solution? I can only speculate why it has been deprecated. Probably because it's a good approach to have specialised tools for such complicated operations.