Personal tools
You are here: Home Fedora Solved Installation Solutions Dual Disk Dual Boot Issue Correction

Dual Disk Dual Boot Issue Correction

by ScottGlaser last modified Jan 31, 2011 02:40 PM
— filed under:

There are some instances where a user installs a new disk drive in their Windows system so as to load Fedora. Fedora does not install grub in the MBR of the primary disk properly. For those instances this procedure will correct that issue.

Requirements

You will need one of the following disks to perform this solution:

  1. Fedora Installation CD #1
  2. Fedora Rescue CD
  3. Fedora DVD
  4. Fedora Live (LiveCD or LiveUSB)

Doing the work

  1. Only follow this Step 1 if using Fedora Live media, otherwise, skip to the next step for regular rescue mode. When using Fedora Live media, you have to manually find and mount your correct fedora device(s) (which rescue mode does for you), then bind mount a few system devices, and then chroot.
    1. Make a mountpoint to chroot into later with "mkdir /mnt/sysimage"
    2. Determine which device your fedora root ('/') filesystem lives on. It may be a regular /dev/sda# partition, or, if it was a default install, it will be a Logical Volume (run "vgchange -ay" to activate all LVs). Mount it at /mnt/sysimage. i.e.: "mount /dev/mapper/vg-myhostname-lv_root /mnt/sysimage" and ls /mnt/sysimage to verify contents.
    3. Determine which device your fedora boot ('/boot') filesystem lives on. It is always a regular partition, but not always the first one, and is a few hundred megs in size. Since root is mounted (above), you can do "grep boot /mnt/sysimage/etc/fstab" to determine the boot device. If it shows a UUID instead of a /dev/sda# device, then mount it as such. i.e.: "mount -U deadbeef-cafe-1234-abcd-123456789012 /mnt/sysimage/boot"
    4. Now it is necessary to bind mount a few system devices
      mount --bind /dev /mnt/sysimage/dev
      mount --bind /proc /mnt/sysimage/proc
      mount --bind /sys /mnt/sysimage/sys
    5. Skip to Step 9
  2. Insert either the Fedora Installation CD 1, the Fedora Rescue CD, or the Fedora DVD then reboot the computer. At the Menu Options screen press the 'esc' key.
  3. At the prompt enter the following:

    linux rescue
  4. Press "enter", at the "Choose a Language Screen" select your language using the up/down arrow keys, then tab to "ok" and press the enter key.

  5. At the "Keyboard Type Screen" select your keyboard type using the up/down arrow keys, then tab to "ok" and press the enter key.

  6. At the "Setup Network Screen" tab to "no" then press enter.

  7. At the "Rescue Screen" tab to "continue" then press enter.

  8. At the second "Rescue Screen" press enter to continue.

  9. At the prompt enter the following:

    chroot /mnt/sysimage/ 
  10. Press "enter", then enter the following:

    grub-install --recheck /dev/sda 
  11. This solution assumes that Windows is installed on SDA (first hard disk drive), and Fedora Core is Installed on SDB (second hard disk drive).

  12. Press "enter", then enter the following:

    exit
  13. Press "enter", then enter the following:

    exit
  14. Press "enter", at this point, your system should reboot. As it does remove the CD-Rom so the system does not boot off of the CD.

More Information

Disclaimer

We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #fedora on irc.freenode.net

Added Reading

Document Actions
Log in


Forgot your password?
New user?