View previous topic :: View next topic |
Author |
Message |
Akkara Bodhisattva
Joined: 28 Mar 2006 Posts: 6702 Location: &akkara
|
Posted: Tue May 05, 2009 9:09 am Post subject: Installing Grub when intended for another machine [Solved] |
|
|
Hi!
I'm using a computer running Gentoo to build another Gentoo system on a hard drive that's meant to be installed into another machine. I have everything done except writing the MBR. There is one issue that I'm not sure of how to handle:
The disk I'm setting up is currently on /dev/sdh, which currently shows up as (hd3,0) using grub-notation. But it will be /dev/sda and (hd0,0) once installed in the intended machine.
So I need to set up the MBR on /dev/sdh as if it were (hd0,0) [because that is what it will be when booted], but have it written to (hd3) [which is where it is currently]. Does the manual instructions cover this case? Code: | grub> root (hd0,0) (Specify where your /boot partition resides)
grub> setup (hd0) (Install GRUB in the MBR)
grub> quit (Exit the GRUB shell) |
If I understand, I should keep the first line as-is, but change the 'hd0' in the second line to the current location of the hard-drive, 'hd3'
I'm concerned about the possibilities for mix-up:
- Overwriting the first machine's MBR with the location of stage one on the new hard-drive, rendering this machine unbootable.
- Creating the new machine's hard-drive's MBR using the incorrect (for it) location of stage1 of the old machine, rendering the new drive unbootable.
Last edited by Akkara on Wed May 06, 2009 6:10 am; edited 1 time in total |
|
Back to top |
|
|
Exil Apprentice
Joined: 10 Oct 2005 Posts: 251 Location: Nibylandia
|
Posted: Tue May 05, 2009 9:25 am Post subject: |
|
|
point to correct root (hd3,0) then setup on (hd3)
This is only to tell grub frow where read stages and where to write them.
Remeber to write correct root (hd0,0) in grub.conf/menu.lst
That's it. |
|
Back to top |
|
|
Akkara Bodhisattva
Joined: 28 Mar 2006 Posts: 6702 Location: &akkara
|
Posted: Wed May 06, 2009 6:09 am Post subject: |
|
|
Exil wrote: | point to correct root (hd3,0) then setup on (hd3)
This is only to tell grub frow where read stages and where to write them.
Remeber to write correct root (hd0,0) in grub.conf/menu.lst
That's it. |
That worked very well. Thank you for the answer! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|