Hi SuSErs I have just installed RPM for todays default kernel. but, when I execute /sbin/mk_initrd am getting this error :- ______________ # mkinitrd using "/dev/hda7" as root device (mounted on "/" as "reiserfs") creating initrd "//boot/initrd" for kernel "//boot/vmlinuz" (2.4.18-4GB) failed to mount image ...................................... Please, any ideas, What am I doing wrong ? also, please, which kernel should i ask LILO to load ~ the vmlinuz, or, vmlinuz.suse ? many thanks best wishes, rh ____________ sent on Linux ____________
On Thursday 01 August 2002 01.08, tabanna wrote:
Please, any ideas, What am I doing wrong ?
Please edit /sbin/mk_initrd, find the mount commands at lines 416 and 419, remove "2>/dev/null", save, run /sbin/mk_initrd and post the error message you're getting [1]
also, please, which kernel should i ask LILO to load ~ the vmlinuz, or, vmlinuz.suse ?
They should be identical, if you installed from rpm. //Anders [1] To any SuSErs that may be listening: What in the name of $£@½ is the point of filtering out the error messages?
Hello Anders, Thursday, August 1, 2002, 2:21:45 AM, you wrote: AJ> On Thursday 01 August 2002 01.08, tabanna wrote:
Please, any ideas, What am I doing wrong ?
AJ> Please edit /sbin/mk_initrd, find the mount commands at lines 416 and 419, remove "2>>/dev/null", save, run /sbin/mk_initrd and post the error message AJ> you're getting [1]
also, please, which kernel should i ask LILO to load ~ the vmlinuz, or, vmlinuz.suse ?
AJ> They should be identical, if you installed from rpm. AJ> //Anders AJ> [1] To any SuSErs that may be listening: What in the name of $£@½ is the point AJ> of filtering out the error messages? I have my manualy created script 'mk_initrd.sh' to make INTRD image. 1. You should touch version kernel in ver="<new_version_kernel>" 2. When build the kernel you should compile modules as module <M> and insert for modules. 3. If there are addition question, please. #-------------------------------------------------------------------------------------- #!/bin/bash ver="2.4.18-4GB-SMP" tmp_dir="/tmp/initrdTMP"`date +%d%m%Y%H%M%S` init_file="initrd-$ver.img" log="$tmp_dir.log" mkdir $tmp_dir dd if=/dev/zero of=$tmp_dir/$init_file bs=1572864 count=1 >> $log 2>&1 /sbin/mke2fs -F $tmp_dir/$init_file >> $log 2>&1 mkdir $tmp_dir/initrd mount -o loop $tmp_dir/$init_file $tmp_dir/initrd rmdir $tmp_dir/initrd/lost+found mkdir $tmp_dir/initrd/{bin,dev,etc,lib,proc} cp /sbin/insmod.static $tmp_dir/initrd/bin cp /bin/ash.static $tmp_dir/initrd/bin cp -R /dev/{console,null,ram,ram1,tty0,tty1,tty2,tty3,tty4} $tmp_dir/initrd/dev ## This is you loadable modules cp /lib/modules/$ver/kernel/drivers/block/cciss.o $tmp_dir/initrd/lib #cp /lib/modules/$ver/kernel/drivers/net/bonding.o $tmp_dir/initrd/lib cp /lib/modules/$ver/kernel/drivers/net/e100/e100.o $tmp_dir/initrd/lib cp /lib/modules/$ver/kernel/drivers/net/3c59x.o $tmp_dir/initrd/lib cp /lib/modules/$ver/kernel/drivers/scsi/aic7xxx_old.o $tmp_dir/initrd/lib cat > $tmp_dir/initrd/linuxrc <<EOF #!/bin/ash.static echo "Loading module Compaq Smart Array Controller 5300" insmod.static /lib/cciss.o echo "Loading module Adaptec AHA-2940 Ultra2 SCSI Card" insmod.static /lib/aic7xxx_old.o echo "Loading module Intel(R) PRO/100+ Server Adapter" insmod.static /lib/e100.o echo "Loading module 3COM(R) Server Adapter" insmod.static /lib/3c59x.o EOF chmod 755 $tmp_dir/initrd/linuxrc umount $tmp_dir/initrd rmdir $tmp_dir/initrd gzip -9 $tmp_dir/$init_file mv $tmp_dir/$init_file.gz $tmp_dir/$init_file if [ -f /boot/$init_file ]; then mv /boot/$init_file /boot/$init_file.old fi mv $tmp_dir/$init_file /boot rmdir $tmp_dir #-------------------------------------------------------------------------------------- after run this script you should correct /etc/lilo.conf to new INITRD 'initrd-2.4.18-4GB-SPM.img', for example: image = /boot/vmlinuz-2.4.18 label = suse-2.4.18 root = /dev/sda2 vga = ask initrd = /boot/initrd-2.4.18-4GB-SMP.img optional -- Best regards, Vlad mailto:vlad@nkmz.donetsk.ua
participants (3)
-
Anders Johansson
-
tabanna
-
Vlad