Re: Dual boot question



On Sat, 07 Jan 2006 00:03:41 +0100, Peter T. Breuer <ptb@xxxxxxxxxxxxxxx> wrote:

Alan Adams <alan.adams@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
[snip]
> I have a bootable grub floppy. I don't understand how to use it.

Read about it using the command "info grub".

Basicly, you can boot your system using the floppy, without relying on any
mbr setup, or you can do the setup of the mbr.

Boot like this:

(insert the floppy and boot. You get a prompt "Grub> ")

  Grub> find /boot/grub/grub.conf
  (hd0,6)

This tells you have a partition in disk 0, seventh partition (numbering
starts at 0) that contain a file named /boot/grub/grub.conf.  Now that
you know what partition to boot from, issue this command:

  root (hd0,6)

and then

  cat /boot/grub/menu.lst

This allows you to see the name of the kernel file, and the kernel
command line options. Now you can simply copy the commands as you  see
them in the file (finish off with the command "boot"), or even simpler,

  configfile /boot/grub/menu.lst

will give you the standard menu, as configured in the config file.  Just
use the arrow keys to highlight the stanza you want, and hit enter.

If you don't have a working config file, you can directly issue the
commands that you would have put in the config file.  If you don't
remember the details of the linux kernel's file name, use "tab
completion":

  root (hd0,6)
  kernel /boot/<TAB>

You will see a list of files in /boot.  You get no help from Grub to fill
in any kernel command line options. You usually need "root=/dev/hda7".

  initrd /boot/...
  boot

The second thing you can do with the boot floppy is to "setup" the mbr.
You need to start as above, to make sure which is the partition that
contains the grub files and the kernel(s).

  root (hd0,6)
  setup (hd0)

The last command without a comma and partition, just the disk.  If you
actually want to have the dos/windows mbr there, you can specify a
partition, to have grub place the boot sector there. (Notice that the
first partition starts usually in sector 63, so the MBR does not belong
to any partition.)  After booting into linux, you use "dd" to extract
512 bytes from the start of the partition, and into a file.  Copy this
file somehow to the Windows partition, and name it in the boot.ini.
That will let you chainload grub after first starting ntloader.

[snip]
  * Creating a GRUB boot floppy::
  * Installing GRUB natively::
  * Installing GRUB using grub-install::

Let's try number two. Well, willya lookit thet. Just what I said:

Native, that is what you do when *not* running grub under linux. Grub must be started directly from the bios, using the grub floppy or after grub has been setup, by escaping out of the grub boot menu.

  grub> setup (hd0)


Now you try.

You need the "root (hd0,6)" command first, to tell where the grub files and the kernels are.

You can do the setup while running linux. Then you are adviced to use
"grub-install".  Just "grub-install /dev/hda".  There are a few scenarios
where grub-install gets it wrong, if there are multiple disks, and an
unexpected one has been set up in the bios to be the boot drive.
This does not seem to be the case here, so this command should work.

-Enrique
.



Relevant Pages

  • fixing grub : mbr fix when windows install after linux
    ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
    (comp.os.linux.misc)
  • Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesnt work
    ... grub is installed on the /root partition, which is the first partition on hdc: hdc1, or in grub notation. ... Stage1 is the unpatched 512-byte file, that is patched and copied to the boot record during setup. ... This byte is initialized to 0xff in the stage1 file, but patched to 0x81 in your setup, to say "we are booting from disk." ...
    (comp.os.linux.setup)
  • Re: [opensuse] Yast & Grub bootloader different.
    ... My Grub bootup menu is different than the bootloader ... that shows up on the logon screen aat boot time. ... any boot loader for that matter, can only operate on one /boot partition at ... Grub doesn't scour the all hard drives on each install ...
    (SuSE)
  • Re: [Fwd: Re: [opensuse] Boot magic]
    ... Since I installed some milestones I can no longer boot the partition I want. ... I installed on part3 milestone 6 with its own boot directory in the rootdir. ... I only use the milestone 6 grub environment against my will. ...
    (SuSE)
  • Re: Boot manager for Windows only
    ... And also is GRUB capable of booting any ... > Windows partition or will it always hand over to the XP boot loader? ...
    (comp.os.linux.setup)