summaryrefslogtreecommitdiffstats
path: root/disk-utils/sfdisk.8
Commit message (Collapse)AuthorAgeFilesLines
* libfdisk: (script) support shortcuts in the type= fieldKarel Zak2019-08-081-1/+2
| | | | | | | | | | | | | | | | | | | | The unnamed-field format supports partition type shortcuts: ",1MiB,L' but for named-field format it requires full type: (mbr) "size=1MiB,type=83" (gpt) "size=1MiB,type=0FC63DAF-8483-4772-8E79-3D69D8477DE4" This patch implements type shortcuts also for named-field format: "size=1MiB,type=L" to make it more user-friendly and unified. Addresses: https://github.com/karelzak/util-linux/issues/837 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: be more verbose about PMBR on --activateKarel Zak2018-10-041-0/+3
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/699 Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: accept grain script headerKarel Zak2018-09-121-0/+5
| | | | | | | | | | | | The "grain" variable is used to calculate partitions alignment. The default is 1MiB (or minimal I/O size). The libfdisk provides API to overwrite this default, but this feature has been nowhere accessible for end-user. This patch support for "grain: <size>" in libfdisk scripts. Addresses: https://github.com/karelzak/util-linux/issues/688 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: document script GPT headersKarel Zak2018-09-121-0/+9
| | | | | | Add first-lba, last-lba and table-length to the sfdisk man page. Signed-off-by: Karel Zak <kzak@redhat.com>
* Fix man page typosJakub Wilk2018-08-161-1/+1
| | | | Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
* man: Use the correct macro for a font change of one argumentBjarni Ingi Gislason2018-05-231-1/+1
| | | | | | | | Use the correct macro (I, B) for the font change of one argument, not those that are used for alternating two fonts, like "BR", "IR", "RB", or "RI". Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* sfdisk: add hint about udev and flock to the man pageKarel Zak2018-01-171-0/+16
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/563 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: cleanup shortcuts in man page tooKarel Zak2018-01-121-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (script) support R (RAID) and V (LVM) shortcutsKarel Zak2018-01-091-0/+6
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/560 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: allow to disable bootable flag on all partitionsKarel Zak2017-11-021-4/+8
| | | | | | | | | Let use '-' rather than a partition number to disable the bootable flag on all partitions: sfdisk --activate /dev/sdc - Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: disambiguate units of --show-sizeChris Morin2017-05-221-2/+5
| | | | | | | [kzak@redhat.com: - use optutils.h] Signed-off-by: Chris Morin <chris.morin2@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: note about small partition in man pageKarel Zak2017-03-021-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add note about alignment to man pageKarel Zak2017-03-021-3/+14
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/417 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: improve --wipe functionalityKarel Zak2017-02-141-3/+5
| | | | | | | | | * always (except --wipe=never) wipe old partition tables * improve warn messages * improve man page Addresses: https://github.com/karelzak/util-linux/issues/410 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: support empty label use-caseKarel Zak2016-11-301-1/+17
| | | | | | | | | | | | | | | By default sfdisk creates partition table when a first partition is specified, otherwise the device is not modified. This force users to create at least one partition. This commit allows to create empty label without partitions if "label: <name>" header line is specified by script. The commit also modifies "New situation:" output to list label name and label identifier. Addresses: https://github.com/karelzak/util-linux/issues/374 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --no-tell-kernelKarel Zak2016-09-021-0/+5
| | | | | | | | The option forces sfdisk to not call re-read partitions ioctl after write PT. Requested-by: Scott Moser <smoser@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add show-pt-geometry to usage() and sfdisk.8Karel Zak2016-08-081-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: Fix typo RequiredPartiton -> RequiredPartitionSebastian Rasmussen2016-05-311-2/+2
| | | | | | | | This typo fix is backwards compatible in that fdisk will accept both the GPT attribute RequiredPartition and RequiredPartiton with the typo. Update documentation and tests to all use the new attribute name. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
* docs: Fix various typosSebastian Rasmussen2016-05-311-1/+1
| | | | Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
* man pages: fix spacing between man page name & section numberMike Frysinger2016-05-201-2/+2
| | | | | | Most have standardized correctly, but fix a few latent ones. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sfdisk: add --wipe-partitions=auto|never|defaultKarel Zak2016-05-041-0/+12
| | | | | | | | | | | | | The option allows to remove filesystes/RAIDs from newly created partitions before the partition table is updated (and partition device created). The default is "auto" in this case wipe is enabled in interactive mode only and user's confirmation (yes/no dialog) is required. Note that keep filesystem signature on partition is pretty valid use-case, so we don't erase anything by default. Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: adjust more wordings and formatting in the man pageBenno Schulenberg2016-03-081-29/+34
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fdisk, sfdisk: adjust the wording of the --wipe optionBenno Schulenberg2016-03-081-6/+7
| | | | | | | Use "when" as argument, to match the argument of --color, that can have the same three values. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fdisk, sfdisk: adjust some formatting in the man pagesBenno Schulenberg2016-03-081-2/+2
| | | | | | | Only the optional argument should be in italics, the literal = should be bold. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* sfdisk: add --wipeKarel Zak2016-02-181-0/+11
| | | | | | | | | | | | | | This patch changes sfdisk behavior and it wipes foreign signatures from the device to avoid collisions. The wipe functionality is automatically enabled in the interactive mode only (user is always warned about it), otherwise it's possible to control all by --wipe <auto|never|always>. The program does not change behavior when executed in scripts (echo <something> | sfdisk), the option "--wipe=always" is required to enable in this case. Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add ESP shortcut also for Legacy MBRKarel Zak2016-02-081-1/+1
| | | | | References: https://github.com/karelzak/util-linux/issues/267 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add 'U' shortcut for ESPKarel Zak2016-02-011-0/+3
| | | | | | | | | echo -e ',512M,U\n,,L' | sfdisk --label gpt /dev/foo to make ESP system partition. References: https://github.com/karelzak/util-linux/issues/267 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --deleteKarel Zak2015-09-171-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --move-dataKarel Zak2015-09-081-1/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --reorderKarel Zak2015-09-071-0/+3
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1232707 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: clarification for sfdisk man pageIan Wienand2015-08-051-14/+24
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1249893 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --list-freeKarel Zak2015-07-281-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: improve some formatting and wording in the man pageBenno Schulenberg2015-06-171-16/+17
| | | | | | The main fix is: giving -J, --json its own paragraph. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* sfdisk: show that the command --verify optionally takes device namesBenno Schulenberg2015-06-171-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* sfdisk: add --jsonKarel Zak2015-06-151-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: improve -N warningsKarel Zak2015-04-131-1/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: fix -a vs. -A bugKarel Zak2015-03-261-2/+2
| | | | | | | | | | | | | The -A has been originally used for --activate, since v2.26 it's used for --append. This is stupid mistake. This patch reverts the change to: -A, --activate -a, --append Note that --append is a new command line option in v2.26. Addresses: https://bugs.archlinux.org/task/44349 Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add missing --colorKarel Zak2015-02-251-0/+25
| | | | | | | The util already support lib/colors.c stuff, but without command line option. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: sort the options in the man page of sfdisk alphabeticallyBenno Schulenberg2015-02-101-18/+18
| | | | | | Also fix some typos. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: add info about *_DEBUG= to man pagesKarel Zak2015-02-031-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: restore minus symbols in long optsJ William Piggott2015-01-211-16/+16
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* libfdisk: accept Start offset in {B,M,G..}iB in sfdisk scriptsKarel Zak2015-01-201-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: fix-up man-pages flaged by checkmans.shJ William Piggott2015-01-131-1/+1
| | | | | | | | | disk-utils/sfdisk.8 Fix font escape login-utils/vipw.8 Delete bogus macro misc-utils/look.1 Delete bogus macro sys-utils/prlimit.1 Delete bogus macro Signed-off-by: J William Piggott <elseifthen@gmx.com>
* libfdisk: (gpt) cleanup header size usageKarel Zak2015-01-091-1/+1
| | | | | | | | | | | | | | | | | | Kay reported that Windows 8.1 installed does not recognize GPT created by libfdisk, but parted works as expected. It seems (according to the header hexdump) that the problem is HeaderSize GPT field where libfdisk uses 512 (header + reserved area), but parted uses 92. The both is pretty valid according to the current EFI standard, but 92 is probably more backwardly compatible. I also found places in code where libfdisk gpt driver is inconsistent and uses sometimes all sector and simetimes sizeof(gpt_header) only. The right solution is to read all sector (into zeroized memory) and later write again all sector to the device. Reported-by: Kay Sievers <kay@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: fix the grammar and formatting in the man page of sfdiskBenno Schulenberg2014-12-191-150/+161
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: don't use bold or italics for "[option]" in synopsis of man pagesBenno Schulenberg2014-12-191-9/+9
| | | | | | | As per the convention shown in Documentation/howto-man-page.txt. Also make a few other tiny adjustments along the way. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* sfdisk: fix version typos in man pageKarel Zak2014-11-071-5/+5
| | | | | Reported-by: JWP <elseifthen@gmx.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update info about env debug variablesKarel Zak2014-11-031-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: leave on errorKarel Zak2014-10-101-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>