Re: grub question



Timothy Murphy a écrit :
François Patte wrote:

Bonjour,

I have two HD (sda sdb) and grub installed on the sda MBR.

I want to install grub on the sdb MBR because the system is installed on
the sdb HD.

At this time, sdb is formatted like this:

/ on sdb1

the remaining of this drive is a part of a lvm gathering this remaining
and a 3rd disk (sdc)

sda has an extended linux partition with / on sda5 and /boot on sda6
this disk was used in a previous install and is no more in use now,
except the MBR and the grub.conf file which located in /boot/grub (on
sda6).

I want to re-format this sda to use it for backups and some other
things, so I have to move the grub.conf somewhere else (/boot/grub on
sdb1).

How can I proceed?

I don't really see any problem.
There are 2 bits of grub;
the actual loader which normally goes in the MBR,
and the support files.
You could install grub in the sdb MBR,
provided your BIOS allows you to boot from sdb.
(You will be offered a choice if you go into the BIOS at boot time.)

But there is no reason why you should not have grub in the sda MBR
and /boot with the grub support files on sdb.

I suppose that what you call "support files" is the /boot/grub/grub.conf
isn't it? So how do I tell grub, installed in the sda MBR to query its
configuration file in /boot/grub which is located in sdb1?

Thanks.

--
François Patte
Université Paris 5 - Paris
.



Relevant Pages

  • Re: GRUB, MBR and NTLDR confusion
    ... that GRUB can be loaded on to the boot partition instead of the MBR ... What you want is to install it to the MBR of /dev/hda. ...
    (Ubuntu)
  • Re: Retaining windoze when replacing 9.0 with 9.1?
    ... > My concern is the MBR. ... If grub has been working fine, up 'til now, leave it alone. ... the new install, don't erase the /grub directory on the boot partition, ... When I install a new OS, I never mount the boot partition, and install ...
    (alt.os.linux.suse)
  • Re: [opensuse] device.map - Darryl/Carl/Boyd
    ... > doing a restore or recovery of the XP installation. ... someone suggested a nice simple how-to to fix the mbr ... I could ask a question of the OP, did you have grub write to the MBR ... install and then re-booted, and it went into XP without showing the Grub ...
    (SuSE)
  • Re: GRUB problem: Booting Linux from USB Disk
    ... The reason modifying things to install GRUB (stage1) onto the MBR ...
    (comp.os.linux.misc)
  • Re: grub question
    ... I have two HD (sda sdb) and grub installed on the sda MBR. ... I want to install grub on the sdb MBR because the system is installed on ...
    (comp.os.linux.setup)