Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Usage:
- sfdisk [options] <device> [...]
- Options:
- -s, --show-size list size of a partition
- -c, --id change or print partition Id
- --change-id change Id
- --print-id print Id
- -l, --list list partitions of each device
- -d, --dump idem, but in a format suitable for later input
- -i, --increment number cylinders etc. from 1 instead of from 0
- -u, --unit <letter> units to be used; <letter> can be one of
- S (sectors), C (cylinders), B (blocks), or M (MB)
- -1, --one-only reserved option that does nothing currently
- -T, --list-types list the known partition types
- -D, --DOS for DOS-compatibility: waste a little space
- -E, --DOS-extended DOS extended partition compatibility
- -R, --re-read make the kernel reread the partition table
- -N <number> change only the partition with this <number>
- -n do not actually write to disk
- -O <file> save the sectors that will be overwritten to <file>
- -I <file> restore sectors from <file>
- -V, --verify check that the listed partitions are reasonable
- -v, --version display version information and exit
- -h, --help display this help text and exit
- Dangerous options:
- -f, --force disable all consistency checking
- --no-reread do not check whether the partition is in use
- -q, --quiet suppress warning messages
- -L, --Linux do not complain about things irrelevant for Linux
- -g, --show-geometry print the kernel's idea of the geometry
- -G, --show-pt-geometry print geometry guessed from the partition table
- -A, --activate[=<device>] activate bootable flag
- -U, --unhide[=<dev>] set partition unhidden
- -x, --show-extended also list extended partitions in the output,
- or expect descriptors for them in the input
- --leave-last do not allocate the last cylinder
- --IBM same as --leave-last
- --in-order partitions are in order
- --not-in-order partitions are not in order
- --inside-outer all logicals inside outermost extended
- --not-inside-outer not all logicals inside outermost extended
- --nested every partition is disjoint from all others
- --chained like nested, but extended partitions may lie outside
- --onesector partitions are mutually disjoint
- Override the detected geometry using:
- -C, --cylinders <number> set the number of cylinders to use
- -H, --heads <number> set the number of heads to use
- -S, --sectors <number> set the number of sectors to use
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement