[CentOS] Repair grub GPT/UEFI?

Wed Jun 12 22:56:22 UTC 2013
Yves Bellefeuille <yan at storm.ca>

On Wednesday 12 June 2013, Les Mikesell <lesmikesell at gmail.com> wrote:

> #boot=/dev/sda1
> device (hd0) HD(1,800,64000,0557c1a7-7538-4ba1-b81e-74c4328b8b8d)
> default=0
> timeout=5
> splashimage=(hd0,1)/grub/splash.xpm.gz
> hiddenmenu
> title CentOS (2.6.32-358.6.2.el6.x86_64)
>         root (hd0,1)
>         kernel /vmlinuz-2.6.32-358.6.2.el6.x86_64 ro
> root=/dev/mapper/vg_trepdevl01-lv_root rd_NO_LUKS LANG=en_US.UTF-8
> rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_NO_DM
> rd_LVM_LV=vg_trepdevl01/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us
> rd_LVM_LV=vg_trepdevl01/lv_root rhgb quiet crashkernel=auto
>         initrd /initramfs-2.6.32-358.6.2.el6.x86_64.img

Ah, you posted this in the forum, didn't you? The line that starts with 
"device" is new to me. I thought it was something specific to UEFI or 
GPT I didn't know about, but apparently it can only be used at the Grub 
shell, not in the grub.conf file.

Look at http://wiki.centos.org/HowTos/GrubInstallation and create a 
grub.conf file as described in section 2.

Yves Bellefeuille <yan at storm.ca>
Mekaro en Otavo, Kanado, 18-20 majo 2013: http://mekaro.ca/