[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing the MBR for a dual-bootup system



On Tue, 2006-10-17 at 22:36 +0200, Andreas Glaeser wrote: 
> On Tue, 2006-10-17 at 06:48 +0200, jdkaye10@yahoo.es wrote:
> > Andreas Glaeser wrote:
> > 
> > > On Sun, 2006-10-15 at 18:17 +0200, jdkaye10@yahoo.es wrote:
> > >> Hi all,
> > >> I am running Debian Etch 2.6.15-1-686 on an Asus motherboard with an
> > >> AMD64 chip. Etch is running on /dev/hda. I wanted to try out the 64bit
> > >> kernel so I installed a second HD /dev/hdb and installed Sid amd64 from
> > >> scratch. I didn't want to get involved in chroot type stuff which is why
> > >> I did it this way. Both systems use grub but the MBR is pointing to
> > >> /dev/hdb for the menu.1st file. When I upgraded the kernel on the Etch
> > >> 686 system of course I had to copy the newly created menu.1st item from
> > >> Etch to the menu.1st file on Sid amd64 in order for it to show up on the
> > >> grub menu on bootup. That was ok for a while but now I'm getting disk
> > >> errors on /dev/hdb. I can still boot into Etch ok but I would like to
> > >> change things so that the MBR looks at /dev/hda instead of /dev/hdb. I
> > >> may have to replace the hdb drive if reformatting and reinstalling Sid
> > >> amd64 don't clear up the problems.
> > >> 
> > >> Can someone tell me how to tell grub to ignore /dev/hdb and look at
> > >> /dev/hda for the bootup menu?
> > >> Thanks in advance for any advice.
> > >> Jonathan
> > >> 
> > > Maybe ´grub-install --root-directory=/dev/hda /dev/hda´ has the desired
> > > effect.
> > > 
> > > 
> > > Regards
> > Thanks for that Andreas,
> > I'll give it a try and let you know if it works. I also created a grub boot
> > disk with stage2_eltorito on it. Would it be better to try it from there?
> > Cheers,
> > Jonathan
> > 

Dear Jonathan,
after I thought about your problem for a while, it came to my mind, that
my first advice was not correct and you rather might succeed when you
try 
´grub-install --root-dir=/dev/hdax /dev/hda´,
where x is the number of the partition, that contains / and /boot. It
might be necessary to mount the /-partition first and then refer to it
with --root-dir=/mnt/hdax (e.g. when operating from a live-or rescue
CD). Alternatively simply boot into the System on hda, if possible, and
just ´grub-install /dev/hda´.
This way the Grub images should be installed to the actual /- directory.
Perhaps someone else on this list can give better advice without
guessing.

Greetings,
Andreas
-- 
Andreas Glaeser <aglaeser@arcor.de>



Reply to: