Need ubuntu-image support 4K sector size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
New
|
High
|
Soar Huang | ||
Ubuntu Image |
Fix Released
|
Undecided
|
Łukasz Zemczak |
Bug Description
[Impact]
ubuntu-image will generate prebuilt image with 512B sector size only
* https:/
* https:/
* https:/
Unfortunately, the prebuilt image with 512B sector size
cannot work on 4K logical & physical sector size NVMe SSD
ie. Micron_
(Micron_
[Test Plan]
Check if follow steps below, try boot from SSD, and get into Ubuntu Server/Core
* Ubuntu Server 20.04
# Running command below to generate prebuilt image, erase and dd on 4K sector size NVMe SSD
$ UBUNTU_
ubuntu-image classic -d -O out -w work -f cloud-image \
--hooks-
$ sudo fstrim --fstab --verbose
$ sudo blkdiscard /dev/nvme0n1
$ sudo wipefs -a /dev/nvme0n1
$ sudo dd if=US2004-
* Ubuntu Core 20
# Download image, erase and dd on 4K sector size NVMe SSD
# https:/
$ sudo fstrim --fstab --verbose
$ sudo blkdiscard /dev/nvme0n1
$ sudo wipefs -a /dev/nvme0n1
$ xzcat ubuntu-
[Where problems could occur]
Flash 512B sector size prebuilt image on 4K sector size NVMe SSD
[Regression potential]
Use advanced format 4K sector size to become more reliable
https:/
description: | updated |
Changed in oem-priority: | |
importance: | Undecided → High |
assignee: | nobody → Soar Huang (soarhuang) |
description: | updated |
description: | updated |
Changed in ubuntu-image: | |
assignee: | nobody → Łukasz Zemczak (sil2100) |
status: | New → In Progress |
Changed in ubuntu-image: | |
status: | In Progress → Fix Released |
Update some investigation
Running commands and check partition table, it doesn't meet our expectations.
We cannot see BIOS boot and EFI system partitions
$ sudo fstrim --fstab --verbose core-20- amd64.img. xz | sudo dd of=/dev/nvme0n1 status=progress && sync
$ sudo blkdiscard /dev/nvme0n1
$ sudo wipefs -a /dev/nvme0n1
$ xzcat ubuntu-
$ sudo fdisk -l /dev/nvme0n1
------ server@ ubuntu- server: ~$ sudo fdisk -l /dev/nvme0n1 7300_MTFDHBG3T8 TDF
ubuntu-
GPT PMBR size mismatch (7577599 != 937684565) will be corrected by write.
Disk /dev/nvme0n1: 3.5 TiB, 3840755982336 bytes, 937684566 sectors
Disk model: Micron_
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/nvme0n1p1 1 937684565 937684565 3.5T ee GPT