LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel 2.6.7 install error, initrd-2.6.7.img error (https://www.linuxquestions.org/questions/linux-general-1/kernel-2-6-7-install-error-initrd-2-6-7-img-error-217641/)

jjorloff1 08-14-2004 05:26 PM

Kernel 2.6.7 install error, initrd-2.6.7.img error
 
I am installing my kernel and i got all the way up to the very last step but it give me and error. the step i mean is: /sbin/mkinitrd /boot/initrd-2.6.7.img 2.6.7

when i type that in it gives the error:

/boot/initrd-2.6.7.img/var/tmp is not a directory

and i tried some other things, and i may possibly have it up, but im afraid to shut down my computer for fear of not booting up again. What i did was. I manually deleted the symlink to my old initrd file (not a .img, something to do with gzip according to konquerer) and i made a new symlink to the initrd-2.6.7 (konquerer says gzip file) file and my /boot/grub/menu.lst file seems to be right if what i did is not wrong, but i really have no idea. can someone tell me if it will work, or if ive messed it up.

oh and also when i run the /sbin/mkinitrd alone i get this (may have some consequence to the help i recieve)



Root device: /dev/hda3 (mounted on / as reiserfs)
Module list: reiserfs

Kernel image: /boot/vmlinuz-2.6.5-7.104-default
Initrd image: /boot/initrd-2.6.5-7.104-default
Shared libs: lib/ld-2.3.3.so lib/libc.so.6 lib/libselinux.so.1
Modules: kernel/fs/reiserfs/reiserfs.ko

Kernel image: /boot/vmlinuz-2.6.7
Initrd image: /boot/initrd-2.6.7
Shared libs: lib/ld-2.3.3.so lib/libc.so.6 lib/libselinux.so.1
Cannot determine dependencies of module reiserfs. Is modules.dep up to date?
Modules:
none


And when i run this command (/sbin/mkinitrd -t /var/tmp -m /lib/modules/2.6.7) to specify the modules and bypass the */var/tmp error i get this:


Root device: /dev/hda3 (mounted on / as reiserfs)
Module list: /lib/modules/2.6.7

Kernel image: /boot/vmlinuz-2.6.5-7.104-default
Initrd image: /boot/initrd-2.6.5-7.104-default
Shared libs: lib/ld-2.3.3.so lib/libc.so.6 lib/libselinux.so.1
Cannot determine dependencies of module /lib/modules/2.6.7. Is modules.dep up to date?
Modules:
none

Kernel image: /boot/vmlinuz-2.6.7
Initrd image: /boot/initrd-2.6.7
Shared libs: lib/ld-2.3.3.so lib/libc.so.6 lib/libselinux.so.1
Cannot determine dependencies of module /lib/modules/2.6.7. Is modules.dep up to date?
Modules:
none



is it safe to reboot my comp, or will i not be able to boot it up with the new kernel?

jjorloff1 08-14-2004 05:39 PM

???

jrobicha 09-14-2004 10:18 PM

You may have selected the reiserfs as builtin instead of a module (make menuconfig -> File Systems -> Reiser FS ) while the /etc/sysconfig/kernel file contains INITRD_MODULES = "reiserfs". Either you remove reiserfs from the INITRD_MODULES variable or you set ReiserFS as a module <M> instead of being built-in <*>...

I just had the same problem stucking me for the last 2 hours ....

Good Luck...

Jp

P.S. Yes it is safe to reboot since the old kernel will still be accessible, but trying to boot from the new one will certainly crash.... unless you solve that "reiserfs" problem

P.P.S. BTW, just "mkinitrd" alone will do ... unless you have dozen of kernels in /boot (and are concerned about time taken by mkinitrd), you don't need to specify the one for which you want to built the initrd

amosf 09-15-2004 12:15 AM

Why not just compile the root filesystems and such into the kernel and skip the initrd?

But mkinitrd should do the job anyway... eg on my system I just bullt 2.6.9-rc2 kernel, so the following:

mkinitrd initrd-2.6.9-rc2.img 2.6.9-rc2

would make the initrd if I wanted to use one...


All times are GMT -5. The time now is 07:23 PM.