summaryrefslogtreecommitdiffstats
path: root/disk-utils/partx.8
diff options
context:
space:
mode:
authorKarel Zak2017-01-13 13:30:22 +0100
committerKarel Zak2017-01-13 13:30:22 +0100
commitf8a4a0d4f2fd569252029bd004e24ee433b43fe8 (patch)
tree98a085be69dba476b280fa32e7671a8942c92e01 /disk-utils/partx.8
parentlibblkid: add blkid_probe_set_sectorsize() (diff)
downloadkernel-qcow2-util-linux-f8a4a0d4f2fd569252029bd004e24ee433b43fe8.tar.gz
kernel-qcow2-util-linux-f8a4a0d4f2fd569252029bd004e24ee433b43fe8.tar.xz
kernel-qcow2-util-linux-f8a4a0d4f2fd569252029bd004e24ee433b43fe8.zip
partx: add --sector-size option
/dev/sdc is 4K disk: # fdisk -l /dev/sdc Disk /dev/sdc: 100 MiB, 104857600 bytes, 25600 sectors ... Device Boot Start End Sectors Size Id Type /dev/sdc1 1024 25599 24576 96M 83 Linux let's use it as disk image: # dd if=/dev/sdc of=~/sdc.img # losetup -f ~/sdc.img old version: # partx --show /dev/loop0 NR START END SECTORS SIZE NAME UUID 1 1024 25599 24576 12M 6a4ba75b-01 new version: # partx --show /dev/loop0 --sector-size 4096 NR START END SECTORS SIZE NAME UUID 1 8192 204799 196608 96M 6a4ba75b-01 Addresses: https://github.com/karelzak/util-linux/issues/396 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/partx.8')
-rw-r--r--disk-utils/partx.83
1 files changed, 3 insertions, 0 deletions
diff --git a/disk-utils/partx.8 b/disk-utils/partx.8
index 7ff9b27f3..0d47f1c54 100644
--- a/disk-utils/partx.8
+++ b/disk-utils/partx.8
@@ -136,6 +136,9 @@ or
.BR \-u , " \-\-update"
Update the specified partitions.
.TP
+.BR \-S , " \-\-sector\-size " \fIsize
+Overwrite default sector size.
+.TP
.BR \-v , " \-\-verbose"
Verbose mode.
.TP