Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work



Enrique Perez-Terron wrote:
> >> I don't know what "device.map" is. I've never heard of it. Oh - it's
> >> some grub thing. yes, now THERE you can see what the mapping is! DON'T
> >> CHANGE IT.
>
> Oh, yes sir! It has to change.

[snip]

> But your *original* setup of grub got hosed because the devices.map
> file was wrong. Once the devices.map is right, just run the command
>
> grub-install /dev/hdc1

Thanks. To recap:

* The HD with Windows on it is definitely hde, since I can access the
FAT partition on that disk at /dev/hde6.
* The HD with Linux on it is definitely hdc, as I can see with mount or
df.
* The BIOS boots from the Win HD.
* As grub numbers HDs in boot order, the Win HD is (hd0) and the Linux
HD is (hd1).
* Hence, (hd0) should be hde, and (hd1) should be hdc.
* The original installation of grub, as performed by anaconda, the
Fedora Core installer, gets it wrong. In the device.map file created by
anaconda, (hd0) is mapped to hdc, and (hd1) is mapped to hde.
* As per the grub documentation, as well as your post, I changed
device.map:
(fd0) /dev/fd0
(hd0) /dev/hde
(hd1) /dev/hdc
* grub is installed on the /root partition, which is the first
partition on hdc: hdc1, or (hd1,0) in grub notation.
* I make sure that in grub.conf, I use the correct references. Also, I
get rid of the LABEL:
title Fedora Core
root (hd1,0)
kernel /vmlinuz-2.6.5-1.358 ro root=/dev/hdc2
initrd /initrd-2.6.5-1.358.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
* I run "grub-install /dev/hdc1".
* I copy the boot record to a file: "dd if=/dev/hdc1 of=linuxboot.bin
bs=512 count=1".
* I boot to XP, put this linuxboot.bin on C: and add the line
"C:\linuxboot.bin="Linux" to boot.ini.

Now when I boot the machine, and choose "Linux", I get a black screen
with the word "GRUB" in the upper left corner, followed by a blinking
cursor. Nothing else happens...

> Then boot back into XP and run, what was it, BootPart? get that
> boot sector from the start of /dev/hdc1 (how is it called in
> that BootPart program?) into the file you specified in boot.ini.
> C:\Linux.bin, was it?

Now that I have a FAT partition on my Win HD, I don't need BootPart
anymore. In BootPart, I used to give the command "bootpart", which
lists all the partitions, giving each an ID, after which I'd say
"bootpart 0 C:\linuxboot.bit "Linux"" (if 0 was the ID of the /boot
partition).

> Oh, yes, tell us if it works, I recently heard of this technique,
> with the boot sector copied to a file and specified in boot.ini,
> but I have not tried it myself.

No luck so far...

> Mm, just in case, do not confuse
> the sector at the start of /dev/hdc and the sector at the start
> of /dev/hdc1. Both places can hold a Grub boot sector, you
> specify which in "grub-install /dev/hdc1".

I got that right. There must be something else that's wrong.

--
Garmt de Vries.

.



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)