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've installed CentOS 6.4 on UEFI enabled machine, created /boot/efi partitions.

But my grub is not automatically starting, if I start the PC, I start in Windows 8.
I can only start CentOS by entering the BIOS boot options and select CentOS.

I tried to modify the grub.conf file by modifying this

title XXXXX
   root (hd0,8)

to

title XXXXXX
   root (hd0,3)

Where (hd0,8) is my root partition, (hd0,3) is my /boot/efi partition.

But now the problem still occurs, I have to open Cent OS from the Bios boot options as well as another error, when I open CentOS I get file not found error.

How can I fix all this mess?

share|improve this question
2  
Usually you don't need grub when you have UEFI. UEFI can directly load the kernel if compiled with EFI_STUB, so there's rarely the need to chain two boot loaders. –  Marco May 20 '13 at 23:46
1  
@Marco stop selling that crap, are you going to help every person that follows your advice to update their boot configuration files every time they update their unsuspecting kernels? –  Michael Shigorin May 26 '13 at 12:57
    
@MichaelShigorin A kernel update requires a reboot, thus is something the sysadmin should be well aware of. And in the case the UEFI boot loader has not been updated, the old kernel is loaded and no harm done. Furthermore it's simply a matter of copying the kernel and initramfs to the EFI_SYSTEM partition and running efibootmgr, which is a shell three-liner. To fully automatise this, it can (on Debian systems) be hooked into /etc/kernel/postinst.d. Sorry, I don't get you point and I don't see a reason to resort to harsh language. –  Marco May 26 '13 at 17:59
add comment

1 Answer 1

Read Rod's books on this but basically centos6 isn't the most fit distro for UEFI.

share|improve this answer
    
Please refrain from simply posting links. It's better to sum up the gist of it in case the links dies. Furthermore, you should elaborate why CentOS doesn't go well with UEFI. –  Marco May 26 '13 at 18:01
    
I can only suggest that you go and read that particular page too. :) –  Michael Shigorin Jun 6 '13 at 11:44
    
I've implemented UEFI support in ALT Linux 7 branch and upon having done that would rather not consider backporting it for ALT Linux 6 branch which is quite a bit newer (particularly kernels) than RHEL6/CentOS6 releases are; e.g. EFI_STUB support you referred to in the other answer (as the factor reducing the need for boot loaders) appeared in Linux 3.x. It's not convenient, unfortunately. –  Michael Shigorin Jun 6 '13 at 11:48
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.