Install CentOS-6.4 and Windows 7 dual-boot with EFI

From Notes_Wiki

Home > CentOS > CentOS 6.x > New machine configuration > Install CentOS-6.4 and Windows 7 dual-boot with EFI

To install CentOS-6.4 and Windows 7 dual-boot with EFI use following steps:

  1. Install Windows 7 with EFI, Windows partition, C drive and free space
  2. Install Cent-OS with /boot/efi same as first EFI partition created by windows (do not format this), /boot (ext4), / (ext4), /mnt/ddrive (vfat), /mnt/das1 (xfs), etc. You need to remember the device names and numbers for /boot and /.
  3. After installation two options will come Cent-OS and Windows 7. Cent-OS optin will give error unrecognized executable format. In that case press 'c' to get grub command prompt (grub>).
  4. Use command
    root (hd0,5)
    where hd0 is the device name and 5 represents sixth partition. This command is used to select /boot. So if your /boot was /dev/sdb4. Then probably root(hd1,3) will work. This can also be seen by pressing 'e' in the menu to see first line of Cent-OS boot option before pressing 'c' to get command line.
  5. Then use
    kernel /vm<tab> root=/dev/sda5 rhgb quiet
    where /vm... would be kernel name which should get completed by auto-complete. /dev/sda5 is the path of /.
  6. Then use
    initrd /ini<tab>
  7. Then use
    boot
  8. When Cent-OS boots mount /boot/efi partition and edit efi/redhat/grub.conf file. Comment old tboot.gz kernel line and change the following two module lines so that they start with kernel and initrd and not with module. That is replace first module with kernel and second with initrd.
  9. Reboot and verify that things are fine.


Home > CentOS > CentOS 6.x > New machine configuration > Install CentOS-6.4 and Windows 7 dual-boot with EFI