Public bug reported:

Wrong message "Value out of range".
sdd6 created ok with default last sector, but "Value out of range" when I input 
size "+16G".
As result: sdd5 and sdd6 _is_equal_size_ in sectors, sdd5 created with "+16G" 
and sdd6 only with default last sector.

...
Device         Start        End    Sectors  Size Type
/dev/sdd1       2048    1050623    1048576  512M EFI System
/dev/sdd2    1050624    5244927    4194304    2G Linux filesystem
/dev/sdd3    5244928   34605055   29360128   14G Linux filesystem
/dev/sdd4   34605056   47187967   12582912    6G Linux filesystem
/dev/sdd7  114296832 1953499135 1839202304  877G Linux RAID

Command (m for help): n
Partition number (5,6,8-128, default 5): 
First sector (47187968-1953525134, default 47187968): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (47187968-114296831, default 
114296831): +16G

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

Command (m for help): n
Partition number (6,8-128, default 6): 
First sector (80742400-1953525134, default 80742400): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (80742400-114296831, default 
114296831): +16G
Value out of range.
Last sector, +/-sectors or +/-size{K,M,G,T,P} (80742400-114296831, default 
114296831): 

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

Command (m for help): p
Disk /dev/sdd: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD1005FBYZ-0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D0916A3A-53C4-2A48-93FC-2B1970AE79D5

Device         Start        End    Sectors  Size Type
/dev/sdd1       2048    1050623    1048576  512M EFI System
/dev/sdd2    1050624    5244927    4194304    2G Linux filesystem
/dev/sdd3    5244928   34605055   29360128   14G Linux filesystem
/dev/sdd4   34605056   47187967   12582912    6G Linux filesystem
/dev/sdd5   47187968   80742399   33554432   16G Linux filesystem
/dev/sdd6   80742400  114296831   33554432   16G Linux filesystem
/dev/sdd7  114296832 1953499135 1839202304  877G Linux RAID

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: fdisk 2.39.3-9ubuntu6.5
ProcVersionSignature: Ubuntu 6.8.0-117.117-generic 6.8.12
Uname: Linux 6.8.0-117-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: pass
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Wed Jun  3 10:06:28 2026
InstallationDate: Installed on 2020-04-14 (2241 days ago)
InstallationMedia: Ubuntu-Server 20.04 LTS "Focal Fossa" - Beta amd64 (20200413)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: util-linux
UpgradeStatus: Upgraded to noble on 2026-01-02 (152 days ago)

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2155099

Title:
  bad math with disk sectors when creating partition in fdisk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/2155099/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to