From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: workaround install boot on btrfs with windows partition scheme
Date: Sun, 2 Nov 2014 08:27:07 +0300 [thread overview]
Message-ID: <20141102082707.68748fa5@opensuse.site> (raw)
In-Reply-To: <B21EE1B5-F8EC-4344-80B8-97DFD298DC5C@colorremedies.com>
В Sat, 1 Nov 2014 14:35:57 -0600
Chris Murphy <lists@colorremedies.com> пишет:
>
> On Oct 30, 2014, at 2:32 AM, Michael Chang <mchang@suse.com> wrote:
>
> > Many shipped Windows created it's first partition aligned in 63
> > (cylinder) and therefore can't offer enough room for core.img. Even
> > worse the partitions has been created as logical.
> >
> >> sudo /sbin/fdisk -l
> > Disk /dev/sda: 64.4 GB, 64424509440 bytes, 125829120 sectors
> > Units = sectors of 1 * 512 = 512 bytes
> > Sector size (logical/physical): 512 bytes / 512 bytes
> > I/O size (minimum/optimal): 512 bytes / 512 bytes
> > Disk label type: dos
> > Disk identifier: 0x0001c622
> >
> > Device Boot Start End Blocks Id System
> > /dev/sda1 63 2056319 1028128+ b W95 FAT32
> > /dev/sda2 * 2058240 125829119 61885440 f W95 Ext'd
> > (LBA)
> > /dev/sda5 2060288 5302271 1620992 82 Linux swap /
> > Solaris
> > /dev/sda6 5304320 47247359 20971520 83 Linux
> > /dev/sda7 47249408 125804543 39277568 83 Linux
> >
> > This leaves us currently no option to succeed in installation if boot is
> > on btrfs, or any other filesystems that block lists can't be used and
> > core.img must be embedded in order to be reliably addressed.
> >
> > The attached patch try to workaround this scenario by placing the core.img
> > in filesystem's (btrfs) bootloader embedding area if available to overcome
> > the too small MBR gap which gets loaded by boot.img placed in MBR.
> >
> > Please kindly review the patch or suggests for how to fix this scenario
> > sanely.
>
> Why not have a dedicated partition with MBR type code for core.img, equivalent to BIOSBoot currently used on GPT? freedesktop.org has a proposal to use type code 0xEA for this purpose (in part). The boot.img code in the MBR can arbitrarily jump to any LBA, so 0xEA doesn't need to be a primary partition does it?
>
It is rarely needed in simple cases; in complicated cases (btrfs or
LVM) we already have space dedicated for core.img. It seems more
logical to use this space.
Also you still need to tell grub-setup to use this special partition at
which point why not extend it to support arbitrary location for
core.img? It could be made check partition type and not refuse to
install on raw partition for special 0xEA type then as a bonus.
next prev parent reply other threads:[~2014-11-02 5:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 8:32 workaround install boot on btrfs with windows partition scheme Michael Chang
2014-10-30 12:42 ` Andrei Borzenkov
2014-11-02 1:34 ` Chris Murphy
2014-11-02 5:37 ` Andrei Borzenkov
2014-11-02 22:19 ` Chris Murphy
2014-11-03 5:36 ` Andrei Borzenkov
2014-11-03 19:36 ` Chris Murphy
2014-11-03 20:29 ` Andrei Borzenkov
2014-11-03 21:05 ` Chris Murphy
2014-11-04 5:50 ` Andrei Borzenkov
2014-11-04 6:46 ` Chris Murphy
2014-11-03 4:17 ` Michael Chang
2014-11-03 20:04 ` Chris Murphy
2014-11-04 4:50 ` Michael Chang
2014-11-04 18:21 ` Chris Murphy
2014-11-01 20:35 ` Chris Murphy
2014-11-02 5:27 ` Andrei Borzenkov [this message]
2014-11-02 22:11 ` Chris Murphy
2014-11-03 5:31 ` Andrei Borzenkov
2014-11-03 19:08 ` Chris Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141102082707.68748fa5@opensuse.site \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
--cc=lists@colorremedies.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.