Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Booting (initramfs) /dev on /newroot/dev failed
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
rootsra
n00b
n00b


Joined: 24 Jun 2009
Posts: 18

PostPosted: Mon Jul 23, 2012 2:29 pm    Post subject: [solved] Booting (initramfs) /dev on /newroot/dev failed Reply with quote

Hello

I updated, and now i have the following error at boot but system is running :)

Code:

Booting (initramfs).mount: mounting /dev on /newroot/dev failed: Invalid argument
umount: can't umount /dev: Invalid argument
*: failed to move and umount the ramdisk $fs!


So i created /newroot and /newroot/dev but i still have the error.

any ideas ? thanks.


Last edited by rootsra on Wed Jul 25, 2012 9:22 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jul 23, 2012 5:47 pm    Post subject: Reply with quote

rootsra,

Please post the init script for your initramfs and check your kernel for
Code:
 /usr/src/linux $ grep DEVTMP .config
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

_________________
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
rootsra
n00b
n00b


Joined: 24 Jun 2009
Posts: 18

PostPosted: Mon Jul 23, 2012 10:40 pm    Post subject: Reply with quote

This is correct in my kernel

CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

I'm not sure what is the init script for initramfs... :)
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Jul 24, 2012 5:10 am    Post subject: Reply with quote

rootsra wrote:
This is correct in my kernel

CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

I'm not sure what is the init script for initramfs... :)


'init' is a script inside your initramfs that does the basic setup bits and bobs as your system is booting
if you're not sure where init came from, the next question would be: how did you create this initramfs? With a tool like genkernel, dracut, or did you create it from scratch? Where did it come from?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
rootsra
n00b
n00b


Joined: 24 Jun 2009
Posts: 18

PostPosted: Tue Jul 24, 2012 7:19 am    Post subject: Reply with quote

I did create initramfs with genkernel.

But where can i find init script ? it should be there /usr/src/initramfs/init ?

I have nothing there...

do i have to emerge sys-fs/udev-init-scripts or another ?
Back to top
View user's profile Send private message
bigbangnet
Apprentice
Apprentice


Joined: 11 Jun 2007
Posts: 174

PostPosted: Tue Jul 24, 2012 2:06 pm    Post subject: Reply with quote

Just to be sure here and be clear, can you post your ls /boot, your fstab and your grub.conf ? I recently had some problems with that too and my mistake was an argument in my grub.conf(I forgot to use the rootfstype=ext4 since I use ext4 on mine) that I missed.
_________________
I'm a noob, be gentle with me. TEACH ME
Back to top
View user's profile Send private message
rootsra
n00b
n00b


Joined: 24 Jun 2009
Posts: 18

PostPosted: Tue Jul 24, 2012 3:00 pm    Post subject: Reply with quote

Talking about grub, that reminds me that in the updated packages there was GRUB 2.0 and i had 0.97 before.

Code:

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

title Gentoo Linux
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.4.5-gentoo rootfstype=reiserfs root=/dev/ram0 real_root=/dev/sda2 vga=792 usbhid.mousepoll=1 splash=silent,theme:default console=tty1 quiet
initrd /boot/initramfs-genkernel-x86_64-3.4.5-gentoo


Anything that should be updated ?? or maybe i didn't install grub 2 yet...


edit : i installed grub 2 , it's still the same ... /dev on /newroot/dev failed

i tried without arguments for kernel, but same error
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jul 24, 2012 6:34 pm    Post subject: Reply with quote

rootsra,

The file /boot/initramfs-genkernel-x86_64-3.4.5-gentoo is a CPIO archive of CPIO archives.
Its decompressed and left at /dev/ram0 for the kernel to use as a root filesystem until enough setting up is done to be able to mount your real_root.

You will find some instructions in /usr/src/linux/Documentation/ about how to look inside it.
_________________
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
alexcortes
Apprentice
Apprentice


Joined: 18 Dec 2011
Posts: 205
Location: Rio de Janeiro, Brazil

PostPosted: Wed Jul 25, 2012 2:55 am    Post subject: Reply with quote

If you are using 'genkernel-3.4.39' you may want to take a look at:

https://bugs.gentoo.org/show_bug.cgi?id=427828

Downgrading to genkernel-3.4.38 solved for me.


Last edited by alexcortes on Wed Jul 25, 2012 1:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
rootsra
n00b
n00b


Joined: 24 Jun 2009
Posts: 18

PostPosted: Wed Jul 25, 2012 9:21 am    Post subject: Reply with quote

alexcortes wrote:
Downgrading to genkernel-3.4.38 solved for me.


It worked for me too. thanks.
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