From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Getting Started
Date: Fri, 13 Apr 2012 12:04:26 +0200 [thread overview]
Message-ID: <4F87FA2A.5000708@gmail.com> (raw)
In-Reply-To: <002601cd1959$64cb20f0$6400a8c0@Compaq1>
[-- Attachment #1: Type: text/plain, Size: 4561 bytes --]
On 13.04.2012 11:39, Steve Burtchin wrote:
> On Tue, 10 Apr 2012 14:26:54 +0200 Vladimir '?-coder/phcoder'
> Serbinenko wrote:
> >On 10.04.2012 12:56, Steve Burtchin wrote:
> >> I found the URL to the bug report. It is
> >> http://savannah.gnu.org/bugs/?19410. In summary (and more
> >> specifically), I wish to add the following features to the GRUB2
> >> 'parttool' command:
> >>
> >> 1) Create or delete a primary partition. This functionality was
> >> provided by the 'partnew' command in GRUB Legacy. See also
> >> http://savannah.gnu.org/bugs/?19389.
> > As I've explained in a parallel thread (the one concerning SoC), any
> > writing to disk is potentially dangerous and so we need a good reason to
> > do it. Why would you want to regularly create and destroy partitions in
> > GRUB?
>
> Firstly, I do not wish ever to create or destroy any partition using
> GRUB. I was using the terminology from the GRUB legacy manual:
> "partnew . . . Create a new primary partition." IMHO this would be
> more appropriately described as "Edit a slot in the MPT
Please stop inventing your own shortcuts, it makes it difficult to read
and understand you.
> (to define an alternate primary partition)." The corresponding
> terminology ("delete") would IMHO be more appropriately described as
> "Zero a slot in the MPT (to thoroughly hide a primary partition from
> aggressive installers)." For example, suppose I want to install
> WindowsXP to hda3. The safest approach would be to create a menuitem
> in grub.cfg to zero out slots 1, 2 & 4 of the MPT, and then boot the
> CD. The installer then only sees one partition with the rest being
> free space, for which it will ask you before overwriting it.
Not true. Some installers take free space to silently create some
partitions it believes should be "always present". Moreover most of
concerned OS ignore partitions with unknown type so just setting hidden
flag is enough.
>
> Secondly, in regards to the 'SoC' thread, any changes to the
> partitioning layout would obviously make the current 'menu.cfg' file
> obsolete, and therefore, any practical integration of parted with GRUB
> would necessarily require that 'menu.cfg' be updated in lockstep.
> With the exception of small adjustments, I would agree that in almost
> all cases (all) the partitioning work should be done prior to
> installing any bootloader. In this respect, the intended use of my
> proposed new functionality (wrt. item 1) would be esentially identical
> to that of the 'gptsync' command, the only difference being that the
> source of the MPT data would reside in 'menu.cfg' rather than in the
> GPT partition entries.
You need partition table in the first place in order to access grub.cfg
(and it's not menu.cfg).
> >>
> >> 2) Edit extended partition tables (EPBRs). This functionality was
> >> added to GRUB Legacy with the 'eptedit' command as described in bug
> >> report #19410.
> >>
> > I feel like improvements into our gptsync (i.a. support for creating
> > secondary partitions when possible) solves the same problems (having
> > more than 4 OS requiring primary partitions) but in a more standartised
> > way and with a benefit of that GPT-aware tools will handle the whole
> > thing correctly.
>
> It is entirely true that with a GPT partitioned disk and 'gptsync' one
> could setup GRUB2 to boot more than 100 GPT-unaware operating systems
> each requiring its own primary partition to boot. However, in
> practice this is severly restrictive in the great majority of
> computers sold for home use (and business workstation computers) which
> have only one HDD. With only one HDD, this leaves only two other
> partitions for sharing and storing data for GPT-unaware OSs.
As I said: I'd rather add a support for creating extended partitions in
protective MBR.
>
> If a user has only GPT-unaware OSs, the only benefit to be gained with
> a GPT partitioned disk is that setup of a multiboot system may in some
> cases be easier, but with the severe tradeoffs in flexibility already
> mentioned. One could, in theory, dedicate one GPT partition in the
> hybrid MBR as a logical partition, but this partition would have to be
> hidden from all GPT-aware OSs, and such a partitioning layout would
> not be directly supported by any one partitioning utility.
One would have regular GPT partitions with few gaps, or special type
partitions left for putting EBR there.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2012-04-13 10:04 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-13 9:39 Getting Started Steve Burtchin
2012-04-13 10:04 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-27 20:32 getting started Ed Sutter
2015-05-29 18:41 ` Trevor Woerner
2015-05-31 12:16 ` Paul Eggleton
2015-06-01 15:51 ` Ed Sutter
2014-12-07 13:48 Getting started Rahul Radhakrishnan
2014-08-01 20:06 Tom
2014-08-19 13:12 ` Clemens Ladisch
2013-07-30 17:33 Getting Started Karan Dev
2013-07-30 18:19 ` Valdis.Kletnieks at vt.edu
[not found] ` <CANaRiD2xLAHKbVXBKpZdFSx0OgZEMMF8_J9g1kcikbOKAzinRw@mail.gmail.com>
2013-07-31 12:35 ` Valdis.Kletnieks at vt.edu
2013-08-05 16:44 ` Sumeet pawnikar
2013-08-05 17:41 ` anish singh
2013-08-05 19:46 ` Valdis.Kletnieks at vt.edu
[not found] <mailman.75.1336579215.3475.grub-devel@gnu.org>
2012-05-10 6:28 ` Steve Burtchin
2012-05-10 7:01 ` Vladimir 'φ-coder/phcoder' Serbinenko
[not found] <mailman.75.1336492816.24481.grub-devel@gnu.org>
2012-05-09 8:48 ` Steve Burtchin
2012-05-09 13:09 ` Vladimir 'φ-coder/phcoder' Serbinenko
[not found] <mailman.89.1334332817.24000.grub-devel@gnu.org>
2012-05-02 4:27 ` Steve Burtchin
2012-05-07 20:25 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-10 10:56 RE: " Steve Burtchin
2012-04-10 12:26 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-07 9:54 Steve Burtchin
2012-04-07 11:17 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-10-05 23:11 Russell Morris
2011-10-06 0:25 ` Andreas Müller
2011-10-06 8:21 ` Henning Heinold
2011-10-10 21:42 ` Russell Morris
2011-08-19 1:26 getting started Littlefield, Tyler
2011-08-19 5:07 ` Vladimir Murzin
2011-08-19 21:26 ` Julie Sullivan
2011-08-19 21:44 ` Julie Sullivan
2011-08-20 3:04 ` esmaeil mirzaee
2011-08-20 20:04 ` Julie Sullivan
2009-06-02 23:36 Getting started hiren panchasara
2009-06-03 0:21 ` Frederic Weisbecker
2009-06-03 1:03 ` Charles 'Mack' Rhinelander
2009-06-15 10:33 ` Kevin DuBois
2009-03-13 9:07 getting started Rolf Schumacher
2009-03-13 0:47 Rolf Schumacher
2008-02-07 13:11 Getting Started Neshama Parhoti
2008-02-07 13:26 ` Johannes Berg
2008-02-07 13:27 ` Johannes Berg
2008-02-07 13:32 ` Neshama Parhoti
2008-02-07 13:35 ` Johannes Berg
2008-02-07 13:51 ` Neshama Parhoti
2008-02-07 13:35 ` Holger Schurig
2008-02-07 13:49 ` Neshama Parhoti
2008-02-07 13:55 ` Holger Schurig
2008-02-07 15:04 ` Nick Kossifidis
2008-02-07 16:09 ` Dan Williams
2008-02-07 16:15 ` Dan Williams
2008-02-07 16:17 ` Nick Kossifidis
2006-05-24 22:46 Getting started Dino Linux
2004-10-05 23:23 getting started david linux
2002-06-18 7:30 Getting Started Patrick Altman
2002-06-18 8:56 ` Vincent Hanquez
2000-09-26 15:20 Getting started Jordan, Shane
2000-09-26 17:33 ` Keith M Wesolowski
2000-09-27 5:05 ` Erik Aderstedt
2000-09-27 5:05 ` Erik Aderstedt
2000-09-27 17:27 ` Keith M Wesolowski
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=4F87FA2A.5000708@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.