Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[genkerneld, i.e. solved] GRUB2 doesn't do anything much
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
zhMFe3
n00b
n00b


Joined: 24 Jan 2014
Posts: 11
Location: Germany

PostPosted: Mon Jan 27, 2014 1:10 pm    Post subject: [genkerneld, i.e. solved] GRUB2 doesn't do anything much Reply with quote

Hi,
I am installing gentoo on a new ssd drive in a T61 Thinkpad from the minimal iso (on a dvd, not live usb stick).

The reboot (Handbook 10.e. Rebooting the System) did not actually work, there is no error message. It just says:
Code:
Loading Linux 3.10.25-gentoo ...

nothing else happens

Some quick information points:

  • I am not using lvm or software raid.
  • I used parted to (GPT)partition the drive. following the Handbook
  • There are no other disk devices, just sda
  • Tried with and without genkernel initramfs
  • gentoo is the only OS on the machine, no dual boot.


some configurations
Code:

$ grep EXT2 .config
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT2_FS_XIP=y

$ grep EXT4 .config
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set


I did not change anything in the grub 2 configuration after
Code:

grub2-install /dev/sda
grub2-mkconfig -o /boot/grub/grub.cfg


grub.cfg:
Code:

#
# 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='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  d57b285e-2fb9-4855-b6f9-77b7f76b89a9
else
  search --no-floppy --fs-uuid --set=root d57b285e-2fb9-4855-b6f9-77b7f76b89a9
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 [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
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-d57b285e-2fb9-4855-b6f9-77b7f76b89a9' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  ad573837-967d-41a2-a9f6-7fc926f2db83
        else
          search --no-floppy --fs-uuid --set=root ad573837-967d-41a2-a9f6-7fc926f2db83
        fi
        echo    'Loading Linux 3.10.25-gentoo ...'
        linux   /vmlinuz-3.10.25-gentoo root=/dev/sda4 ro 
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-d57b285e-2fb9-4855-b6f9-77b7f76b89a9' {
        menuentry 'Gentoo GNU/Linux, with Linux 3.10.25-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.25-gentoo-advanced-d57b285e-2fb9-4855-b6f9-77b7f76b89a9' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  ad573837-967d-41a2-a9f6-7fc926f2db83
                else
                  search --no-floppy --fs-uuid --set=root ad573837-967d-41a2-a9f6-7fc926f2db83
                fi
                echo    'Loading Linux 3.10.25-gentoo ...'
                linux   /vmlinuz-3.10.25-gentoo root=/dev/sda4 ro 
        }
        menuentry 'Gentoo GNU/Linux, with Linux 3.10.25-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10.25-gentoo-recovery-d57b285e-2fb9-4855-b6f9-77b7f76b89a9' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  ad573837-967d-41a2-a9f6-7fc926f2db83
                else
                  search --no-floppy --fs-uuid --set=root ad573837-967d-41a2-a9f6-7fc926f2db83
                fi
                echo    'Loading Linux 3.10.25-gentoo ...'
                linux   /vmlinuz-3.10.25-gentoo root=/dev/sda4 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 ###


fstab:
Code:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda2               /boot           ext2            defaults,noatime        0 2
/dev/sda4               /               ext4            noatime         0 1
/dev/sda3               none            swap            sw              0 0
/dev/sda5               /home           ext4            noatime         0 2
/dev/cdrom              /mnt/cdrom      auto            noauto,user     0 0


oh, and this is how my /boot folder looks like:
Code:

-rw-r--r-- 1 root root 3275871 Jan 23 18:06 System.map-3.10.25-gentoo
-rw-r--r-- 1 root root   89628 Jan 23 18:06 config-3.10.25-gentoo
drwxr-xr-x 6 root root    1024 Jan 27 12:15 grub
drwx------ 2 root root   12288 Jan 23 15:29 lost+found
-rw-r--r-- 1 root root 5660784 Jan 23 18:06 vmlinuz-3.10.25-gentoo


so, since there is no error reported, i don't know what to look for....


Last edited by zhMFe3 on Tue Jan 28, 2014 2:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6313
Location: /usr/lib64/lv2

PostPosted: Mon Jan 27, 2014 3:11 pm    Post subject: Reply with quote

The command

Code:

grub2-mkconfig -o /boot/grub/grub.cfg


Would have spit out some info. What did it say?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
zhMFe3
n00b
n00b


Joined: 24 Jan 2014
Posts: 11
Location: Germany

PostPosted: Mon Jan 27, 2014 3:18 pm    Post subject: Reply with quote

grub2-mkconfig output (typed manually, not pasted):
Code:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.25-gentoo
done
Back to top
View user's profile Send private message
zhMFe3
n00b
n00b


Joined: 24 Jan 2014
Posts: 11
Location: Germany

PostPosted: Tue Jan 28, 2014 11:23 am    Post subject: resolved Reply with quote

I gave in and used genkernel for the first time, and it did boot. But I really don't know what was missing. I did follow the handbook and didn't do anything crazy.
weird. I don't like this solution..... but it is acceptable
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1414

PostPosted: Tue Jan 28, 2014 1:50 pm    Post subject: Reply with quote

hello,
you use grub2 with GPT. In this case you need an extra "grub2 boot partition",
because the MBR is too small. You need about 1 to 2 MB of space before the /boot partion.
This is going to make quite good with gparted.

https://wiki.archlinux.org/index.php/GRUB2#GPT_specific_instructions
http://www.joachim-neu.de/post/144/grub2-bios-gpt/
http://wiki.ubuntuusers.de/GRUB_2/Grundlagen#MBR-mit-GUID-Partitionstabelle-GPT

Ma
_________________
Thank you for your attention, interest and support.
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
zhMFe3
n00b
n00b


Joined: 24 Jan 2014
Posts: 11
Location: Germany

PostPosted: Tue Jan 28, 2014 2:24 pm    Post subject: Reply with quote

Hi,
I did create a grub boot partition. As instructed in the handbook (2MiB), using parted.
But, since it boots now, using genkernel's kernel, it must have been a problem with my previous, apparently badly configured kernel. But, i did check everything that the handbook instructed me to check. :/
kind regards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum