Fedora - InstallationThis forum is for the discussion of installation issues with Fedora.
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 am having quite a strange problem with my duel boot of windows XP/Fedora 2. The GRUB loader can load Fedora without any problems, but when I try to load windows XP, it outputs the grub commands and then hangs. I have two hard drives, the master has the /boot
When I installed linux, I used the command "linux hdc=116301,16,63" to avoid the known bug.
My windows is installed into /dev/sda5 (Not quite sure why, but windows decided it wanted to go there when I told it to use all the free space left on the sda hard drive. /sda2 was already defined, but /sda1 wasn't)
Below are a couple of things that should provide a bit more detail... fdisk -l
Code:
Disk /dev/hdc: 60.0 GB, 60022480896 bytes
16 heads, 63 sectors/track, 116301 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 203 102280+ 83 Linux (/boot)
/dev/hdc2 204 40838 20480040 83 Linux (/root)
/dev/hdc3 * 40839 44901 2047752 82 Linux swap (/swap)
/dev/hdc4 44902 116298 35984088 f W95 Ext'd (LBA)
/dev/hdc5 44902 116298 35984056+ c W95 FAT32 (LBA) (E:)
Disk /dev/sda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 2 1912 15350107+ f W95 Ext'd (LBA)
/dev/sda2 1913 10011 65055217+ 7 HPFS/NTFS (D:)
/dev/sda5 2 1912 15350076 7 HPFS/NTFS (C:)
grub.conf
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdc2
# initrd /initrd-version.img
#boot=/dev/hdc
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$sgCr4pyy$LBsd2X/YznQO0ctsY6lOS.
title Fedora Core (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img
title Windows
rootnoverify (hd1,5)
chainloader +1
device.map
Code:
# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hdc
(hd1) /dev/sda
I imagine i've missed something really obvious, but it is ~3 am in the morning so I have an excuse!
Unfortunately that didn't work. I still have the same problem. I am currently trying to re-install windows and then set up grub. Hopefully second time lucky!
Now I get a "Error loading operating system" when I try to install windows. The first stage where it boots off the CD and copies the setup files to the harddrive works fine. However, when the computer restarts, I get that error message.
Thankfully, running "grub-install" from my recover disk returns good old grub to the control seat and lets me get into Fedora at least.
I'd unplug the IDE drive for your Windows reinstall. I had a similar problem, but it may be for a different reason. The Windows bootloader refuses to work if it's not loaded from certain places.
For example: My case. I was given a hand-me-down with XP (The machine really isn't capable of running it well, but I use it sometimes). I purchased a new HD and made it the primary master. Windows refused to load from the primary slave position. Luckily, GRUB has a command (map) that can trick windows into thinking that it is the primary master just long enough to convince it to load.
I'm not at my home machine at the moment, but the command is something like this inserted before the chainloader command:
map (hda), (hdb)
map (hdb), (hda)
I know that Windows can load from SCSI, but maybe it is refusing to load while there is an IDE hard drive present. Who knows with MS. Good luck.
Originally posted by gd2shoe I'd unplug the IDE drive for your Windows reinstall. I had a similar problem, but it may be for a different reason. The Windows bootloader refuses to work if it's not loaded from certain places.
For example: My case. I was given a hand-me-down with XP (The machine really isn't capable of running it well, but I use it sometimes). I purchased a new HD and made it the primary master. Windows refused to load from the primary slave position. Luckily, GRUB has a command (map) that can trick windows into thinking that it is the primary master just long enough to convince it to load.
I'm not at my home machine at the moment, but the command is something like this inserted before the chainloader command:
map (hda), (hdb)
map (hdb), (hda)
I know that Windows can load from SCSI, but maybe it is refusing to load while there is an IDE hard drive present. Who knows with MS. Good luck.
I want your babies
On a more serious note, this solved my problems first time! I've been battling with windows for the past 30 hours or so, and I have finally made it bend to my will! It seems to be 3am again, but atleast I can sleep happy tonight safe in the knowledge I can duel boot.
well done on fixing the bug but have another look at your fdisk output.
the asterix is what is bootable and you have a bootable hdc3 and a sda1
if you can boot both who cares but if you have trouble with windows you may consider using windows version of fdisk to change the bootable flag for sda5 to ON and turn off sda1 & hdc3
All the bootable flag does is direct the MBR on the disk to boot to that partition. It's like a relay race. The BIOS passes the baton to the MBR, the MBR to the Partition boot sector (of the partition that's marked bootable on it's disk), and the boot sector to the OS.
GRUB replaces much of that. GRUB stage 1 hides in the MBR. Stage 2 is in /boot on one of your partitions. The boot order goes from BIOS to the MBR (aka GRUB stage 1), and then to GRUB stage 2. Stage 2 then gives you the menu and can either pass control to an OS kernel or to a partition boot sector (chainloader).
It's the normal (MS) MBR that looks to the boot flag for direction. I don't believe the flag does anything on a GRUB system (Unless you load your stage 1 in a partition boot sector. Useful, but rare).
This is my understanding. I'm open to correction. Good day!
The Windows MBR (master boot record) cares about the bootable flag. I don't believe there is any other part of Windows that has any reason to care.
Besides, I don't think you can turn the bootable flag completely off, just change the value from one partition to another. It doesn't need to ever be off. If boot control reaches the MBR of a disk, then one of the partitions should hold an OS (or at least another redirect). If it doesn't reach the disk's MBR then the value doesn't matter.
And Windows XP doesn't have a version of fdisk. That functionality has moved to "Computer Management" in the control panel. In fact, I don't think you can monkey with the boot flag, even there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.