[CentOS] Repair grub GPT/UEFI?

Les Mikesell lesmikesell at gmail.com
Wed Jun 12 23:09:20 UTC 2013


On Wed, Jun 12, 2013 at 5:56 PM, Yves Bellefeuille <yan at storm.ca> wrote:
> 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?

No, it is gmail's web client that likes to wrap lines.

> 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.

This is copied from the working system - it is something that the
Centos installer wrote.

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

The problem is that the same thing that works on the master system
doesn't work on the cloned copy.  So it probably has something to do
with the initial stage(s) of the boot - unless that long device string
is some uuid thing that won't match on the copy.

--
   Les Mikesell
     lesmikesell at gmail.com



More information about the CentOS mailing list