From: Bruce Dubbs <bruce.dubbs@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: How to install grub on fakeraid (raid 0) which spans 2 TB?
Date: Thu, 24 Dec 2009 00:08:44 -0600 [thread overview]
Message-ID: <4B33056C.7060102@gmail.com> (raw)
In-Reply-To: <20091224015905.168420@gmx.net>
André Heynatz wrote:
>> P ntfs 300 GB Windows XP SP3 32 Bit
>> P ntfs 300 GB Windows 7 32 Bit
>> P ext2 100 MB /boot
>> E
>> L swap 2 GB Linux swap
>> L ext4 250 GB Ubuntu Linux 9.10 (Karmic) 32 Bit
>> L ntfs 1100 GB data (for data exchange and storage)
>> L ext4 48 GB spare space for testing of new OSes
> I have applied the partition table mentioned above. Windows 7 Disk
Management Tool does not allow to create an Extended Partition on the
third Primary partition slot. Thus I used the Ubuntu installer to do it.
At first I tried to install GRUB2 from Ubuntu 10.10 (Lucid), but the
error message remains :-( Then I tried GRUB1 and succeeded, luckily.
Probably there is a problem with the sector offset or the data partition
is too large for GRUB1 to skip over. It is > 1 TB. In the actual scheme,
the 1.1 TB data partition comes after the root partition (where GRUB is
installed).
> After a kernel update I have to call 'update-grub' manually, but I am
> happily doing this, it is only a minor glitch of Ubuntu 9.10.
> If there is a new version of GRUB2 which supports dmraid devices, I
happily test it. Maybe it is only a configuration issue, as GRUB2 has
become quite flexible.
If you would like to test GRUB2 without installing it on the MBR, you
can do that. Assuming that your drive is /dev/sda, you can try:
grub-install --grub-setup=/bin/true /dev/sda
This creates the files needed by your system in /boot/grub. You can now
backup your /boot/grub/grub.cfg and try this instead:
### grub.cfg
set default=0
set timeout=15
insmod ext2
set root=(hd0,3)
menuentry "Ubuntu, with Linux 2.6.31-14-generic" {
search --no-floppy --fs-uuid --set \
9f8c8d2f-0f67-454c-aec0-affd8fa02fe9
linux vmlinuz-2.6.31-14-generic \
root=UUID=9f8c8d2f-0f67-454c-aec0-affd8fa02fe9 ro
initrd initrd.img-2.6.31-14-generic
}
menuentry "Windows 7 (loader) (on /dev/mapper/isw_bfacafefej_Volume01)"
{
insmod ntfs
search --no-floppy --fs-uuid --set 022834062833f6ef
chainloader +1
}
### end grub.cfg
I took the entries above from your original post. The continuation
lines should work, but I haven't tried that. I didn't want them to wrap
in this post. Note that since /boot/grub is a separate partition, we
omit '/boot' from the start the linux and initrd lines.
Now if you reboot to grub legacy, you can drop to the grub command line:
grub> root (hd0,3)
grub> kernel /grub/core.img
grub> boot
If it works, great. If not a simple reboot gets you back to grub legacy
without changing the MBR.
To install GRUB2 on the MBR, just:
grub-setup /dev/sda
Note that this procedure bypasses the distro setup. If you update the
OS automatically, the distro will probably overwrite the grub.cfg file
when it runs grub-mkconfig, possibly via the grub-pc script.
-- Bruce
next prev parent reply other threads:[~2009-12-24 6:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 17:02 How to install grub on fakeraid (raid 0) which spans 2 TB? "André Heynatz"
2009-12-22 17:24 ` Felix Zielcke
2009-12-22 17:58 ` "André Heynatz"
2009-12-22 18:01 ` Bruce Dubbs
2009-12-23 23:05 ` "André Heynatz"
2009-12-24 0:57 ` Bruce Dubbs
2009-12-24 1:30 ` Seth Goldberg
2009-12-24 5:37 ` Bruce Dubbs
2009-12-24 6:12 ` Seth Goldberg
2009-12-24 6:39 ` Bruce Dubbs
2009-12-24 6:47 ` Seth Goldberg
2009-12-24 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-24 1:59 ` "André Heynatz"
2009-12-24 6:08 ` Bruce Dubbs [this message]
2009-12-24 22:07 ` Robert Millan
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=4B33056C.7060102@gmail.com \
--to=bruce.dubbs@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.