OS Manuals

/usr/bin/partx

Tell the kernel about disk partition changes from util-linux

From partx 2.42.4-r2 (os), captured 2026-11-05 by running partx --help (exit 0). permalink

Usage:
 partx [-a|-d|-s|-u] [--nr <n:m> | <partition>] <disk>

Tell the kernel about the presence and numbering of partitions.

Options:
 -a, --add            add specified partitions or all of them
 -d, --delete         delete specified partitions or all of them
 -u, --update         update specified partitions or all of them
 -s, --show           list partitions

 -b, --bytes          print SIZE in bytes rather than in human readable format
 -g, --noheadings     don't print headings for --show
 -n, --nr <n:m>       specify the range of partitions (e.g. --nr 2:4)
 -o, --output <list>  define which output columns to use
     --output-all     output all columns
 -P, --pairs          use key="value" output format
 -r, --raw            use raw output format
 -S, --sector-size <num>  overwrite sector size
 -t, --type <type>    specify the partition type
     --list-types     list supported partition types and exit
 -v, --verbose        verbose mode

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

Available output columns:
         NR  partition number
      START  start of the partition in sectors
        END  end of the partition in sectors
    SECTORS  number of sectors
       SIZE  human readable size
       NAME  partition name
       UUID  partition UUID
       TYPE  partition type (a string, a UUID, or hex)
      FLAGS  partition flags
     SCHEME  partition table type (dos, gpt, ...)

For more details see partx(8).
Options (18)
OptionDescriptionSource
-a, --addAdd the specified partitions, or read the disk and add all partitions.help + man
-d, --deleteDelete the specified partitions or all partitions.help + man
-u, --updateupdate specified partitions or all of themhelp + man
-s, --showList the partitions.help + man
-b, --bytesprint SIZE in bytes rather than in human readable formathelp + man
-g, --noheadingsDo not print a header line with --show or --raw.help + man
-n, --nr n:mspecify the range of partitions (e.g. --nr 2:4)help + man
-o, --output listDefine the output columns to use for --show, --pairs and --raw output.help + man
--output-allOutput all available columns.help + man
-P, --pairsList the partitions using the KEY="value" format.help + man
-r, --rawList the partitions using the raw output format.help + man
-S, --sector-size numOverwrite default sector size.help + man
-t, --type typeSpecify the partition table type.help + man
--list-typesList supported partition types and exit.help + man
-v, --verboseVerbose mode.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man
-l, --listList the partitions. (in the manual page but not in --help)man

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