Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Can't Boot. Stuck on "Loading Linux linux-4.4.6 ..."
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
somethin
n00b
n00b


Joined: 19 Jan 2016
Posts: 37

PostPosted: Tue May 31, 2016 12:25 pm    Post subject: [SOLVED]Can't Boot. Stuck on "Loading Linux linux-4.4.6 Reply with quote

Whenever I try to boot, I see "Loading Linux linux-4.4.6 ..." and nothing happens.
Why is this happening ?
How can this be fixed ?


Last edited by somethin on Thu Jun 02, 2016 11:16 am; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue May 31, 2016 12:43 pm    Post subject: Re: Can't Boot. Stuck on "Loading Linux linux-4.4.6 ... Reply with quote

You could chroot into your system and set /etc/rc.conf to rc_interactive="YES".
Then reboot and hit the i button when rc starts. Then go step-by-step.
Back to top
View user's profile Send private message
somethin
n00b
n00b


Joined: 19 Jan 2016
Posts: 37

PostPosted: Tue May 31, 2016 1:01 pm    Post subject: Reply with quote

The problem is I can't even get openrc to start. Booting stops after "Loading Linux linux-4.4.6 ..." message appears.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue May 31, 2016 3:48 pm    Post subject: Reply with quote

Go to http://sysresccd.org/ and burn it on a CD or USB stick.
It should be able to boot your system (hopefully).
Back to top
View user's profile Send private message
somethin
n00b
n00b


Joined: 19 Jan 2016
Posts: 37

PostPosted: Tue May 31, 2016 4:35 pm    Post subject: Reply with quote

I have gentoo livedvd on my usb stick and it boots without issues.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue May 31, 2016 4:45 pm    Post subject: Reply with quote

Then boot from your live USB, follow the steps in the handbook to mount your Gentoo disk, then chroot into it.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
somethin
n00b
n00b


Joined: 19 Jan 2016
Posts: 37

PostPosted: Tue May 31, 2016 4:49 pm    Post subject: Reply with quote

I can do that, but i want to be able to boot my system without live USB.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue May 31, 2016 4:59 pm    Post subject: Reply with quote

Yes, then you use the live usb to get to logs, reinstall kernel and so on before trying to boot again.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
somethin
n00b
n00b


Joined: 19 Jan 2016
Posts: 37

PostPosted: Tue May 31, 2016 5:19 pm    Post subject: Reply with quote

1. What logs do I need to get ?
2. What options do I need to enable or disable in kernel ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54303
Location: 56N 3W

PostPosted: Tue May 31, 2016 8:01 pm    Post subject: Reply with quote

somethin,

The kernel never decompresses. Your last message is provided by grub.
The implication is that grub jumps to the start address of the kernel and the kernel is either
1. not there.
2. not built to run at that address
3. not self relocating.

Hmm, maybe its not even a kernel that gets loaded.

Post your grub.cfg file.
Post the output of
Code:
ls -l /boot

Pastebin your kernel .config file.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue May 31, 2016 10:20 pm    Post subject: Reply with quote

I would also add the contents of /etc/fstab and the output of

Code:

sudo fdisk -l /dev/sda


Change sda for the driver you have your system installed. If you are using multiple disks, then please post the output for each one.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Wed Jun 01, 2016 4:27 am    Post subject: Reply with quote

somethin wrote:
I have gentoo livedvd on my usb stick and it boots without issues.

livedvd can boot only livedvd. sysresccd has the option
Code:
5) Boot an existing Linux system installed on the disk
This is sometimes very helpful for fixing mbr/bootloader/kernel problems.
Back to top
View user's profile Send private message
somethin
n00b
n00b


Joined: 19 Jan 2016
Posts: 37

PostPosted: Wed Jun 01, 2016 6:49 am    Post subject: Reply with quote

