All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: How many sectors for GRUB 2
Date: Sun, 04 Nov 2012 00:31:45 +0100	[thread overview]
Message-ID: <5095A961.2090101@gmail.com> (raw)
In-Reply-To: <50959CB5.1030605@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]

On 03.11.2012 23:37, Ulf Zibis wrote:

> Am 03.11.2012 18:05, schrieb Andrey Borzenkov:
>> core.img is the part that is installed in MBR gap, but it does not mean
>> that it was this particular file. grub-install creates core.img
>> in /boot/grub and embeds it in the same run, but it is also possible to
>> directly use
>>
>> grub-mkimage -o /tmp/foo.img ...
>> grub-bios-setup -c /tmp/foo.img ...
>>
>> You wanted to be absolutely safe and sure. The only way to be is to
>> reinstall grub using grub-install.
> 
> You mean, after I would have shrinked th MBR gap?
> That's the problem!
> What will happen, if the gap is too small?
> For that reason I *before* wanted to know how much space is needed.

Never use the exact number for this. It changes e.g. between versions
and setting exact size would block any upgrade. It will also disable
Reed-Solomon. Just left 1M-1 sector. This is guaranteed to be enough and
results in nocely aligned first partition.
-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

  parent reply	other threads:[~2012-11-03 23:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <50945DB2.7090903@gmx.de>
     [not found] ` <20121103132052.74bd4e47@opensuse.site>
     [not found]   ` <509522A8.20900@gmx.de>
     [not found]     ` <20121103180415.27b6be3f@opensuse.site>
     [not found]       ` <509528ED.7090105@gmx.de>
     [not found]         ` <20121103184636.70d8b574@opensuse.site>
     [not found]           ` <50953A5C.1070002@gmx.de>
     [not found]             ` <20121103195806.7d14a130@opensuse.site>
2012-11-03 16:38               ` How many sectors for GRUB 2 Ulf Zibis
2012-11-03 17:05                 ` Andrey Borzenkov
2012-11-03 22:37                   ` Ulf Zibis
2012-11-03 23:16                     ` Chris Murphy
2012-11-03 23:31                     ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
     [not found]                     ` <20121104080219.562a0054@opensuse.site>
2012-11-04 13:39                       ` Ulf Zibis
2012-11-04 13:56                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-11-05  5:57                         ` Elliott, Robert (Server Storage)

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=5095A961.2090101@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /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.