Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

I've been trying to get Grub 2 to work on a desktop system I'm trying to install Karmic Koala on. It's currently got two similar hard drives, which I've partitioned into a small /boot partition and the rest as a large general partition. Both are fd (linux software RAID) types.

I boot from the Ubuntu live CD then create the RAID arrays as RAID 1 (requires installing mdadm to work). Then I start the arrays and begin the install.

I select manual partitioning and create the first RAID array (/dev/md0) as an ext4 /boot.

The second array (/dev/md1) requires a new partition table. I then partition it as 20G for /, 2G for swap and the rest as /home, giving me /dev/md1p1, /dev/md1p2 and /dev/md1p3.

When the install finishes, I mount the various partitions in /mnt (for /dev/md1p1) and below, including binding /dev and /proc. Then I chroot and install mdadm in the new system. I update grub, re-install it on /dev/sda & /dev/sdb then update the initramfs.

A quick reboot and things go wrong... Grub boots me into a recovery console. Apparently it can't see the partitions in the second RAID array.

Anyone have any ideas on how to get Grub 2 and/or mdadm to work in this situation? I know that apart from the RAID, the above process worked to allow me to set up a Grub 2 boot on an antique laptop with an incomplete install.

TIA

Last edited by garydale; 02-22-2010 at 12:27 PM.
Reason: to mark title as solved

Further to the question. Apparently the issue is that mdadm hasn't started when grub is trying to start up. If I manually run "mdadm --auto-detect" from the grub recovery console, then exit, the boot resumes properly and everything is fine.

Further to the question. Apparently the issue is that mdadm hasn't started when grub is trying to start up. If I manually run "mdadm --auto-detect" from the grub recovery console, then exit, the boot resumes properly and everything is fine.

Does anyone know how to get mdadm to start early?

Seems related to the above .. anybody shed some light on my plight?

I am running ubuntu 9.10

Re: RAID Grub rescue HELP

anybody have idea to make this work on RAID1 I wish to have grub2
menu to boot md126 (sda6/sdb6) ... this was working but something happened ... do I need to install grub2 again and how do I do that
with RAID1??? Do I need to use gpart that is raid aware? And if so what
do i specify?

install was done with alternate installer

at grub rescue>
help does not work ... ls
produces
(md124)(md1)(md126)(md127)(hd0) (hd0,7)(hd0,6)(hd0,5)(hd0,3)(hd0,1)(hd1)(hd1,7)(hd 1,6)(hd1,5)(hd1,1)

i want md126 to boot that was paired with (sda6/sdb6) md126 and has / ... (sda7/sdb7) md127 is /home

=> Grub 2 is installed in the MBR of /dev/sda and looks for (md126)/boot/grub.
=> Grub 2 is installed in the MBR of /dev/sdb and looks for (md126)/boot/grub.
=> Windows is installed in the MBR of /dev/sdh

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###