On Sunday 26 November 2006 07:09, Basil Chupin wrote:
rmyster@gmail.com wrote:
mkinitrd -k vmlinuz-2.6.18.2-4-default -i initrd-2.6.18.2-4-default (your new initd-2.6.18.2-4 image should now be present)
and/or for the xen image mkinitrd -k vmlinuz-2.6.18.2-4-xen -i initrd-2.6.18.2-4-xen
Note that running just 'mkinitrd' with no options will create the default image that matches your current kernel vmlinuz image.
recreate symbolic link(s) ln -s /boot/initrd-2.6.18.x-y /boot/initrd where "2.6.18.x-y" above is the version number you just created
Thanks to you, Joe and to Darryl for your assistance and I ask for some time to digest all that has been suggested because I am finding it just a tad hard going trying to get it all into perspective. I am finding that what I expect to find I am not finding and what I read (eg in the Suse manual) is not as explicit as I would like so it is kinda confusing me.
For example, above you state that doing "uname -a" will give me the current version of the kernel I am using. After a bit of puzzlement I realised (I think!) that when one boots into a 'broken' system using the installation DVD the uname -a command shows the version of the kernel used by the installation DVD to boot into the OS and *not* the actual kernel installed in the OS.
That didn't occur to me but did you boot with your system's installation cd/dvd or were you using an earlier version? Booting with the 10.2 RC1 dvd on my end shows the kernel as 2.6.18.2-23-default which matches the kernel when booting directly into 10.2 RC1.
For example, after booting using the 10.1 Installation DVD uname -a shows that the kernel is 2.6.16.13-4 but the kernel now actually in place is 2.6.16.21-0.25 and, of course, initrd etc also have this same (latter) number.
It took a "few" minutes to work out why you said that not using any parameters with the mkinitrd command will create a default image which will match the current kernel - in this case being the old ...16.13-4 kernel which is not what I need.
If vmlinux-2.6.16.21-0.25-default is your latest available version in your /boot dir, then use those numbers and use mkinitrd with the -k & -i options mentioned previously. Looking at where the /boot/vmliuz symbolic link points to at the moment should tell you what the latest version is on your system and just match that one. As of 10.2 RC1, the latest version is 2.6.18.2-23-default and my earlier examples used the 10.2 beta2 kernel version.
This of course would explain why booting from the DVD works even though there is a corruption in,say, initird because it is the kernel etc which is on the DVD which is used and until the damage is repaired the OS continues to run on the old kernel etc. At least this is what I make of it :-) .
or the install disk just creates the initrd ramdisk on the fly from the existing vmlinuz image.
I'll recreate the initrd as described later today after rereading all that has been stated 'cause I don't want to mess things up even more and have to reinstall not only 10.1 but XP as well even though I only use it once in a blue moon.
If your latest kernel vmlinuz image is 2.6.18.2-23-default, then after renaming the existing files (initrd and initrd-2.6.18.2-23-default), you can use mkinitrd -k /boot/vmlinuz-2.6.18.2-23-default -i /boot/initrd-2.6.18.2-23-default followed by ln -s /boot/initrd-2.6.18.2-23-default /boot/initrd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org