Re: Help with GRUB

From: Kevin Nathan (knathan_at_project54.com)
Date: 09/25/05


Date: Sat, 24 Sep 2005 23:48:14 -0700

On Sun, 25 Sep 2005 05:40:04 GMT
Damien <damien@no.where> wrote:

> On Sat, 24 Sep 2005 14:47:30 -0700, Kevin Nathan
> <knathan@project54.com> wrote:
>
> >> hda is win2k
> >> hdb is SuSE 9.1
> >> hdc is SuSE 9.3
>
> >I would just boot into 9.3, go into YaST Control Center -> System ->
> >Boot Loader Configuration. Make sure it shows all your bootable OSes
> >and then change the boot loader location to the MBR of hda.
>
> Looking at both installation, i see that grub is installed on hdb2
> for 9.1 and hdc2 for 9.3. What if i want to get rid of hda ?
>

GRUB is the boot loader. If it's not in the MBR of the first physical
hard drive, then whatever *is* in the MBR needs to call the appropriate
boot loader. This is how programs such as XOSL and Boot Manager work.

If you were to remove the first hard drive (hda), then hdb would be the
first physical hard drive and whatever was in *it's* MBR would take
over. This could be a problem, of course, since GRUB is probably in the
/boot partition (often the '/' partition) instead of the MBR of that
drive (depending on options chosen during install).

OTOH, if you are just going to get rid of what's on hda and keep it
physically installed otherwise, it wouldn't matter. The MBR is separate
from any OS installed on hda (or hdb, etc.). So, if you setup GRUB on
hda, all you need to do is change the /boot/grub/menu.lst file to
reflect actual OSes on the drives.

> My goal is to get rid of win2k completely.
>

An admirable goal! :-)

> >I seriously doubt it. If you want to get rid of hdb, just remove it's
> >instance in the Boot Loader Configuration (above).
>
> ATM hda is the master on channel 1, hdb is master and hdc is
> slave on the secondary channel.
>

Hm, are you *sure* about that? The way it usually works is:

    First IDE Master = hda
    First IDE Slave = hdb
   Second IDE Master = hdc
   Second IDE Slave = hdd

regardless of whether a drive is physically installed, or not. So, if
you had only one drive and installed it on the second IDE Slave, it
would *still* be hdd and *not* hda . . .

> I'd like to change that, i.e hdc master and hdb slave (in preparation
> for suse 10) and after that move to suse 10 and make hdc or whatever
> disk is suse 10 as the master (on the secondary channel, for now...).
> I know it sounds complicated, is there any easier way to do that ?
>

You are making it *far* too complicated. Simply remember (writing it
down is much better, of course!) where each OS is installed. Then, when
you wipe one to install a new one, just change your notes. Linux really
does *not* care what drives you use or in what order anything is
installed on the drives. You, however, must keep straight where every
thing is. :-)

For example, on my old main box I had:

   hda: SUSE 7.3
   hdb: CDROM
   hdc: /home partition
   hdd: SUSE 8.2

and on my new box I have two hard drives and two optical drives with an
NFS connection back to the old box for the /home dir. After I tested
9.2 on my new box, I installed it on hda of my old box, wiping out 7.3
and keeping the 8.2 just in case. All I had to do was edit
the /boot/grub/menu.lst on hda to reflect the changes. Moving disks
around is just far more trouble than I like to do . . . :-)

> I did not try your method yet, was busy trying to compile nedit 5.5
> using a spec file, having a beer and listenig to music :-)
>

'nedit' is no longer included on the install media? Bummer, it's my
favorite GUI editor! At work I use Slackware and Gentoo and had to
compile nedit. Easy to do -- but why are you trying to compile it with
a spec file? The spec file is only used to create an RPM (or is that
what you're doing?) . . .

> Thanks for your help.
>

You're welcome! If you need any more clarification, just holler! :-)

-- 
Kevin Nathan (Arizona, USA)  
Linux Potpourri and a.o.l.s. FAQ -- http://www.project54.com/linux/
Open standards. Open source. Open minds. 
The command line is the front line.
Linux 2.6.8-24.18-default
 11:02pm  up 16 days 23:49,  13 users,  load average: 0.65, 0.59, 0.48


Relevant Pages

  • Re: Question about Linux
    ... but the non-MS OS's could mount & un-mount drives at will and call the ... >> Linux installation being on a second drive. ... I don't have the array of other Linux install routines on hand to test; ... have it over-write your primary MBR; then proceed; then on the NEXT screen ...
    (linux.redhat.misc)
  • Re: Question about Linux
    ... but the non-MS OS's could mount & un-mount drives at will and call the ... >> Linux installation being on a second drive. ... I don't have the array of other Linux install routines on hand to test; ... have it over-write your primary MBR; then proceed; then on the NEXT screen ...
    (comp.os.linux.setup)
  • Re: Question about Linux
    ... but the non-MS OS's could mount & un-mount drives at will and call the ... >> Linux installation being on a second drive. ... I don't have the array of other Linux install routines on hand to test; ... have it over-write your primary MBR; then proceed; then on the NEXT screen ...
    (comp.os.linux)
  • Re: Close to giving up on Linux...
    ... the linux loader. ... Exactly the symptom you get it if you don't install the boot loader ... That's a choice during the install. ... install the Linux boot loader in the MBR. ...
    (comp.os.linux.misc)
  • Re: Close to giving up on Linux...
    ... the linux loader. ... Exactly the symptom you get it if you don't install the boot loader ... That's a choice during the install. ... install the Linux boot loader in the MBR. ...
    (comp.os.linux.misc)