Project

General

Profile

Bug #6593

want LBA48 support in grub

Added by Hans Rosenfeld over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
bootloader
Start date:
2016-02-01
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

As I learned the hard way recently grub silently truncates disk sector addresses to 32bits. This causes all sorts of pain when using large (>2TB) disks:
  • we cannot install stage2 beyond 2TB, meaning that we can't boot off EFI partitions beginning beyond 2TB
  • when rpool extends beyond 2TB on a disk we can get unexpected boot failures if the grub config file, the kernel, or the bootarchive are stored beyond the 2TB limit

Related issues

Related to illumos gate - Bug #7223: grub "setup" built-in broken by 6593Closed2016-07-25

Actions

History

#1

Updated by Hans Rosenfeld over 4 years ago

Webrev: http://ma.nexenta.com/~woodstock/illumos-6593/

This just fixes the loading of files beyond 2TB.

Fixing loading of stage2 from beyond 2TB turned out to be quite difficult due to requirements for backwards compatibility and the necessity of fixing and testing all the grub commands that read/write it like install, blocklist, embed etc. As this is a rather esoteric feature I shelved that for now.

#2

Updated by Electric Monk about 4 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 9890706ed36aa6bfca8ad283fbe4dac12ecd692b

commit  9890706ed36aa6bfca8ad283fbe4dac12ecd692b
Author: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Date:   2016-03-16T16:57:15.000Z

    6593 want LBA48 support in grub
    Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
    Reviewed by: Dan McDonald <danmcd@omniti.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

#3

Updated by Joshua M. Clulow almost 4 years ago

  • Related to Bug #7223: grub "setup" built-in broken by 6593 added

Also available in: Atom PDF