Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Grub when intended for another machine [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Akkara
Bodhisattva
Bodhisattva


Joined: 28 Mar 2006
Posts: 6702
Location: &akkara

PostPosted: Tue May 05, 2009 9:09 am    Post subject: Installing Grub when intended for another machine [Solved] Reply with quote

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
View user's profile Send private message
Exil
Apprentice
Apprentice


Joined: 10 Oct 2005
Posts: 251
Location: Nibylandia

PostPosted: Tue May 05, 2009 9:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Akkara
Bodhisattva
Bodhisattva


Joined: 28 Mar 2006
Posts: 6702
Location: &akkara

PostPosted: Wed May 06, 2009 6:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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