From: NeilBrown <neilb@suse.de>
To: Gavin Whitehead <gavin@alabastercranium.demon.co.uk>
Cc: linux-raid@vger.kernel.org
Subject: Re: partition based raid1 and multi boot Ubuntu/Xubuntu
Date: Wed, 23 Nov 2011 09:45:16 +1100 [thread overview]
Message-ID: <20111123094516.16d73e97@notabene.brown> (raw)
In-Reply-To: <4ECC20C4.6050504@alabastercranium.demon.co.uk>
[-- Attachment #1: Type: text/plain, Size: 2580 bytes --]
On Tue, 22 Nov 2011 22:23:00 +0000 Gavin Whitehead
<gavin@alabastercranium.demon.co.uk> wrote:
> I'm not sure if this is a GRUB2 problem or a RAID/MD issue but here goes...
>
> I want to set up a machine that will boot two Linux installations using
> raid 1 partitions and Windows XP on a single partition.
>
> I have two identical disks partitioned as follows
>
> $ cat /proc/partitions
> major minor #blocks name
>
> 8 0 244198584 sda
> 8 1 30720000 sda1
> 8 2 30720000 sda2
> 8 3 40960000 sda3
> 8 4 1 sda4
> 8 5 4194304 sda5
> 8 6 137601024 sda6
> 8 16 244198584 sdb
> 8 17 30720000 sdb1
> 8 18 30720000 sdb2
> 8 19 40960000 sdb3
> 8 20 1 sdb4
> 8 21 4194304 sdb5
> 8 22 137601024 sdb6
>
> I installed WinXP first in sda3.
>
> I then installed Ubuntu 11.04 from the Alternate CD and created some
> raid1 devices
> md0 sda1 sdb1 /
> md1 sda5 sdb5 swap
> md2 sda6 sdb6 /home
>
> I set the boot flag on sda1 and sdb1.
> This worked a treat. I could boot in to either Ubuntu 11.04 to WinXP.
> I tested the RAID1 (power down, unplug a disk, power up, power down,
> replug the disk, power up, use 'mdadm --add' to rebuild the array).
> Brilliant.
>
> Then I installed Xubuntu 11.10 from the Alternate CD. For this install
> I created one new raid1 device (md3) and reused md1 and md2
> md3 sda2 sdb2 /
> md1 sda5 sdb5 swap
> md2 sda6 sdb6 /home
>
> I set the boot flag on sda2 and sdb2.
>
> After the install had completed and grub2 had built the grub.cfg I only
> had my new Xubuntu 11.10 in the boot menu. The Xubuntu 11.10 install
> works perfectly (and I can boot in to Win XP) but I can't boot in to the
> Ubuntu 11.04 installation. I've re-run 'update-grub' but it doesn't
> find the other installation.
>
> If I run 'sudo mount /dev/md0 /mnt' I can access the Ubuntu 11.04 files.
>
> Is my intended configuration (tri-boot with two raid1, partition based,
> Linux installations and XP on a single parition) unachievable?
>
I would just dive into grub.cfg with an editor and make it work.
These wonderful "automatically make a config file for you tools" certainly
have a place, but there is a reason that config files are plain text files
and that reason is emacs (or possible vim).
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2011-11-22 22:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 22:23 partition based raid1 and multi boot Ubuntu/Xubuntu Gavin Whitehead
2011-11-22 22:45 ` NeilBrown [this message]
2011-11-23 21:04 ` Gavin Whitehead
2011-11-24 11:54 ` Gordon Henderson
2011-11-24 13:16 ` Gavin Whitehead
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=20111123094516.16d73e97@notabene.brown \
--to=neilb@suse.de \
--cc=gavin@alabastercranium.demon.co.uk \
--cc=linux-raid@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).