MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have an assignement for one of my classes to compile a kernel with no modules, and ive gotten that much done fine, but when i do a make install, it fails on mkinitrd, i dont know what the initrd file does, which may be the source of my problems. so i manually add the kernel i created to lilo, with no initrd entry, everything runs fine, till it gets to mandrakes interactive startup, where it tries to load modules that were not created, then im brought to the graphical login screen but none of my input works, any help would be appriciated, thanks.
-Ian
If you compile your own kernel you have to include support for initrd (ram disk) or devfs.
MDK 10.1 uses udev instead of devfs, so if you want to be "pure" you have to have an initrd loading udev
to have some basic /dev entries before everything starts.
In this case you can take the existing /boot/initrd.img and do:
Code:
zcat /boot/initrd.img > /tmp/init.img
mkdir /tmp/init && mount -o loop /tmp/init.img /tmp/init
vi /tmp/init/linuxrc (remove all the "echo Loading.... and insmod... entries)
rm /tmp/init/lib/*
umount /tmp/init
gzip /tmp/init.img
mv /tmp/init.img.gz /boot/initrd-nomodules.img
Then add /boot/initrd-nomodules.img to your grub or lilo config.
The other (deprecated) way is to include devfs and make sure it's loaded at boot time.
Weird.
/boot/initrd.img should be a symlink to the acctual initrd file (in the case of MDK 10.1 its usually initrd-2.6.8.1-12mdk.img).
And that file should be gzipped.
You can check with
Code:
file /boot/initrd.img (answer should be "symbolic link to ....")
file /boot/(whatever answer you got previously) (answer shoud be "gzip compressed data...")
If the answer to the second command is "Linux rev 1.0 ext2 filesystem data..." you can replace 'zcat' with 'cp'
well all those steps worked well, but what does mandrake load after initrd, because whatever that step is, its trying to load usb modules and some other stuff, im not really familiar with linux's boot sequence so any help would be great
After boot it runs /etc/rc.sysinit, and after that in runs the S-files in /etc/rcX.d where X is the runlevel you have in /etc/inittab (which
in your case should be /etc/rc5.d and "id:5:initdefault:" )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.