NVME-WDC-DRIVE-RE(1)

πŸ’… NVME-WDC-DRIVE-RE(1) β€” the nvme-wdc-drive-resize page, but make it make sense

okay so real talk, this is page NVME-WDC-DRIVE-RE(1) from the NVMe Manual and it's literally about one thing: yeeting a WDC Resize Vendor Unique Command at a drive. bestie, let's get into it πŸŽ€


✨ NAME ✨

nvme-wdc-drive-resize β€” sends the NVMe WDC Resize Vendor Unique Command, and it returns the result. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

nvme [<global-options>] wdc drive-resize <device> [--size=<sz> | -s <sz>]

🌸 DESCRIPTION 🌸

okay so for the NVMe device you hand it, it sends a Vendor Unique WDC Resize command. iconic, no notes. πŸ‘‘

the <device> parameter is mandatory β€” like, non-negotiable, you gotta give it something β€” and it can be either:

  • the NVMe character device (ex: /dev/nvme0), or
  • a namespace block device (ex: /dev/nvme0n1)
⚠️ heads up bestie: this will only work on WDC devices that actually support this feature. Results for any other device are undefined β€” so like, don't be out here testing it on your random SSD and then acting surprised, fr fr. πŸ’€

on success it returns 0, and an error code otherwise. simple as. ✨


πŸ’– OPTIONS πŸ’–

  • -s <sz>, --size=<sz> β€” the new size (in GB) you want to resize the drive to. that's it, that's the option. 🫢

πŸ”₯ GLOBAL OPTIONS πŸ”₯

these are defined at the top-level nvme command and yeah, they're available to this subcommand too. iykyk:

  • --dry-run β€” prints the command that would be executed, but does not actually execute it. window shopping, basically. πŸ™ˆ
  • --no-ioctl-probing β€” disables probing for 64-bit IOCTL support.
  • --no-retries β€” disables the retry logic on transient errors. no second chances, periodt.
  • -o <fmt>, --output-format=<fmt> β€” sets the reporting format to normal, tabular, json, or binary. only one output format at a time, bestie, pick a lane. πŸ’…
  • --output-format-version=<version> β€” selects the output format version. version 1 uses the original field naming, while version 2 (the default) gives you more consistent and script-friendly field names. other versions are rejected. 🚫
  • --quiet β€” suppresses informational messages. errors are still reported, and --quiet cancels any --verbose for the library log level. 🀫
  • --set-options=<key=value>[,<key=value>...] β€” sets libnvme library options for this invocation. supported keys are force-4k, mi-probe-enabled, test-base-dir and test-sysfs-dir. 🧚
  • --timeout=<ms> β€” sets the timeout for the command in milliseconds. infinite or -1 waits without a time limit (0xffffffff). the patience of a saint, honestly. ⭐
  • -v, --verbose β€” increases the level of detail in the output. may be specified multiple times to further increase verbosity. louder and louder, love that journey for you. 🌈

alsooo, these options can be set as machine-wide defaults in nvme-cli.conf(5), and a command-line flag always overrides the file. rules are rules. πŸŽ€


πŸ“ EXAMPLES πŸ“

  • has the program issue the WDC Resize Vendor Unique Command:
# nvme wdc drive-resize /dev/nvme0n1 --size=100

look at her go πŸ’œ


πŸ‘‘ NVME πŸ‘‘

part of the nvme-user suite. main character energy, honestly. ✨


🧚 and that's the whole page! brought to you by the NVMe manual, dated 10/30/2026, page NVME-WDC-DRIVE-RE(1) β€” go resize responsibly, bestie πŸ’–πŸ¦‹
πŸ“¦ where this page comes from