OS Manuals

/usr/bin/blkdiscard

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running blkdiscard --help (exit 0). permalink

Usage:
 blkdiscard [options] <device>

Discard the content of sectors on a device.

Options:
 -f, --force         disable all checking
 -l, --length <num>  length of bytes to discard from the offset
 -o, --offset <num>  offset in bytes to discard from
 -p, --step <num>    size of the discard iterations within the offset
 -q, --quiet         suppress warning messages
 -s, --secure        perform secure discard
 -v, --verbose       print aligned length and offset
 -z, --zeroout       zero-fill rather than discard

 -h, --help          display this help
 -V, --version       display version

Arguments:
 Values for <num> may be followed by a suffix: KiB, MiB,
 GiB, TiB, PiB, EiB, ZiB, or YiB (where the "iB" is optional).

For more details see blkdiscard(8).
Options (10)
OptionDescriptionSource
-f, --forceDisable all checking.help + man
-l, --length numThe number of bytes to discard (counting from the starting point).help + man
-o, --offset numByte offset into the device from which to start discarding.help + man
-p, --step numThe number of bytes to discard within one iteration.help + man
-q, --quietSuppress warning messages.help + man
-s, --securePerform a secure discard.help + man
-v, --verboseDisplay the aligned values of offset and length.help + man
-z, --zerooutZero-fill rather than discard.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
Exit status (3) from the manual page
0success
1failure;
2failure;

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.