From: Wilfried Weissmann <Wilfried.Weissmann@gmx.at>
To: Molle Bestefich <molle.bestefich@gmail.com>,
device-mapper development <dm-devel@redhat.com>
Cc: bug-grub@gnu.org
Subject: Re: Re: grub 0.96 bug
Date: Mon, 21 Mar 2005 19:16:20 +0100 [thread overview]
Message-ID: <423F0F74.3030007@gmx.at> (raw)
In-Reply-To: <62b0912f050321065558fc956@mail.gmail.com>
> Chris Nicola wrote:
>> Yes I am having the exact same problem. I am actually just going to try
>> and lower version of grub for now but I will try this patch if that
>> still happens.
>
> Just did this:
> ==========
> grub> device (hd0) /dev/mapper/hpt37x_ehgjaggaf
> grub> root (hd0,5)/boot
> Filesystem type is reiserfs, partition type 0x83
> grub> setup (hd0)
> ==========
>
> and it destroyed my RAID0.
> GRUB is such a piece of crap :-).
>
> It must be severely broken; since if it just sticked to writing to the
> device I pointed it at (hpt37x_ehgjaggaf) which is a RAID0 "virtual
> disk" / whatever, it should never be able to overwrite metadata out on
> the physical disk.
HPT desided to make the metadata accessable from the virtual disk. Just
look at sector 9 of a working array and enjoy the show...
Grub is fine. At least the version that I am using. You have to do some
tricks to get grub running on the old hpt controllers (I think the new
ones are better, but I cannot tell for sure).
Just copy the stage 1.5 reiserfs module to sector 16 instead of sector 8
which is the grub default that destroys the metadata in case of a hpt.
# dd if=/boot/grub/reiserfs_stage1_5 of=/dev/mapper/hpt37x_cjafdedchg
seek=16 conv=sync
Then do the following in grub:
grub> root (hd0,1)
grub> geometry (hd0) 9964 255 63
grub> install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0)
(hd0)16+18 (hd0,1)/boot/grub/stage2 (hd0,1)/boot/grub/menu.lst
You have to use the correct geometry for your harddisk and your (hd...)
values. The "(hd0)16+18" parameter of the "install" command tells grub
where to find the stage 1.5 loader. "(hd0)" is the disk. "16" is the
offset of the sector where the module is located and "+18" is the size
in sectors of the module. Your size may vary. And do not forget that you
have to round up to the next full sector.
>
> Anyway, just wanted to tell you to beware.
> Gerte has a GRUB example on his page where he does setup (hd0,5)
> instead of setup (hd0), perhaps that's how it's meant to work.
>
But you still need a MBR that invokes the loader in (hd0,5) then!
Greetings,
Wilfried
next prev parent reply other threads:[~2005-03-21 18:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <62b0912f05031606396a3a47db@mail.gmail.com>
[not found] ` <20050318125120.GQ3301@redhat.com>
[not found] ` <62b0912f0503181112ea853a6@mail.gmail.com>
[not found] ` <62b0912f050318142923419b20@mail.gmail.com>
[not found] ` <62b0912f05031914513909bcfb@mail.gmail.com>
[not found] ` <62b0912f050319145547c4a7db@mail.gmail.com>
[not found] ` <20050320163001.GB643@percy.comedia.it>
[not found] ` <62b0912f05032019262c009465@mail.gmail.com>
[not found] ` <62b0912f0503202121607bd38a@mail.gmail.com>
[not found] ` <62b0912f05032104052e78fd60@mail.gmail.com>
2005-03-21 14:55 ` grub 0.96 bug Molle Bestefich
2005-03-21 18:16 ` Wilfried Weissmann [this message]
2005-03-22 7:53 ` [dm-devel] " Molle Bestefich
2005-03-22 19:29 ` Wilfried Weissmann
2005-03-22 20:11 ` Molle Bestefich
2005-03-22 22:42 ` Wilfried Weissmann
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=423F0F74.3030007@gmx.at \
--to=wilfried.weissmann@gmx.at \
--cc=bug-grub@gnu.org \
--cc=dm-devel@redhat.com \
--cc=molle.bestefich@gmail.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.