Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: g.devries@xxxxxxxxxx
- Date: 15 Dec 2005 00:03:57 -0800
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.
.
- Follow-Ups:
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: Enrique Perez-Terron
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: Eric Moors
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- References:
- Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: g . devries
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: Peter T. Breuer
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: g . devries
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: Peter T. Breuer
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: g . devries
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: Eric Moors
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: g . devries
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: Peter T. Breuer
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: g . devries
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: Peter T. Breuer
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: g . devries
- Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- From: Enrique Perez-Terron
- Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- Prev by Date: Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- Next by Date: Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- Previous by thread: Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- Next by thread: Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesn't work
- Index(es):
Relevant Pages
|