/boot/grub/grub.cfg (it's generated with grub2-mkconfig)
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,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  0bb11bb2-1c78-493c-be45-b329b884853a
else
  search --no-floppy --fs-uuid --set=root 0bb11bb2-1c78-493c-be45-b329b884853a
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-0bb11bb2-1c78-493c-be45-b329b884853a' {
        load_video
        if [ "x$grub_platform" = xefi ]; then
                set gfxpayload=keep
        fi
        insmod gzio
        insmod part_gpt
        insmod fat
        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  24CF-7000
        else
          search --no-floppy --fs-uuid --set=root 24CF-7000
        fi
        echo    'Loading Linux 4.4.6-gentoo ...'
        linux   /vmlinuz-4.4.6-gentoo root=/dev/sda6 ro 
}
submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-0bb11bb2-1c78-493c-be45-b329b884853a' {
        menuentry 'Gentoo GNU/Linux, with Linux 4.4.6-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.6-gentoo-advanced-0bb11bb2-1c78-493c-be45-b329b884853a' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod fat
                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  24CF-7000
                else
                  search --no-floppy --fs-uuid --set=root 24CF-7000
                fi
                echo    'Loading Linux 4.4.6-gentoo ...'
                linux   /vmlinuz-4.4.6-gentoo root=/dev/sda6 ro 
        }
        menuentry 'Gentoo GNU/Linux, with Linux 4.4.6-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.6-gentoo-recovery-0bb11bb2-1c78-493c-be45-b329b884853a' {
                load_video
                if [ "x$grub_platform" = xefi ]; then
                        set gfxpayload=keep
                fi
                insmod gzio
                insmod part_gpt
                insmod fat
                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  24CF-7000
                else
                  search --no-floppy --fs-uuid --set=root 24CF-7000
                fi
                echo    'Loading Linux 4.4.6-gentoo ...'
                linux   /vmlinuz-4.4.6-gentoo root=/dev/sda6 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 ###

ls -l /boot
Code:
total 9376
-rwxr-xr-x 1 root root   99620 May 31 19:21 config-4.4.6-gentoo
drwxr-xr-x 5 root root    1024 May 30 18:57 EFI
drwxr-xr-x 6 root root    1024 May 31 19:21 grub
-rwxr-xr-x 1 root root 3372328 May 31 19:21 System.map-4.4.6-gentoo
-rwxr-xr-x 1 root root 6125152 May 31 19:21 vmlinuz-4.4.6-gentoo

Kernel config http://pastebin.com/T5mBxW5v
/etc/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           vfat            noauto,noatime  1 2
/dev/sda6               /               ext4            noatime         0 1
/dev/sda5               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0

fdisk -l /dev/sda
Code:
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B1909412-50BE-46A6-9F9B-1A9F496F2DFF

Device         Start       End   Sectors   Size Type
/dev/sda1       2048    923647    921600   450M Windows recovery environment
/dev/sda2     923648   1128447    204800   100M EFI System
/dev/sda3    1128448   1161215     32768    16M Microsoft reserved
/dev/sda4    1161216 419432447 418271232 199.5G Microsoft basic data
/dev/sda5  419432448 452986879  33554432    16G Linux filesystem
/dev/sda6  452986880 976771119 523784240 249.8G Linux filesystem
Back to top
View user's profile Send private message
somethin
n00b
n00b


Joined: 19 Jan 2016
Posts: 37

PostPosted: Wed Jun 01, 2016 7:11 am    Post subject: Reply with quote

I found out that problem is with frame buffer drivers. If I enable only efi frame buffer I can see the output (The kernel config in http://pastebin.com/T5mBxW5v has only efi frame buffer), but if I enable nvidia framebuffer I don't see the output.
How can I enable nvidia frame buffer and be able to see the output after "Loading Linux ..." ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54303
Location: 56N 3W

PostPosted: Wed Jun 01, 2016 6:19 pm    Post subject: Reply with quote

somethin,

You must not enable nvidia frame buffer.
When you do, nvidia frame buffer grabs the video cand and neither nouveau, nor nvidia-drivers will work in Xorg.

The nouveau kernel driver includes a framebuffer console. nvidia-drivers will give you dire warnings about any attempt to use a framebuffer driver of any sort.
Simple Framebuffer and on EFI systems, with EFI in use EFI framebuffer may work. A few years ago, vesa frambuffer worked too.
The trick with mixing nvidia-drivers with a framebuffer console is that the framebuffer driver must not attempt to change the video settings.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
somethin
n00b
n00b


Joined: 19 Jan 2016
Posts: 37

PostPosted: Thu Jun 02, 2016 11:16 am    Post subject: Reply with quote

Thanks a lot for the help.
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