From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Bug#478238: grub-probe: fails to find drive for /dev/sda10
Date: Mon, 12 May 2008 20:43:14 +0200 [thread overview]
Message-ID: <20080512184314.GA11847@thorin> (raw)
In-Reply-To: <48286A26.2090202@gmail.com>
On Mon, May 12, 2008 at 07:02:46PM +0300, Török Edwin wrote:
> Robert Millan wrote:
> > On Sun, May 11, 2008 at 02:35:41PM +0300, Török Edwin wrote:
> >
> >> /dev/sda9 is not a valid OpenBSD partition, and in partmap/pc.c:176 the
> >> iteration fails with an error: invalid disk label magic 0x%x.
> >> If I replace that return with a continue, it works.
> >>
> >> The problem is that grub2 stops looking for more partitions as soon as
> >> it encountered the invalid partition,
> >>
> >
> > I think a correct fix for this belongs in grub_partition_iterate(). It should
> > only let its hook determine abortability rather than mandate that invalid
> > partitions should cause abortion. Please, can you test the attached patch?
> >
>
> I tested the patch, however it still says:
> grub-probe: error: Cannot find a GRUB drive for /dev/sda10. Check your
> device.map.
>
> I notice that /dev/sda10 appears in the -vv output though:
> home/egrub-probe: info: opening the device `/dev/sda9'
> grub-probe: info: opening the device `/dev/sda9'
> grub-probe: info: /dev/sda10 starts from 83987883
> grub-probe: info: opening the device hd0
>
> I attached the full output of grub-probe -d /dev/sda10 -vv, for the case
> when /dev/sda9 has the wrong partition type.
It's better is you use grub-emu for this test. It's less complex.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
prev parent reply other threads:[~2008-05-12 18:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <481590B8.7000405@gmail.com>
[not found] ` <20080429134626.GB8328@thorin>
[not found] ` <481DC1BC.6020002@gmail.com>
[not found] ` <20080506133126.GG5055@thorin>
2008-05-11 11:35 ` Bug#478238: grub-probe: fails to find drive for /dev/sda10 Török Edwin
2008-05-12 15:44 ` Robert Millan
2008-05-12 16:02 ` Török Edwin
2008-05-12 18:43 ` Robert Millan [this message]
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=20080512184314.GA11847@thorin \
--to=rmh@aybabtu.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.