[Impact] ubuntu-image will generate prebuilt image with 512B sector size only
https://github.com/CanonicalLtd/ubuntu-image/blob/12fbf84b0ec556f28dac8e4ba56f07e69efc9720/ubuntu_image/common_builder.py#L395 https://github.com/CanonicalLtd/ubuntu-image/blob/12fbf84b0ec556f28dac8e4ba56f07e69efc9720/ubuntu_image/helpers.py#L269
Unfortunately, the prebuilt image with 512B sector size cannot work on 4K logical & physical sector size NVMe SSD
ie. Micron_7300_MTFDHBG3T8TDF 4K logical & physical sector size NVMe SSD (Micron_7300_MTFDHBG3T8TDF_NVMeSSD.jpg) OEM project (LP: #1942414)
[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_STORE_AUTH_DATA_FILENAME=store.cred TARGET_ARCH=amd64 \ ubuntu-image classic -d -O out -w work -f cloud-image \ --hooks-directory hooks -a amd64 gadget/prime
$ sudo fstrim --fstab --verbose $ sudo blkdiscard /dev/nvme0n1 $ sudo wipefs -a /dev/nvme0n1 $ sudo dd if=US2004-prebuilt.img of=/dev/nvme0n1 status=progress && sync
* Ubuntu Core 20 # Download image, erase and dd on 4K sector size NVMe SSD # https://cdimage.ubuntu.com/ubuntu-core/20/stable/current/ubuntu-core-20-amd64.img.xz
$ sudo fstrim --fstab --verbose $ sudo blkdiscard /dev/nvme0n1 $ sudo wipefs -a /dev/nvme0n1 $ xzcat ubuntu-core-20-amd64.img.xz | sudo dd of=/dev/nvme0n1 status=progress && sync
[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://www.seagate.com/as/en/tech-insights/advanced-format-4k-sector-hard-drives-master-ti/
[Impact]
ubuntu-image will generate prebuilt image with 512B sector size only
https:/ /github. com/CanonicalLt d/ubuntu- image/blob/ 12fbf84b0ec556f 28dac8e4ba56f07 e69efc9720/ ubuntu_ image/common_ builder. py#L395 /github. com/CanonicalLt d/ubuntu- image/blob/ 12fbf84b0ec556f 28dac8e4ba56f07 e69efc9720/ ubuntu_ image/helpers. py#L269
https:/
Unfortunately, the prebuilt image with 512B sector size
cannot work on 4K logical & physical sector size NVMe SSD
ie. Micron_ 7300_MTFDHBG3T8 TDF 4K logical & physical sector size NVMe SSD 7300_MTFDHBG3T8 TDF_NVMeSSD. jpg)
(Micron_
OEM project (LP: #1942414)
[Test Plan]
Check if follow steps below, try boot from SSD, and get into Ubuntu Server/Core
* Ubuntu Server 20.04 STORE_AUTH_ DATA_FILENAME= store.cred TARGET_ARCH=amd64 \ directory hooks -a amd64 gadget/prime
# 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 prebuilt. img of=/dev/nvme0n1 status=progress && sync
$ sudo blkdiscard /dev/nvme0n1
$ sudo wipefs -a /dev/nvme0n1
$ sudo dd if=US2004-
* Ubuntu Core 20 /cdimage. ubuntu. com/ubuntu- core/20/ stable/ current/ ubuntu- core-20- amd64.img. xz
# Download image, erase and dd on 4K sector size NVMe SSD
# https:/
$ 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-
[Where problems could occur]
Flash 512B sector size prebuilt image on 4K sector size NVMe SSD
[Regression potential] /www.seagate. com/as/ en/tech- insights/ advanced- format- 4k-sector- hard-drives- master- ti/
Use advanced format 4K sector size to become more reliable
https:/