Re: How to move the master boot record?
On Friday 29 June 2007 15:33:09 Rodolfo Medina wrote:
> Rodolfo Medina <rodolfo.medina@gmail.com> wrote:
> >> In my computer the master boot record is installed in /dev/hda6.
> >> Suppose I want to move it and have it installed in /dev/hda9: is it
> >> possible, and how?
>
> "Russell L. Harris" <rlharris@oplink.net> writes:
> > There is only one master boot record per drive. hda6 and hda9 are two
> > partitions of the same drive, namely, drive hda.
> >
> > Perhaps you mean that hda6 is the "/boot" partition, and you wish
> > /boot to be hda9 ?
> >
> > You need to provide us with more information.
>
> Yes, you're right, I'll try to better explain myself.
>
> On my PC, besides the swap partition, I have one partition, hda1, for MS
> Windows and another five for Linux: hda6, had7, hda8, hda9, hda10.
>
> At the moment the `boot partition' is hda6 and I want it to be, say, hda9.
> Sorry if I can'y use the right words. Maybe I should say that the hda6
> Grub boot loader is now installed to the master boot record of my hard
> drive whereas the hda9 boot loader is installed to the /dev/hda9 partition?
>
There are more than one way to do this, but this will (should) work:
#grub
grub>root (hd0,8)
grub>setup (hd0)
grub>quit
hd0,8 = /dev/hda9, so you should be alright with those command. Note that the
# and the grub> are the prompts.
> I want to do so beacuse: now I'm still using Debian Sarge, which is
> installed in hda6; I want to install Debian Etch in hda9; then when I'm
> sure that everything is all right with Etch I want to boot from hda9, so
> hda6 can be formatted again.
>
> I hope that now it is clear enough what I want.
>
> Thanks for any help
> Rodolfo
Reply to: