Ubiquity installs to 4Kn disk in BIOS mode, but installation won't boot

Bug #1562537 reported by Rod Smith
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub
Unknown
Unknown
grub2 (Ubuntu)
New
Undecided
Unassigned
ubiquity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

A small but increasing number of disks use 4KiB native ("4Kn") sectors -- that is, they use 4096-byte physical sectors (which is now common) *AND* 4096-byte LOGICAL sectors (which is uncommon, "translation" to 512-byte sectors being the norm). Today, most 4Kn disks are external USB drives; however, a few 4Kn internal disks are now available, such as the 8TB HGST 0F23666. Such disks are likely to become more common in the future.

In testing an HGST 0F23666, I've found that the Ubuntu 16.04 beta2 Ubiquity desktop installer works fine with the disk in UEFI mode on an ASUS P8H77-I motherboard; however, in BIOS mode Ubiquity happily installs to the disk, but the install Ubuntu then fails to boot. The system ran through its POST just fine, but then showed a blinking underscore cursor in the top-left corner of the screen; there was no GRUB screen or error message.

In another test using a Dell server computer, a MAAS-mediated BIOS-mode install seemed to succeed, but failed on reboot with the same symptoms as on the ASUS machine. The identical symptoms suggest either a BIOS or GRUB bug.

I don't know if the problem is in the BIOS or in GRUB; however, 512-byte sector size assumptions have long riddled the software chain, and may never be fixed in BIOSes and CSMs, so even if there's a GRUB bug, BIOS/CSM bugs are likely to cause problems on many systems. Therefore, it seems prudent to display a prominent warning in Ubiquity when it detects a BIOS-mode install that is underway to a 4Kn disk. I recommend something along these lines:

"You appear to be installing to a disk with 4096-byte logical sectors in BIOS mode. This installation may not work. A UEFI-based installation is more likely to succeed. Continue anyway (Y/N)?"

The lack of such a warning is likely to result in user frustration with failures if/when 4Kn disks become more common.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
Richard Laager (rlaager) wrote :

I can reproduce this in a VM doing a manual install (with debootstrap). Basically, grub-install works without error, but the system won't boot. If grub isn't going to work, it'd be nice if it would throw an error in this case. Also, yes, the installer should be fixed.

Revision history for this message
Richard Laager (rlaager) wrote :

This is confirmed as broken in the upstream bug I attached. "Booting from 4Kn drives is and will NEVER be supported by BIOS (AKA legacy BIOS AKA LEGACY). The ONLY solution for 4Kn AF drives is to boot via UEFI."

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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