From: Michael Hirsch <mdhirsch@gmail.com>
To: grub-devel@gnu.org
Subject: installing grub to another disk
Date: Thu, 14 Apr 2005 15:33:11 -0400 [thread overview]
Message-ID: <9c2aabaf05041412337e37fb63@mail.gmail.com> (raw)
I'm confused as to how to install grub on a disk residing in one place
in the drive order so that it can boot later from another place in the
drive order. Hmm--that sounds confusing. Let me explain.
Here's my situation. I'm writing a disk duplicator. Suppose the disk
to duplicate is /dev/hda to linux or (hd0) to grub, and I want to
duplicate it to a new drive located at /dev/hdc (hd2). After the
duplication process I expect to be able to take the new drive out,
stick it in another system as /dev/hda (hd0) and boot it up.
I can do all the partitioning and copying, but I'm not sure how to
install grub on the new drive. It is something like "grub-install
/dev/hdc" but I'm worried that when it actually tries to boot it will
look for stage2 in /dev/hdc but it is now in /dev/hda.
When I did something similar with lilo I could pass lilo some
parameters to tell it that the drive now at hdc will be at hda when
boot time comes along. Does grub offer something similar? Or do I
even need to worry about this? I can't quite figure out from the docs
whether this will be a real issue or not.
I hope I've made myself clear--it is a somewhat confusing situation.
Please ask me for any clarifications.
Thanks,
Michael
reply other threads:[~2005-04-14 19:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=9c2aabaf05041412337e37fb63@mail.gmail.com \
--to=mdhirsch@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.