From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DMA5n-0001yj-HR for mharc-grub-devel@gnu.org; Thu, 14 Apr 2005 15:33:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMA5k-0001y5-2K for grub-devel@gnu.org; Thu, 14 Apr 2005 15:33:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMA5g-0001wW-W7 for grub-devel@gnu.org; Thu, 14 Apr 2005 15:33:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMA5g-0001vh-KQ for grub-devel@gnu.org; Thu, 14 Apr 2005 15:33:28 -0400 Received: from [64.233.184.195] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DMA65-0000BU-TE for grub-devel@gnu.org; Thu, 14 Apr 2005 15:33:54 -0400 Received: by wproxy.gmail.com with SMTP id 36so602845wra for ; Thu, 14 Apr 2005 12:33:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=H9i6boikqt6uCjWT3ZZf/7mcsXymhXtP8PCqZ3GL9w8X00V3r6djS3rQsSEudkYWVxk8R8YuPYnYOIvOb61ikFEgwFNbgzQHmyxNNYqHqKjFMg3JdlJZcdQBYa0y4DVE+DGq3p7Qv0G46vNMHokANvAACbEPOHl5PmX1XeJ6f84= Received: by 10.54.94.4 with SMTP id r4mr167899wrb; Thu, 14 Apr 2005 12:33:12 -0700 (PDT) Received: by 10.54.8.13 with HTTP; Thu, 14 Apr 2005 12:33:11 -0700 (PDT) Message-ID: <9c2aabaf05041412337e37fb63@mail.gmail.com> Date: Thu, 14 Apr 2005 15:33:11 -0400 From: Michael Hirsch To: grub-devel@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: installing grub to another disk X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2005 19:33:34 -0000 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.=20 Please ask me for any clarifications. Thanks, Michael