Installer fails to recognize correct partition sizes, likely sector size confusion

Bug #2035034 reported by Assaf Hershko
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Undecided
Unassigned
subiquity
Fix Released
Undecided
Unassigned
ubuntu-desktop-installer
Fix Released
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://imgur.com/a/jmYCpNr

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://imgur.com/a/EYuEGse

Note that this is the Desktop install (https://ubuntu.com/download/desktop). The legacy installer recognizes the sizes of the partitions correctly. This is an issue with the new installer.

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

Paul White (paulw2u)
affects: ubuntu → ubuntu-desktop-installer
tags: added: lunar
Revision history for this message
Dan Bungert (dbungert) wrote :

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

summary: - Installer fails to recognize correct partition sizes
+ Installer fails to recognize correct partition sizes, likely sector size
+ confusion
Revision history for this message
Terence Tan (terence-tan) wrote (last edit ):

Hi there! I'm not the OP but I've had the same issue, also on a MacBook Pro 2017 whilst installing 23.04.

My layout is a little different, it's something like: 1GB for the EFI system partition; 125GB for macOS; 1GB for Ubuntu /boot, and 124GB for Ubuntu /.

Attached is my output. Output from gparted:

Revision history for this message
Terence Tan (terence-tan) wrote :

Output from suibiquity:

Revision history for this message
Terence Tan (terence-tan) wrote :

Output from lsblk:

Revision history for this message
Terence Tan (terence-tan) wrote (last edit ):

Output from sfdisk:

(Apologies for the bug spam, was unsure how to attach multiple files to the one comment...)

Revision history for this message
Dan Bungert (dbungert) wrote :

@Terence - thanks for the logs! I did some fixes based on a VM and some assumptions about what was going on, thankfully the logs are matching my assumptions. So we believe this to be fixed for 23.10, I'll go check and confirm if it's going to be part of the beta builds.

Changed in subiquity:
status: New → Fix Committed
Olivier Gayot (ogayot)
Changed in curtin:
status: New → Fix Committed
Olivier Gayot (ogayot)
Changed in subiquity:
status: Fix Committed → Fix Released
Changed in curtin:
status: Fix Committed → Fix Released
Changed in ubuntu-desktop-installer:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.