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 14:56:37 +0100	[thread overview]
Message-ID: <50967415.4040601@gmail.com> (raw)
In-Reply-To: <50966FFB.2060201@gmx.de>

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

>>

>>> That's the problem!
>>> What will happen, if the gap is too small?
>> grub-install will complaint and the only possibility will be to use
>> block list (i.e. point boot sector directly to core.img on filesystem).
>>
>>> For that reason I *before* wanted to know how much space is needed.
>>>
>> To be honest, I do not understand what your goal is.
> 
> Well, after installing Windows 7 + Ubuntu on a new big (500 GB)
> harddisk, I was "disgusted" about the waste of 2048 sectors ahead the
> 1st partition, which I respect, that could be seen as nitpicking ;-)

1MiB is nothing on the disk sized several hundreds gigabytes and it's
surely not worth the pain and the speed penalty.

> This lead me to the assumption, that GRUB could use more than 62 sectors
> of the MBR gap if available, to avoid some kind of 2-step loading.
> Theoretically there could be a possibility to use GRUB without any
> dependency on an existing Linux installation/partition on the disk.
> My initial goal was to manually shrink the MBR gap to the "usual" 63
> sectors to avoid this "waste".

Aligning on MiB boundary increases speed as well. And do you really care
about 1 MiB on 500GB disk?

> A 2nd goal: reducing the size of my MBR+GRUB backup. As you know,
> installing whatever Microsoft OS will destroy that data. So why saving 1
> MiB (=2048 sectors) if ~26 kB are sufficient?

Wrong. Windows rewrites only MBR. Also the only officially supported way
to install GRUB is grub-install

> 3rd: To my knowledge, some old OS, e.g. MS-DOS, require the old CHS
> alignment of sectors on the disk, where the maximum for a cylinder is 63
> sectors. I suspect, if it is possible to install MS-DOS on a
> 2048-sector-aligned disk.

Only very old DOS may need something like that. Anything after ~1995
will work fine with unaligned partitions. And running anything made
before ~1998 natively on modern hardware is asking for trouble on many
levels. If you're interested in running such software, use VM, they're
very performant and save you loads of trouble when running dinosaurs

> 4th: the remaining space could be used for some other sophisticated
> purposes. This is not of my current interest, but theoretically may be
> for other people.
> 

This space is to be used only by bootloader. Anything else should use
files.Files is how data is organised on modern computers. You need a
very good reason to use anything else.

> 
> I do not understand, why all this information must be grabbed by a
> complicated error-prone script, instead of providing a command, maybe
> like "grub-info".

Because if you need this info, then you're doing something very wrong.

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


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

  reply	other threads:[~2012-11-04 13:56 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
     [not found]                     ` <20121104080219.562a0054@opensuse.site>
2012-11-04 13:39                       ` Ulf Zibis
2012-11-04 13:56                         ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
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=50967415.4040601@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.