Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I already have centos5.5 on my system whose hard disk is ~500GB. I have tried to dual boot with fedora 16. while installing fedora 16 I have created a ~250GB and ~4GB partitions for "/" and swap. The installation has gone pretty smoothly until a error at the end said that installing bootloader has been unsuccessful. The grub at boot time only shows centos entries .Now when I boot into centos and run the lvm->lvscan .. it shows 4 partitions (2 swap spaces and two "/" partitions for centos and fedora 16). How can boot into fedora.

share|improve this question
    
You can use the same swap-space on both installations. –  Nils May 24 '12 at 20:44
    
Where did you install the bootloader for CentOS (BTW 5.8 is the current version) and where the bootloader for Fedora? –  Nils May 24 '12 at 20:45
    
This could be because CentOS's bootloader doesn't support LVM, CentOS is not on LVM but Fedora is. Please post the output of fdisk -l, pvs, lvs and the contents of /etc/fstab under both operating systems. –  Gilles May 24 '12 at 23:27
add comment

1 Answer

Since there is a bootable grub in your system, one way to boot Fedora would be to find its grub.cfg (probably /boot/grub/grub.conf when CentOS is running) and add an entry for Fedora.

While this is one possibility, leading to CentOS' grub handling everything, it might not be too comfortable, since changes to your Fedora installation that need to change Grub's config won't be able to do this, as Fedora's Grub is not in charge at all. A more comfortable option hence might be to chainload Fedora's Grub from CentOS' Grub (some related information here). This means you need to

  1. properly boot into Fedora (maybe possible by using Ctrl+E on CentOS' entry and changing the values; probably possible by using Fedora's install medium again)
  2. re-install its Grub at the beginning of its partition, i.e. (EXAMPLE only) /dev/sda4 instead of /dev/sda (where CentOS' Grub resides)

(I'm aware that this is not a step-by-step guide but a pointer into the rough direction; I cannot fill out the details as I do not know CentOS or Fedora's Grub handling. The proper way to add the chainloading directing probably involves some file in /etc/grub.d/ or some analogue, just editing grub.conf will be reverted on updates.)

Edit see also this question and its answers. If CentOS provides an os-prober package, there might be quicker and more comfortable solutions.

share|improve this answer
    
Any idea what went wrong during installation? –  Nils May 24 '12 at 20:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.