Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot hangs on initramfs
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
grimgent
n00b
n00b


Joined: 13 Sep 2013
Posts: 8

PostPosted: Fri Sep 13, 2013 9:53 am    Post subject: Boot hangs on initramfs Reply with quote

After installing Gentoo(inside VirtualBox), I get this when I try to boot ...
Code:

>>Booting (initramfs)..
INIT: version 2.88 booting
_


I used genkernel:
Code:

initramfs-genkernel-x86-3.10.7-gentoo
kernel-genkernel-x86-3.10.7-gentoo


Here are my partitions:
Code:

/dev/sda1 boot
/dev/sda2 swap
/dev/sda3 /


Here is my grub.conf
Code:

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo LInux 3.10.7
root (hd0,0)
kernel /boot/kernel-genkernel-x86-3.10.7-gentoo real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-3.10.7-gentoo

#vim:ft=conf:
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9645
Location: almost Mile High in the USA

PostPosted: Fri Sep 13, 2013 6:22 pm    Post subject: Reply with quote

What happens without initramfs?
What did you set as default console during kernel build?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
grimgent
n00b
n00b


Joined: 13 Sep 2013
Posts: 8

PostPosted: Fri Sep 13, 2013 8:41 pm    Post subject: Reply with quote

Tried without init and if failed, saying plz append root=

I never set any console options.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9645
Location: almost Mile High in the USA

PostPosted: Fri Sep 13, 2013 9:45 pm    Post subject: Reply with quote

What about root=/dev/sda3 instead of real_root=/dev/sda3, will it boot that way at least?

Guessing a broken initramfs at this point but ... not sure...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
grimgent
n00b
n00b


Joined: 13 Sep 2013
Posts: 8

PostPosted: Fri Sep 13, 2013 9:49 pm    Post subject: Reply with quote

If initramfs is broken, how do I fix it?
Back to top
View user's profile Send private message
grimgent
n00b
n00b


Joined: 13 Sep 2013
Posts: 8

PostPosted: Fri Sep 13, 2013 10:03 pm    Post subject: Reply with quote

Well, that didn't work either. :x
Back to top
View user's profile Send private message
Knute
Guru
Guru


Joined: 28 Jun 2004
Posts: 362
Location: Fargo, ND

PostPosted: Fri Sep 13, 2013 10:31 pm    Post subject: Reply with quote

In your kernel and initrd lines in your grub.conf file remove the "/boot" part of it.

You already have grub looking at the /boot partition with your root statement, so if there isn't a symlink in /boot that leads to /boot then the actual path that you are searching is /boot/boot/blah.

Does that make sense?
_________________
Knute
----------
The human race has one really effective weapon, and that is laughter.
-- Mark Twain

If you want proof of that, take a look at windows sometime. :)
Back to top
View user's profile Send private message
grimgent
n00b
n00b


Joined: 13 Sep 2013
Posts: 8

PostPosted: Fri Sep 13, 2013 10:53 pm    Post subject: Reply with quote

I ran ls -l from boot:
Code:

boot -> .
Back to top
View user's profile Send private message
grimgent
n00b
n00b


Joined: 13 Sep 2013
Posts: 8

PostPosted: Fri Sep 13, 2013 10:56 pm    Post subject: Reply with quote

So do I just remove the root= statement?
Back to top
View user's profile Send private message
Knute
Guru
Guru


Joined: 28 Jun 2004
Posts: 362
Location: Fargo, ND

PostPosted: Fri Sep 13, 2013 11:06 pm    Post subject: Reply with quote

What happens if you change your grub.conf as follows:

Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo LInux 3.10.7
root (hd0,0)
kernel kernel-genkernel-x86-3.10.7-gentoo root=/dev/sda3
initrd initramfs-genkernel-x86-3.10.7-gentoo

#vim:ft=conf:

_________________
Knute
----------
The human race has one really effective weapon, and that is laughter.
-- Mark Twain

If you want proof of that, take a look at windows sometime. :)
Back to top
View user's profile Send private message
grimgent
n00b
n00b


Joined: 13 Sep 2013
Posts: 8

PostPosted: Fri Sep 13, 2013 11:29 pm    Post subject: Reply with quote

I get:
Booting 'Gentoo LInux 3.10.7'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel kernel-genkernel-x86-3.10.7-gentoo

Error 1: Filename must be either an absolute pathname or blocklist

Press any key to coninue...
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9645
Location: almost Mile High in the USA

PostPosted: Sat Sep 14, 2013 1:51 am    Post subject: Reply with quote

What we're trying to do is completely remove initramfs from your setup as you may not really need it just to simplify things a bit. Comment out or remove the initramfs line and see what it does.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Knute
Guru
Guru


Joined: 28 Jun 2004
Posts: 362
Location: Fargo, ND

PostPosted: Sat Sep 14, 2013 6:42 am    Post subject: Reply with quote

grimgent wrote:
I get:
Booting 'Gentoo LInux 3.10.7'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel kernel-genkernel-x86-3.10.7-gentoo

Error 1: Filename must be either an absolute pathname or blocklist

Press any key to coninue...


put a slash at the beginning of the kernel and initramfs lines (if you are keeping the initram line that is) The slash makes it an absolute path.

[edit] kernel /genkernel-line is what I meant, btw. :D
_________________
Knute
----------
The human race has one really effective weapon, and that is laughter.
-- Mark Twain

If you want proof of that, take a look at windows sometime. :)
Back to top
View user's profile Send private message
grimgent
n00b
n00b


Joined: 13 Sep 2013
Posts: 8

PostPosted: Sun Sep 15, 2013 1:01 am    Post subject: Reply with quote

Well I decided to install it natively. Instead of installing
Grub from Gentoo, I used Arch's. I'm dual booting Arch
and Gentoo.
I know I should have done that earlier, but I wanted
to try and fix the problem first.
Back to top
View user's profile Send private message
Ilya.A
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2007
Posts: 93
Location: Russia, Magadan

PostPosted: Tue Sep 24, 2013 1:52 am    Post subject: Reply with quote

Same problem - i can't boot gentoo on virtualbox with kernel 3.10.7, hangs on init.
Any ideas?
Back to top
View user's profile Send private message
Safokoi
n00b
n00b


Joined: 15 Oct 2013
Posts: 2

PostPosted: Tue Oct 15, 2013 2:14 am    Post subject: Reply with quote

Same problem x86_3.10.7+Virtualbox.

>>Booting (initramfs)..
INIT: version 2.88 booting
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