Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linuxrc: 209: mdev: not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fjenkins
n00b
n00b


Joined: 14 Mar 2006
Posts: 4

PostPosted: Wed Sep 27, 2006 3:43 am    Post subject: linuxrc: 209: mdev: not found Reply with quote

I tried creating a new kernel using genkernel
Code:
genkernel --bootsplash --install --save-config --clean --mrproper  all

but when booting this kernel, when it tries to start mdev, it gives this error:
Code:
/linuxrc: /linuxrc: 209: mdev: not found

Then complains that the block device /dev/hdc3 is not a valid root device. I entered the shell, and found that there are no hd's in the /dev directory (which I suppose I should expect since mdev failed to start), but there are ram*, loop*, tty*, and vcs* and a few one-off devices. I ran find in the initrd's shell and there was indeed nothing named mdev. I assumed that I needed mdev installed when I ran genkernel, so I booted back into the old kernel, but couldn't find a package named mdev in portage.

SOOooo, what do I need to do to get mdev working, or at least get /dev/hd* on the initrd so I can boot with this kernel?

I should also mention that I uncommented
Code:
BOOTLOADER="grub"
in /etc/genkernel.conf so I could see what it thinks is the correct grub syntax and got the following:
Code:

title=Gentoo Linux (2.6.17-gentoo-r8) initrd only
root (hd1,0)
kernel /boot/kernel-genkernel-x86-2.6.17-gentoo-r8 root=/dev/ram0 real_root=/dev/hdc3 init=/linuxrc ramdisk_size=6744 hdb=scsi vga=791 splash=silent
#kernel /boot/kernel-genkernel-x86-2.6.17-gentoo-r8 root=/dev/ram0 real_root=/dev/hdc3 init=/boot/initrd-genkernel-x86-2.6.17-gentoo-r8 ramdisk_size=6744 hdb=scsi vga=791 splash=silent
initrd /boot/initramfs-genkernel-x86-2.6.17-gentoo-r8


It should be noted that the two files
Code:
/boot/kernel-genkernel-x86-2.6.17-gentoo-r8
/boot/initrd-genkernel-x86-2.6.17-gentoo-r8

exist after running genkernel --install, but
Code:
/boot/initramfs-genkernel-x86-2.6.17-gentoo-r8
does not. I'm assuming that last file was supposed to be /boot/initrd-genkernel-x86-2.6.17-gentoo-r8,
so I changed it (which allows it to boot... leaving initramfs there causes an instant error from grub about the file not existing), but it still dies at mdev.

I also tried uncommenting the second kernel line and commenting the first kernel and the initrd, but that also has the same problem (as I suppose I would expect, since the two are equivelant).

So, again, any ideas how to get mdev working?
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Wed Sep 27, 2006 4:08 am    Post subject: Reply with quote

Try updating sys-apps/busybox then having genkernel create a new initrd image (genkernel uses busybox to provide mdev functionality in the initrd environment).
Back to top
View user's profile Send private message
fjenkins
n00b
n00b


Joined: 14 Mar 2006
Posts: 4

PostPosted: Wed Sep 27, 2006 7:53 am    Post subject: More answers lead to more questions Reply with quote

Well, I emerged busybox 1.2.1, then reran,
Code:
genkernel --bootsplash --install --save-config --clean --mrproper  all


However, it still uses busybox-1.1.3, because apparently that is actually included in the genkernel ebuild (v3.4.1), and I still get the 'mdev not found' error.

HOWEVER, I entered the initrd shell again, and ran busybox by itself to get a function list (which didn't list mdev as one of it's functions), but then ran busybox mdev and sure enough, it gave me the mdev help file. I then ran
Code:
busybox mdev -s

and the correct devices were added. This allowed me to quit the shell, then tell it to use /dev/hdc3 as root, and it booted right up.


Sooo, that's good, except I have no idea how to modify initrd to either call busybox mdev -s, or add a link from mdev to busybox. So, any pointers there would be greatly appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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