All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: Making bootable SATA RAID1 array in Mandriva 2006
Date: Tue, 15 Aug 2006 13:48:37 +0200	[thread overview]
Message-ID: <20060815114837.GF21221@percy.comedia.it> (raw)
In-Reply-To: <44E05576.5050604@aol.com>

On Mon, Aug 14, 2006 at 06:50:30AM -0400, andy liebman wrote:
>>>-- I edited fstab and lilo.conf on the the RAID1 "/" partition so that 
>>>they would refer to /dev/md1
>>>-- I ran chroot on the /dev/md1 partition
>>did you mount /dev, /proc and /sys before chrooting?
>>i.e
>>mount --bind /dev /newroot/dev
>>mount -t proc /proc /newroot/proc
>>mount -t sysfs /sys /newroot/sys
>
>Why do I have to do this? I haven't seen this in any "recipies". My 
you need it because mkinitrd will need info from /proc and /sys to work
correctly and lilo will try to access /proc/partitions and /dev/md1 if
your /boot is on /dev/md1.

>Linux setup only has three partitions:   "/", swap, and "/home".
/dev /proc and /sys are not disk based filesystems
/dev is a ram disk which is populated at runtime by udev
/proc and /sys are virtual filesystem that expose some of your hw and
kernel configuration to userspace

>I'm not sure I understand what you're saying about mounting /dev, /proc 
>and /sys.

just run:
mount --bind /dev /newroot/dev
mount -t proc /proc /newroot/proc
mount -t sysfs /sys /newroot/sys
before chrooting

L.
btw, be sure to add "auto=yes" to the ARRAY lines in /etc/mdadm.conf
or you might find some arrays are not recognized after boot.

L.


-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

  reply	other threads:[~2006-08-15 11:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-14 10:50 Making bootable SATA RAID1 array in Mandriva 2006 andy liebman
2006-08-15 11:48 ` Luca Berra [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-16 13:12 andy liebman
2006-08-16 13:18 ` Mark Hahn
2006-08-16 14:35 ` Justin Piszcz
2006-08-16 23:49   ` Nix
2006-08-13 23:51 andy liebman
2006-08-14  8:17 ` Luca Berra
2006-08-14 10:34   ` Henrik Holst
2006-08-14 13:39 ` Laurent Lesage
2006-08-14 14:52   ` andy liebman
2006-08-14 15:13     ` Laurent Lesage
2006-08-15 11:57       ` Luca Berra

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=20060815114837.GF21221@percy.comedia.it \
    --to=bluca@comedia.it \
    --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 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.