FC5 / WinXP DualBoot 2HDs Grub won't load
#1
Posted 24 July 2006 - 02:58 AM
Also, FC5 sees my XP drive and vice versa, but neither can read data from the other. This doesn't surprise me with Windows (which is partly why I'm migrating), but what do I need to do to set up FC5 to read my Windows data?
Intel D915GAV w/ P4 3G
IBM Deskstar IDE 40GB HD (Linux)
Seagate SATA 120GB HD (Windows)
Does anybody know what I should try next? Thanks
#2
Posted 24 July 2006 - 06:59 AM
You installed Fedora using all the default settings, which placed Grub on the IDE drive, not your boot drive. Fedora assumes you want grub installed on the drive that you install it to, unless you tell it otherwise.
If you previously partitioned all your drives with Windows, or used the nTFS filesystem, this could have been your problem.
You can actually use windows itself to make free space on the Windows drive, so Fedora will install on it. However, you already have Fedora on the second drive and I suggest that you try to get this going correct first.
Windows does not read Linux partitions natively.
Fedora will read NTFS partitions, with a package installed to do so after the installation. However, writing to NTFS volumes is not fully supported yet, so don't expect this.
Fedora reads fat32 partitons natively.
I'm just starting to complete an article on the whole subject, but it is not finished yet. However, you can read it here. Part of the article will answer, or attempt to answer your questions. Remember, this is a work on progress.
Also, see this thread which points to some of the recent threads on this subject.
#3
Posted 24 July 2006 - 08:19 AM
#4
Posted 24 July 2006 - 08:26 AM
#5
Posted 25 July 2006 - 02:34 AM
#6
Posted 25 July 2006 - 06:25 PM
I know. There is no easily found information on this on the Fedora site. I wonder about the wiki page?
Let me look more at my article and get back to you. But you have three options;
1. Try to recover grub to your boot drive. I have not done this before w/o having the Windows drive installed, then putting it back into place. So, I want to look at this more fully. Fedora has some quirks that I have found in this process.
2. Re-install Fedora to the second drive, making sure that the Windows drive is in the box and also making sure that the bootloader is set to install on the boot drive.
3. Make free space on the Windows drive (if you have room) and install to the first drive.
Revising my article to add some points may help with this process.
Disk management in XP is discussed in this Microsoft Article, but it is overly complicated and somewhat confusing, I think.
#7
Posted 26 July 2006 - 12:49 AM
#8
Posted 26 July 2006 - 12:52 AM
#9
Posted 26 July 2006 - 06:34 PM
If you re-install Fedora, there are also some problems making sure that you install to the correct MBR (when using two hard drives and installing to a second hard drive) which I have not tried yet myself.
There is usually always a way to recover. but, this may require a little work.
But, if you want to throw caution to the wind, try the method that I discussed here.
1. Boot into rescue mode using the Fedora Installation disk.
2. Allow the install disk to detect your installation and mount sysimage.
3. Try the alternate command;
grub-install --recheck /dev/hda
If this works, and grub comes up on reboot, note if there is an "other" option, which would be Windows XP. If not, don't worry yet.
Realize, that if things get mucked-up, that you will lose the ability to boot into XP right off. But, if you have your full installation CD of windows, you can recover, if needed. So, data is one thing, but can you afford to muck-up XP?
#10
Posted 27 July 2006 - 01:34 AM
I used partition magic to re-partition 25GB to FAT32 and added the new partition as a logical partition (on the end of the drive). I rebooted and ran the repair utility twice, once with the fedora drive as primary and second with the SATA drive primary. Each time I ran the shell command
#chroot /mnt/sysimage
then used the exit command to reboot. The problem is unchanged, but I guess the good news is that it hasn't gotten any worse, I can still do what I've been doing, but that's annoying. I even tried the "upgrade" utility on the fedora install disc, hoping taht would change the MBR, which it would, except that it never actually completed the update process because (big surprise) there were no available updates on the disc. (I had hoped it would do it anyways, but no such luck).
Here's what I want to try, please tell me if I'm gonna completely hose myself with this plan:
I would like to create a new 10GB partition as the PRIMARY partition on the windows drive (SATA, and of course I will have that set in the BIOS first). This will have the unfortunate side-effect of overwriting the existing MBR and not letting Windows boot. I intend to immediately run the full Fedora 5 install on this new partition, which SHOULD see both drives, and both of the existing OS's (plus the new FC5 I am about to install). From there, I want to set GRUB to load off that partition, where I can choose FC5 of secondary drive, FC5 of primary drive, or WinXP.
I know this would leave me with two copies of Fedora 5, and I really plan to only use the one I have installed already, but this way I can remove that IDE (secondary) HD at any time and I won't affect the boot order of the computer.
Now, as you may already know, there are 2 separate MBR's on each drive. I have 3 questions about this procedure:
-WIll creating this new primary partition have a catastrophic effect on my existing WinXP iunstallation?
-Will this "new" installation of FC5 overwrite the existing MBR's on BOTH drives and subsequently fix this problem while preserving all existing data?
-Does this sound like a wise step? (again remember that, AS A LAST RESORT, I have considered the possibility of complete data loss)
Thanks again.
#11
Posted 27 July 2006 - 01:41 AM
That being said, I have decided for many reasons that I would prefer to have my SATA drive be primary, with the bootloader loading off this drive. (the SATA connection is faster, that particular HD spins at a faster RPM, and the IDE isn't actually mine, although the friend who loaned it to me hasn't asked for it back in over 1 year). So, between my previous post and this one, what should I try next?
#12
Posted 27 July 2006 - 01:44 AM
#13
Posted 27 July 2006 - 01:54 AM
#14
Posted 27 July 2006 - 02:01 AM
make SATA drive primary, then
run linux rescue, then
#chroot /mnt/sysimage
#grub-install --recheck /dev/sda
Will that install grub on the sata drive (and hopefully give me a menu when I boot off that drive)?
#15
Posted 27 July 2006 - 07:19 AM
You need to stick to one plan.
#chroot /mnt/sysimage
then used the exit command to reboot. The problem is unchanged,
The only reason that you may need a fat32 partition, is if you want to share information easily with Fedora and windows, without installing the Linux NTFS package to recognize the NTFS partition.
By running just chroot /mnt/sysimage, gets you to the root of Fedora, so you can run any additional commands, like grub-install. Exiting and rebooting withour running any commands does nothing to change anyting.
Using the upgrade option does nothing, as you are not updating from one Fedora release to another.
DO NOT create any other partitions, especially a pirmary partition at the beginning of the drive. This will render Windows XP unable to boot, as you have changed the partition structure and logical order of the partitions. The Windows XP boot.ini file is now set to boot windows on the first partition of the sata drive. This wilkl result in a failure to boot Windows XP. The install Fedora, you want [b]empty, unpartitioned space on the primary drive.
Right now, you have Grub only on the MBR of the second drive and the Windows boolopader on the sata drive.
Yes, as described above. Do not create any partitions on the beginning of the sata drive.
You need to have the order in the bios setup as when Windows XP was oririnally installed on the system. In your case, sata first, then the ide drive second.
So, you do not have a full installation CD for Windows (one CD), but recovery CD disks for recovering the whole system?
make SATA drive primary, then
run linux rescue, then
#chroot /mnt/sysimage
#grub-install --recheck /dev/sda
Will that install grub on the sata drive (and hopefully give me a menu when I boot off that drive)?
Yes, it will install the grub bootloader on the MBR of the sata drive. but what I do not know for sure, is if Grub will pick up the windows XP information, since the XP installation (drive) was not present when you installed Fedora originally.
Try it and see. If Windows XP is not detected, you can try to add the entry in Grub later on to boot XP, with a little work.
#16
Posted 27 July 2006 - 10:58 AM
I DO have an installation CD, and I DO have all my crucial data backed up. I DO NOT have an image of my current setup.
I am going with the fedora repair / grub install option, and I will set the partitions I previously created to unpartitioned space first. Here we go...
#17
Posted 27 July 2006 - 05:55 PM
Windows XP installation CD = Full installation CD of Windows XP (one CD)
Recovery disks = On pre-installed systens,like Gateway or HP systems, a full XP CD is often not included, but a CD or set of CD disks to recover the whole system. This erases all partitions and sets the system to it's original state.
ghost image = an image of the system in it's current state.
#18
Posted 27 July 2006 - 11:20 PM
#19
Posted 28 July 2006 - 05:11 AM
Yes, Fedora does know that the other hard drive is there. In order to see the contents of the other partitions on the other drive, you need to mount them.
You can see the partitons on both drives by issuing the following command, as root user, in a console;
/sbin/fdisk -l
Where l is the small letter "L" in -l
I will try to find a good, short tutorial on how to mount partitions.
I assume that you want to change the default booting OS to Windows, or is fedora booting to fast before you can select either OS?
You can alter the /boot/grub/grub.conf file to accomplish either delaying the timeout to boot Fedora, or choose the OS that boots by default. There is a good GUI to do this from within Fedora. You may just need to install this package in order to use it, as I think that it is not installed by default.
Sometimes, the default boots too quickly and newbies miss the options.
#20
Posted 31 July 2006 - 12:33 AM
I take you are meaning:
system-config-boot?
It was not installed by default to my FC5, I used
yum install system-config-boot
to get it. Requires Internet access.
If your Internet is not yet working:
Insert Fedora DVD to drive and it should automount it and start whatever file browser you are using. If not, doubleclick the 'FC/5 i386' dvd image on your desktop.
Then browse to Fedora/RPMS/.
Start typing system-config-boot. And it should search and select it(system-config-boot-0.2.11-1.2.i386.rpm). Rightclick it and select 'Open with "Software Installer". Enter your root user password. It should be now installed.
If you are using GNOME, select GNOME menu->System->Administration->Bootloader. Boot Configuration should start.

Help










