linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Doug Ledford <dledford@redhat.com>
To: "Timothy D. Lenz" <tlenz@vorgon.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: converting to raid - Error 2
Date: Wed, 05 May 2010 19:57:24 -0400	[thread overview]
Message-ID: <4BE205E4.8090308@redhat.com> (raw)
In-Reply-To: <4BE1B489.1050906@vorgon.com>

[-- Attachment #1: Type: text/plain, Size: 2697 bytes --]

On 05/05/2010 02:10 PM, Timothy D. Lenz wrote:

>>> grub>  setup (hd0)
>>>   Checking if "/boot/grub/stage1" exists... yes
>>>   Checking if "/boot/grub/stage2" exists... yes
>>>   Checking if "/boot/grub/e2fs_stage1_5" exists... yes
>>>   Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  15 sectors are
>>> embedded.
>>> succeeded
>>>   Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p
>>> (hd0,0)/boot/grub/stage2 /boot/grub/menu.l
>>> st"... succeeded
>>> Done.
>>> ---------------------------------------

>> Normally sda would be the one I would use, but sda1 would work as long
>> as you have a normal DOS master boot record on the drive.
>>

A normal DOS master boot record is one that resides in the master boot
record of the drive and that knows to chain load the next boot sector
from the first sector of the partition that's marked active.  So, if you
install a boot loader on sda1, you have to have the normal DOS master
boot record in the master boot record of the drive.  Once you install
grub on the bare drive (aka, on sda instead of sda1), you wipe out any
other boot loader in the master boot record and replace it with a grub
master boot record.  So, at this point you probably don't have a normal
DOS master boot record (unless the grub one suffices but I don't think
it does) and will need to make sure to install whatever new boot loader
you install to sda versus sda1 or else it won't overwrite the previous
grub master boot record.

> I was thinking making one more try, but ether using su instead of sudo
> or just logging in as root as some stuff doesn't seem to work with sudo.
> Need to find the time when I'm home long enough with no interruptions to
> try it:).

Sudo versus su versus logging in as root shouldn't matter as long as
whatever command you are running doesn't come back with some sort of
error message.

> Before I try the manual install, do you know what the "1+15 p" is in the
> install line the auto system did?

Prior to the install line that the setup macro does, it embedded the
e2fs_stage1_5 on the disk between the partition table and the start of
the first partition.  The (hd0)1+15 means to load sectors 1 through 15
of (hd0) as the next stage in the boot loader.  The p is separate and
merely means patch the block list for the next part of the boot loader
into the previous part.  It can be omitted as grub does this anyway
based upon the number of stages you specify.

-- 
Doug Ledford <dledford@redhat.com>
              GPG KeyID: CFBFF194
	      http://people.redhat.com/dledford

Infiniband specific RPMs available at
	      http://people.redhat.com/dledford/Infiniband


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2010-05-05 23:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 20:41 converting to raid - Error 2 Timothy D. Lenz
2010-04-30 20:53 ` Doug Ledford
2010-04-30 21:58   ` Timothy D. Lenz
2010-05-05 16:25     ` Doug Ledford
2010-05-05 18:10       ` Timothy D. Lenz
2010-05-05 23:57         ` Doug Ledford [this message]
2010-05-06  3:49           ` Timothy D. Lenz

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=4BE205E4.8090308@redhat.com \
    --to=dledford@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=tlenz@vorgon.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 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).