Installer fails to recognize correct partition sizes, likely sector size confusion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Unassigned | ||
subiquity |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-desktop-installer |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to install Ubuntu 23.04 on a Macbook Pro 2017 (dual booting with MacOS). For that purpose, I created two partitions called UBUNTU and SWAP.
GParted is showing them with correct sizes. See screenshot here: https:/
But for some reason the installer gets their sizes completely wrong (and wrongly shows much of the disk as unallocated to any partition). See screenshot here: https:/
Note that this is the Desktop install (https:/
A thought - based on the ~8x discrepancy in the values, it looks like GParted knows the partition table uses 4096 byte blocks but the new Ubuntu installer thinks it uses 512 byte blocks for some reason.
Related branches
- Michael Hudson-Doyle: Approve
- Chris Peterson: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 1038 lines (+1002/-4)3 files modifiedcurtin/storage_config.py (+8/-4)
tests/data/probert_storage_4ksectors.json (+986/-0)
tests/unittests/test_storage_config.py (+8/-0)
affects: | ubuntu → ubuntu-desktop-installer |
tags: | added: lunar |
Changed in curtin: | |
status: | New → Fix Committed |
Changed in subiquity: | |
status: | Fix Committed → Fix Released |
Changed in curtin: | |
status: | Fix Committed → Fix Released |
Hi Assaf, thanks for the report.
Yes, that does sound like some 4k/512 sector size confusion.
Would you be so kind as to attach to this bug the output of the following commands:
lsblk -tJ /dev/nvme0n1
sfdisk -J /dev/nvme0n1