Re: Looking for advise on a special grub setup.



Steven W. Orr writes:

I just bought a new 1T SATA drive to add to the mix, and here's what I'd like
to do (but I don't understand how to do it).

I want to add the new drive as a third disk so that the system will continue
to boot off of sda. I'm current;y running F10 in 32 bit mode.

After I add the new drive, it will be seen as sdc, and I will want to install
F12 in 64 bit mode on sdc.

Q0: Can I tell the install DVD to install on sdc and to leave sda alone?

Yes.

Q1: Is it possible to have multiple bootable devices? And how do I do this?

Not easily. You have to have a second copy of grub installed on a partition on the new drive. Not on the new drive's master boot record, but on the first partition. Then, add an entry on your first grub's menu.lst to chain-load the second copy of grub. I don't recall the actual grub voodoo to do this, have to look it up. Essentially you'll initially boot into your first grub menu to boot your existing Fedora install, then select the grub menu entry to boot the second copy of grub, which would boot your second Fedora install.

I'd be surprised if Anaconda could digest this automatically. What I would do is temporary pull sda and sdb, hook up the new sdc, install Fedora on it, and tell Anaconda, during the install, to put grub on the partition.

Then, I'd plug the original drives in, boot the original Fedora install, then frob its grub menu until I get it to work.

Next, after I'm thrilled to death that sdc is how I want it to be, I want to
make a cutover so that sdc will then become the primary boot device. My
understanding is that the four SATA plugs I have on my motherboard are defined
so that one (currently sda) is considered to be the primary device.

Q2: When I do a cutover, do I have to switch the cables on the new sdc and
what is now sda? Will the new drive end up being referred as sda and the now
current sda become sdc?

Generally, the primary drive that's connected to what's considered the first SATA bus on your motherboard becomes sda.

Q3: Is there a grub command I need to run to make the new drive become the
bootable device? Or do I have to then reload from scratch to make it all work?

N/A

Now, for this to have any chance of working, you must use partition labels to:

1) Specify the root device when booting the kernel, and

2) Specify your partitions (which includes the swap partition, if any) in /etc/fstab

You cannot have direct references to /dev/sdc? in menu.lst or in /etc/fstab, because after you swap out the existing drive, the new drive becomes /dev/sda. I think that current Anaconda uses labels by default, if not you'll have to manually fix it up. Additionally, before the swap, you'll have to replace all refernces to (hd2,x) to (hd0,x) in menu.lst, on the new drive, in order for grub to figure things out. Note that some of this stuff may require manually rerunning /sbin/grub-install.

Attachment: pgpEhItK7DyNB.pgp
Description: PGP signature

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Relevant Pages

  • Re: RAID1 all bootable
    ... GRUB was installed on /dev/sda ... how to install safely GRUB on both disks of a RAID1 is a must. ... Is this recipe devised for installing grub on both sda and sda with an ... You can boot the install disk in rescue mode, ...
    (Debian-User)
  • Re: chainloader +1, again
    ... I started an install of f12 on what is /dev/sdb here, ... There is a grub installed on the first drive and the 4th drive, ... been booting the 4th drive by copying its vmlinuz etc to the first drives ... but that could be leftovers from the old mint install FAIK. ...
    (Fedora)
  • Re: Fedora vs. Ubuntu (hijacked: can I dual boot FC and Kubuntu?)
    ... When you install say FC5 and then Ubuntu on the same drive ... the last one in will tend to "take over" GRUB, ... Making GRUB "point" back to the original partition means ... "root (" and then press tab you can see the drives available (should ...
    (Fedora)
  • Re: Strange Optical drive problem
    ... Grub with, combined_mode=libata? ... It's not the first time that I've seen using LiLo instead of Grub, ... I'll try to find out how to install LiLo instead of Grub. ... CD drives just work these days. ...
    (Ubuntu)
  • Re: Reconfigure to boot from extended partition?
    ... about the "bootable" flag on the partition table, ... you can install either grub or lilo on the superblock of a partition, ... I managed to rip out the drives from my old 450Mhz Compaq ...
    (Ubuntu)