#975435 fdisk: feature request: partition alignment for sfdisk

Package:
fdisk
Source:
util-linux
Description:
collection of partitioning utilities
Submitter:
Marc Lehmann
Date:
2020-12-28 01:03:04 UTC
Severity:
wishlist
Tags:
#975435#5
Date:
2020-11-22 09:43:17 UTC
From:
To:
Dear Maintainer,

sfdisk by default aligns partition sizes to one sector (at least on some
disks) when sizes are not exactly specified. Larger alignments can be very
useful nowadays, for example, disk encryption can be more efficient when
the sector size for encryption is 4096 octets, requiring a partition size
that is an exact multiple of 8 sectors.

Unfortunately, when sfidsk auto-sizes a partition and the device has
an "odd" size and the size is not specified, sfdisk will simply (and
correctly) use the full remaining disk, causing e.g. cryptsetup with
--sector-size 4096 to fail.

It would be nice if it were possible to specify an alignment factor in
bytes or sectors that would be used when creating partitions.

Thanks!

#975435#10
Date:
2020-12-28 01:00:14 UTC
From:
To:
Hello Marc Lehmann,

thank you for your mail.

* Marc Lehmann <debian-reportbug@plan9.de>:
Please report this upstream.

Instructions are here:
https://sources.debian.org/src/util-linux/2.33.1-0.1/README/

Many thanks,
Chris