Hi,

Matthias Braun wrote on 2/23/21 1:23 PM:
Hi and thanks a lot for ntfs-3g!

Since Windows Vista, formatting on Windows overwrites all data on the volume 
with zeros when doing a full format (as opposed to a quick format): 
https://docs.microsoft.com/en-US/troubleshoot/windows-server/backup-and-storage/format-command-not-write-zeros-to-disk

What's the behavior of mkfs.ntfs in this regard on HDDs? Does it overwrite data 
outside the master file table?

By default mkfs.ntfs (aka mkntfs) initially zeroes all the sectors
before creating the file system tables. Doing so, bad sectors are
detected and recorded so that they are not to be used subsequently.

This can be avoided by setting the option --fast or --quick
(see man mkntfs).


When formatting an SSD with mkfs.ntfs, does it send an ATA TRIM command to the 
SSD to mark all the data as eligible for the SSD's garbage collector?

Not currently, but you can use fstrim(8) afterwards for trimming the
unused sectors of a SSD.

Jean-Pierre


Kind regards,
Matthias Braun





_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to