View previous topic :: View next topic |
Author |
Message |
wzg1977 n00b
Joined: 23 Nov 2014 Posts: 5
|
Posted: Sun Nov 23, 2014 1:14 pm Post subject: Grub2 hangs after showing "Loading Linux-3.16.5-gentoo |
|
|
i am trying to install gentoo in virtualbox exactly following the x86 handbook excepting the partition layout.
because years ago i installed gentoo succeedly,so when preparing disk i carelessly follow the memory.
now after configuring the boot loader,grub2 hangs after showing "Loading Linux-3.16.5-gentoo ..."
i try to find what happens.
i copy the kernel of livecd to the /boot,grub2 can boot the kernel into the system
it seems i compiled the kernel wrongly.
but i follows the handbook using the legacy grub,grub does boot the kernel i compiled.
so i dont't know what's wrong .
Cant someone help me??
my fstab.conf like :
Code: | /dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext4 noatime 0 1
/dev/sda2 none swap sw 0 0
.....
|
|
|
Back to top |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
|
Back to top |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Tue Nov 25, 2014 3:22 pm Post subject: |
|
|
It seems like you're missing file system support in your kernel, or that your output is lost somehow. If your /etc/fstab is wrong you usually get a panic message when I tries to mount it, but you should observe some kernel messages before that. |
|
Back to top |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Tue Nov 25, 2014 3:23 pm Post subject: |
|
|
Also did you remember to mount your boot partition prior to doing your "make install". It's easy to forget and then you're left with the previous version of the kernel and your changes appears not to work since there were never included in the file on the boot partition. |
|
Back to top |
|
|
oblivion_vr n00b
Joined: 19 May 2013 Posts: 23
|
Posted: Wed Nov 26, 2014 9:07 pm Post subject: Re: Grub2 hangs after showing "Loading Linux-3.16.5-ge |
|
|
wzg1977 wrote: | i am trying to install gentoo in virtualbox exactly following the x86 handbook excepting the partition layout.
because years ago i installed gentoo succeedly,so when preparing disk i carelessly follow the memory.
now after configuring the boot loader,grub2 hangs after showing "Loading Linux-3.16.5-gentoo ..."
i try to find what happens.
i copy the kernel of livecd to the /boot,grub2 can boot the kernel into the system
it seems i compiled the kernel wrongly.
but i follows the handbook using the legacy grub,grub does boot the kernel i compiled.
so i dont't know what's wrong .
Cant someone help me??
my fstab.conf like :
Code: | /dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext4 noatime 0 1
/dev/sda2 none swap sw 0 0
.....
|
|
Hey,
Were you successful in solving this problem? Because I too am facing similar problem.
My problem is exactly the same. I installed gentoo reading the handbook. Did manual configuration of the kernel. But upon reboot the boot process gets stuck on "Loading Linux-3.16.5-gentoo ...".
Now, the strange thing is when I press "C" on the boot screen. it takes me to the grub prompt. when i do -
grub> linux /<kernel-image-path> root=/dev/sda3
grub> boot
the system correctly boots.
Does any one has any idea? Do I need to use initrd with virtualbox + grub2 combination? |
|
Back to top |
|
|
wzg1977 n00b
Joined: 23 Nov 2014 Posts: 5
|
Posted: Thu Nov 27, 2014 2:23 am Post subject: |
|
|
it seems i screwed up the kernel configuraiton because i can use genkernel to build a working kernel that grub2 can boot.
but what made me puzzled that i did build a kernel previously that grub legacy can boot but grub2 does not.
now i load the genkernel configuraiton to change when i do things "make menuconfig"
a stupid question is i cann't restore to the initial configure state after "emerge gentoo-source"
i try to do these:
Code: | make mrproper
make menuconfig |
i find the options are still the same with some time before.
for example
Code: | general setup->
local version - append to kernel release |
always restore to what i entered a certain time before
even i "rm -rf /usr/src/*" and resinstall gentoo-sources again.
it's weird
pgu wrote: | It seems like you're missing file system support in your kernel, or that your output is lost somehow. If your /etc/fstab is wrong you usually get a panic message when I tries to mount it, but you should observe some kernel messages before that. |
|
|
Back to top |
|
|
wzg1977 n00b
Joined: 23 Nov 2014 Posts: 5
|
Posted: Thu Nov 27, 2014 2:31 am Post subject: Re: Grub2 hangs after showing "Loading Linux-3.16.5-ge |
|
|
i do not solve the problem now.
but i can use
to get a working kernel that grub2 can boot
it seems that the problem is in the configuration of the kernel.
but i did build a kernel that grub legacy can boot and grub2 does not
and as you mentioned it can boot from grub2 command line .
and it also cannot boot with initramfs.
so it's weird.
oblivion_vr wrote: |
Hey,
Were you successful in solving this problem? Because I too am facing similar problem.
My problem is exactly the same. I installed gentoo reading the handbook. Did manual configuration of the kernel. But upon reboot the boot process gets stuck on "Loading Linux-3.16.5-gentoo ...".
Now, the strange thing is when I press "C" on the boot screen. it takes me to the grub prompt. when i do -
grub> linux /<kernel-image-path> root=/dev/sda3
grub> boot
the system correctly boots.
Does any one has any idea? Do I need to use initrd with virtualbox + grub2 combination? |
|
|
Back to top |
|
|
wzg1977 n00b
Joined: 23 Nov 2014 Posts: 5
|
Posted: Thu Nov 27, 2014 3:46 am Post subject: Re: Grub2 hangs after showing "Loading Linux-3.16.5-ge |
|
|
You remind me.
The problem might be relative with grub2.
when you type "E" on the grub prompt,
delete or comment the line "set gfxpayload=keep"
type "F10" to boot
The boot messages scroll in the screen.
Just deleting the line in /boot/grub/grub.cfg,it will work
does anyone know why??
oblivion_vr wrote: | wzg1977 wrote: | i am trying to install gentoo in virtualbox exactly following the x86 handbook excepting the partition layout.
because years ago i installed gentoo succeedly,so when preparing disk i carelessly follow the memory.
now after configuring the boot loader,grub2 hangs after showing "Loading Linux-3.16.5-gentoo ..."
i try to find what happens.
i copy the kernel of livecd to the /boot,grub2 can boot the kernel into the system
it seems i compiled the kernel wrongly.
but i follows the handbook using the legacy grub,grub does boot the kernel i compiled.
so i dont't know what's wrong .
Cant someone help me??
my fstab.conf like :
Code: | /dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext4 noatime 0 1
/dev/sda2 none swap sw 0 0
.....
|
|
Hey,
Were you successful in solving this problem? Because I too am facing similar problem.
My problem is exactly the same. I installed gentoo reading the handbook. Did manual configuration of the kernel. But upon reboot the boot process gets stuck on "Loading Linux-3.16.5-gentoo ...".
Now, the strange thing is when I press "C" on the boot screen. it takes me to the grub prompt. when i do -
grub> linux /<kernel-image-path> root=/dev/sda3
grub> boot
the system correctly boots.
Does any one has any idea? Do I need to use initrd with virtualbox + grub2 combination? |
|
|
Back to top |
|
|
wzg1977 n00b
Joined: 23 Nov 2014 Posts: 5
|
Posted: Thu Nov 27, 2014 4:19 am Post subject: Re: Grub2 hangs after showing "Loading Linux-3.16.5-ge |
|
|
I dig something to find why.
in grub manual
Code: | ‘keep’ to preserve the graphics mode set using ‘gfxmode’ |
so the problem is there is no graphic driver.
enable the option and all will be fine.
Code: | Device Driver->
Graphics Driver->
FrameBuffer Devices->
VESA VGA graphics Support
|
wzg1977 wrote: | You remind me.
The problem might be relative with grub2.
when you type "E" on the grub prompt,
delete or comment the line "set gfxpayload=keep"
type "F10" to boot
The boot messages scroll in the screen.
Just deleting the line in /boot/grub/grub.cfg,it will work
does anyone know why??
|
|
|
Back to top |
|
|
oblivion_vr n00b
Joined: 19 May 2013 Posts: 23
|
Posted: Sat Nov 29, 2014 8:27 pm Post subject: Re: Grub2 hangs after showing "Loading Linux-3.16.5-ge |
|
|
wzg1977 wrote: | I dig something to find why.
in grub manual
Code: | ‘keep’ to preserve the graphics mode set using ‘gfxmode’ |
so the problem is there is no graphic driver.
enable the option and all will be fine.
Code: | Device Driver->
Graphics Driver->
FrameBuffer Devices->
VESA VGA graphics Support
|
wzg1977 wrote: | You remind me.
The problem might be relative with grub2.
when you type "E" on the grub prompt,
delete or comment the line "set gfxpayload=keep"
type "F10" to boot
The boot messages scroll in the screen.
Just deleting the line in /boot/grub/grub.cfg,it will work
does anyone know why??
|
|
Thanks a lot. Enabling "VESA VGA graphics Support" worked for me too. It was a good learning.
Thanks again. |
|
Back to top |
|
|
|