FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two SATA HDDs and have XP on one hdd and fedora on the other i boot from fedora, i am trying to use grub on my fedora hdd to boot xp too but it wont happen, help needed
[root@localhost ~]# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3187 25599546 7 HPFS/NTFS
/dev/sda2 3188 3827 5140800 5 Extended
/dev/sda5 3188 3827 5140768+ 7 HPFS/NTFS
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 83 Linux
/dev/sdb2 26 50 200812+ 83 Linux
/dev/sdb3 51 703 5245222+ 83 Linux
/dev/sdb4 704 9729 72501345 5 Extended
/dev/sdb5 704 964 2096451 82 Linux swap / Solaris
/dev/sdb6 9534 9729 1574338+ 7 HPFS/NTFS
You may need the chainloader statement for windows.
Here is an example:
...
#boot=/dev/hda2
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,1)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda3 hdc=ide-scsi
initrd /initrd-2.4.7-10.img
title Windows 2000
rootnoverify (hd0,0)
chainloader +1
did you do that "fdisk -l" from the installed Fedora?
Are you telling the BIOS to boot from the Fedora drive?
If you boot from the Fedora drive, then it should show up as sda, not sdb (I think)...
However, if Fedora boots correctly, then that means the Windows drive is seen as #2. Your root (hd1,0) line is correct, but you also need the map command to trick the system into thinking Windows in on #1. And you need the chainloader command.
Try this:
Quote:
title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
makeactive
boot
Also, I would remove the boot flag from the Fedora partition. Linux doesn't use it, and it is conceivable that it could confuse Winodws.
I don't believe this is correct. "(hdX,Y)" is a GRUB designation for partitions---it is independent of the filessystem or OS on the partition.
Right, but GRUB drive order and fdisk drive order should be identical, one drive is primary, the other secondary (or master/slave, whathaveyou).
So it looks like his Windows drive section is referencing the wrong partition, because Windows is likely to be on one of the NTFS partitions. If I had to guess, (hd0,1) looks like the ticket.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.