{
  "slug": "nvme-format-nvm",
  "term": "NVMe Format NVM",
  "aliases": [
    "Format NVM"
  ],
  "definition": "NVMe Format NVM is an administrative command that selects a supported media format and can request secure erasure.",
  "note": "For the NVM Command Set, formatting selects logical-block format, metadata placement and protection-information settings. This is not filesystem creation. After a successful format, the controller shall not return user data previously contained in an affected namespace. [nvme-2-0e]\n\nSecure Erase Settings (SES) distinguish no secure erase (0), User Data Erase (1) and Cryptographic Erase (2), with 3 to 7 reserved. User Data Erase may use cryptographic erase when all affected data is encrypted. SES=0 does not make formatting nondestructive. [nvme-format-v211]\n\nScope depends on SES, Format NVM Attributes (FNA) and NSID. Without secure erase FNA bit 0 decides the scope, and with SES 1 or 2 FNA bit 1 does. A selected namespace does not always confine the operation: when the relevant bit is 1, all namespaces in the NVM subsystem are formatted. NSID FFFFFFFFh otherwise selects all namespaces attached to the controller. [nvme-2-0e]\n\nThe reference command-line tool defaults to LBA format 0 and a 600,000 ms command timeout, then issues BLKRRPART so namespaces are rescanned. With an older driver, a changed block size may only appear after a manual rescan. [nvme-format-v211]\n\nNVM Command Set 1.0e requires PIL=0, placing enabled PI at the end of metadata. CLI options do not establish support for first-byte placement in this revision. [nvme-nvm-1-0e] [nvme-format-v211]",
  "status": "shipping",
  "advantages": [
    {
      "text": "Format NVM selects supported protection-information settings alongside the LBA format.",
      "citationIds": [
        "nvme-nvm-1-0e"
      ]
    },
    {
      "text": "A Cryptographic Erase removes access by deleting the encryption key instead of rewriting all user data.",
      "citationIds": [
        "nvme-2-0e"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Device names alone do not establish controller-to-namespace relationships.",
      "citationIds": [
        "nvme-format-v211"
      ]
    },
    {
      "text": "While a format runs, I/O commands to an affected namespace may be aborted with Format in Progress status.",
      "citationIds": [
        "nvme-2-0e"
      ]
    }
  ],
  "related": [
    "secure-erase",
    "sanitize-nvme",
    "nvme-dlfeat",
    "nvme-extended-lba"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "nvme-2-0e",
      "title": "NVM Express Base Specification 2.0e, section 5.14 and Identify Controller FNA field",
      "url": "https://nvmexpress.org/wp-content/uploads/NVM-Express-Base-Specification-2.0e-2024.07.29-Ratified.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "nvme-nvm-1-0e",
      "title": "NVM Express NVM Command Set Specification 1.0e, section 4.1.2, Figure 78 (p. 46); copyright 2008 to 2024 NVM Express, Inc. ALL RIGHTS RESERVED.",
      "url": "https://nvmexpress.org/wp-content/uploads/NVM-Express-NVM-Command-Set-Specification-1.0e-2024.07.29-Ratified.pdf",
      "accessed": "2026-10-28"
    },
    {
      "id": "nvme-format-v211",
      "title": "linux-nvme/nvme-cli v2.11: Format NVM documentation",
      "url": "https://github.com/linux-nvme/nvme-cli/blob/v2.11/Documentation/nvme-format.txt",
      "accessed": "2026-10-23"
    }
  ],
  "updated": "2026-10-28",
  "provenance": [
    "Specification review, not a hardware erasure test. The cited revisions are a reference baseline, not a latest-version claim.",
    "nvme-2-0e is NVM Express Base Specification 2.0e, read 2026-10-23 at section 5.14 and Figure 193 for scope rules and the security-specification abort case.",
    "nvme-format-v211 is the nvme-cli v2.11 nvme-format documentation, re-read for SES and PI values, the 600,000 ms default timeout and the BLKRRPART rescan.",
    "A companion analysis covers the full scope matrix. Device capabilities should be checked before any destructive action.",
    "The tcg-opal entry links here because section 5.14 lets a security specification such as TCG storage interface rules abort a Format NVM command."
  ]
}
