Your message dated Mon, 15 Sep 2025 00:16:05 +0200
with message-id <[email protected]>
and subject line Re: Bug#1098638: fdisk: creates partitions one sector too large
has caused the Debian Bug report #1098638,
regarding fdisk: creates partitions one sector too large
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1098638: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098638
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: fdisk
Version: 2.38.1-5+deb12u1
X-Debbugs-Cc: [email protected]

When I create a new partition with +sectors, fdisk creates one
that is one sector too large:


Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-7814037134, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-7814037134, default 
7814035455): +2097152

Created a new partition 1 of type 'Linux filesystem' and of size 1 GiB.

Command (m for help): p
Disk /dev/sdb: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: ST4000NM0245-1Z2
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: DDA88AFF-1E6A-7448-AB5A-85470938DBC7

Device       Start        End    Sectors  Size Type
/dev/sdb1     2048    2099200    2097153    1G Linux filesystem


I’ve only tested that with GPT at the moment.

--- End Message ---
--- Begin Message ---
Source: util-linux
Source-Version: 2.41-1

On Wed, Feb 26, 2025 at 10:22:43AM +0100, Thorsten Glaser wrote:
> So, would you please consider changing the wording, at
> least, upstream? (And, perhaps, throw in another sentence
> or two into the manpage, stating that the +sectors syntax
> isn’t meant to express size, unlike the others.)

This happened in upstream commit e41df3fb44df0efe9412fee31f43db925065606a

Chris

--- End Message ---

Reply via email to