On Sat, Apr 12, 2014 at 08:16:46AM -0400, Tom H wrote:
> On Sat, Apr 12, 2014 at 6:45 AM, Facu Curti <facu.cu...@gmail.com> wrote:
> 
> 
> > Hi all. First at all i apologize if my english is not enough.
> > When I installed gentoo, I do that with UEFI, and gpt partitions. But
> > right now, I tried to install XEN, and this not works with EFI. I cant
> > wait until somebody fix this problem, So i'm thinking to change "EFI" to
> > "BIOS" boot.
> >
> > So, I deleted the efi (/boot/efi) partition, edited make.conf, and deleted
> > /etc/default/grub.
> >
> > After that, I made a new partition with bios_grub
> > flag. As explained in [1]. And reinstalled grub2 (with new flags).
> > But I can't boot. Anyway, I can boot from a live cd without
> > efi, so the problem is not in bios.
> 
> Did you enable BIOS compatibility mode in the firmware?
> 
> Different firmwares have different names for this but a common one is
> CSM (compatibility support module).
> 

yes. It is enabled. And I can boot from a liveCD without EFI support
(tails). So the problem should be on grub I think.
> 
> > I can't find the problem. ¿Some ideas?
> >
> > parted -l /dev/sdb:
> >
> > Model: ATA KINGSTON SV300S3 (scsi)
> > Disk /dev/sdb: 120GB
> > Sector size (logical/physical): 512B/512B
> > Partition Table: gpt
> > Disk Flags:
> >
> > Numero  Inicio  Fin     Tamaño  Sistema de ficheros  Nombre  Banderas
> >  1      1049kB  11,5MB  10,5MB                               bios_grub
> >  2      58,7MB  24,8GB  24,7GB  ext4                 rootfs  arranque
> >  3      24,8GB  28,8GB  3999MB  linux-swap(v1)       swap
> >  4      28,8GB  120GB   91,2GB  ext4                 home
> >
> > I made install with:
> > grub2-install --target=i386-pc --recheck --debug /dev/sdb
> > grub2-mkconfig /boot/grub/grub.cfg
> 
> It's "grub2-mkconfig -o /boot/grub/grub.cfg".
> 

Yes. It was a typing mistake on email. But I ran the command correctly.
I attach my grub.cfg

Thank you for help!
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 
--hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  
f453f88d-a359-4e0d-8586-e0c2600c3b2d
else
  search --no-floppy --fs-uuid --set=root f453f88d-a359-4e0d-8586-e0c2600c3b2d
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu 
--class os $menuentry_id_option 
'gnulinux-simple-f453f88d-a359-4e0d-8586-e0c2600c3b2d' {
        load_video
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd1,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 
--hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  
f453f88d-a359-4e0d-8586-e0c2600c3b2d
        else
          search --no-floppy --fs-uuid --set=root 
f453f88d-a359-4e0d-8586-e0c2600c3b2d
        fi
        echo    'Loading Linux 3.12.13-gentoo ...'
        linux   /boot/kernel-3.12.13-gentoo root=/dev/sdb2 ro  
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 
'gnulinux-advanced-f453f88d-a359-4e0d-8586-e0c2600c3b2d' {
        menuentry 'Gentoo GNU/Linux, with Linux 3.12.13-gentoo' --class gentoo 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-3.12.13-gentoo-advanced-f453f88d-a359-4e0d-8586-e0c2600c3b2d' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd1,gpt2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 
--hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  
f453f88d-a359-4e0d-8586-e0c2600c3b2d
                else
                  search --no-floppy --fs-uuid --set=root 
f453f88d-a359-4e0d-8586-e0c2600c3b2d
                fi
                echo    'Loading Linux 3.12.13-gentoo ...'
                linux   /boot/kernel-3.12.13-gentoo root=/dev/sdb2 ro  
        }
        menuentry 'Gentoo GNU/Linux, with Linux 3.12.13-gentoo (recovery mode)' 
--class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-3.12.13-gentoo-recovery-f453f88d-a359-4e0d-8586-e0c2600c3b2d' {
                load_video
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd1,gpt2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 
--hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  
f453f88d-a359-4e0d-8586-e0c2600c3b2d
                else
                  search --no-floppy --fs-uuid --set=root 
f453f88d-a359-4e0d-8586-e0c2600c3b2d
                fi
                echo    'Loading Linux 3.12.13-gentoo ...'
                linux   /boot/kernel-3.12.13-gentoo root=/dev/sdb2 ro single 
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Reply via email to