camorri Posted March 15, 2007 Report Share Posted March 15, 2007 I am trying to install a new kernel. I ran the folowing command : urpmi kernel-i586-up-1GB-2.6.12.31mdk I saw an error 21 at the end of the install. I went to the /boot directory, not all files the new files were there. I did not have a initrd-2.6.12-31mdk.img file. I know I have to have one. I believe the source of my problem deals with the fact I have a triple boot system and two hard drives. From what I have read, the install of a new kernel is supposed to update the sym links for 'vmlinuz' and 'initrd' The sym links did not get updated to point to anything new, they still point to the old files. vmlinuz points to vmlinuz-2.6.12-12mdk and initrd.img points to initrd-2.6.12-12mdk.img. After I installed the new kernel, I had a new file vmlinuz-2.6.12-31mdk but no new file for initrd-2.6.12-31mdk.img. I ran urpme and removed the new kernel. ( Current state of the system ). 2006 boots with the old kernel. This system boots from lilo installed and controled by an older MDK 9.2 system. Lilo is on the MBR of hda. MDK 9.2 is on hda6, hda1 and hda5 are Win98. My Mandriva 2006 system is installed on hdb2. There are more partitions, but the system I think are the important ones. Also from what I have read, an install of a new kernel is supposed to update /etc/lilo.conf. The install, does not find it since it is on /etc on hda6, not /etc on hdb2. Is there a way to install the updated kernel using urmpi? [moved from Software by spinynorman] Link to comment Share on other sites More sharing options...
Ixthusdan Posted March 15, 2007 Report Share Posted March 15, 2007 Frankly, I always install using urpmi. I do not uninstall any kernel, as I can always boot to the old if the new has issues on my box. To use urpmi, you should look up the kernel and specify it completely. Incidentally, I have 2 drives and boot 5 os's on my desktop, and there is no problem using any of the various methods for updating in any of the os's. Link to comment Share on other sites More sharing options...
camorri Posted March 16, 2007 Author Report Share Posted March 16, 2007 To use urpmi, you should look up the kernel and specify it completely. My guess was I did something wrong, Could you give me an example to follow? It is the i585 up to one gig kernel that makes sense for my system. The command I entered was in my first post. I tried various things, before that worked at all. Thank-you in advance for your help. Link to comment Share on other sites More sharing options...
Ixthusdan Posted March 17, 2007 Report Share Posted March 17, 2007 You will have to manually edit lilo because it is indeed controlled by another system. That is one aspect of booting several systems that I forget to tell, and that is manually editing the lilo.conf file. When I update my other systems, I must boot into Mandriva in order to change lilo. It may be that you have installed the kernel just fine but lilo must boot it. Open the appropriate /etc/lilo.conf file and edit the entry to match the kernel information in your /boot directory of Mandriva 2007. This must be done after updating a kernel anywhere but in the os that contains the active lilo.conf. I don't see anything wrong with your urpmi command. Perhaps it was a bad download. Clear the cache and do it again. Link to comment Share on other sites More sharing options...
camorri Posted March 17, 2007 Author Report Share Posted March 17, 2007 Thank-you for your response. Here is what I have done since my last post. Under 2006 I re-installed the kernel kernel-i586-up-1GB-2.6.12.31mdk using the GUI interface, not command line. I did not see any error messages. It installed like any other application. I booted back to Mdk 9.2 since that system controls lilo. I edited the lilo.conf , saved and ran lilo command, all as root. I didn't see any error messages, so I tried booting using the copied and edited entry for the new kernel. It loads only as far as the "Linux Free" blue screen. I left it there for several minutes, it just stays there. I had to hit the power button, until it powered off. I can boot to the old kernel, and I'm sure I can still boot to 9.2. I still think the problem has to do with the install of the kernel. Here are the files I have the 2006 /boot directory. ls -ltotal 5132 lrwxrwxrwx 1 root root 19 Mar 17 14:17 config -> config-2.6.12-12mdk -rw-r--r-- 1 root root 71299 Sep 9 2005 config-2.6.12-12mdk -rw-r--r-- 1 root root 71358 Mar 2 13:15 config-2.6.12-31mdk drwxr-xr-x 2 root root 4096 Dec 26 2005 grub/ -rw-r--r-- 1 root root 283534 Dec 26 2005 initrd-2.6.12-12mdk.img lrwxrwxrwx 1 root root 23 Dec 26 2005 initrd.img -> initrd-2.6.12-12mdk.img lrwxrwxrwx 1 root root 27 Mar 17 14:18 kernel.h -> /boot/kernel.h-2.6.12-12mdk -rw-r--r-- 1 root root 695 Dec 26 2005 kernel.h-2.6.12-12mdk -rw-r--r-- 1 root root 254766 Dec 26 2005 message-graphic lrwxrwxrwx 1 root root 23 Dec 26 2005 System.map -> System.map-2.6.12-12mdk -rw-r--r-- 1 root root 639316 Sep 9 2005 System.map-2.6.12-12mdk -rw-r--r-- 1 root root 647155 Mar 2 13:15 System.map-2.6.12-31mdk lrwxrwxrwx 1 root root 20 Dec 26 2005 vmlinuz -> vmlinuz-2.6.12-12mdk -rw-r--r-- 1 root root 1608520 Sep 9 2005 vmlinuz-2.6.12-12mdk -rw-r--r-- 1 root root 1620450 Mar 2 13:15 vmlinuz-2.6.12-31mdk Note, I did not get a file called initrd-2.6.12-31 or kernel.h-2.6.12-31mdk, they just are not there. I think this is my problem, but how do I get them to install? For completeness, here are the lines I altered in lilo.conf. I copied and pasted the first 7 lines, and edited them. image=/mnt/mdk10-2/boot/vmlinuz label="Mandriva-2K6" root=/dev/hdb2 initrd=/mnt/mdk10-2/boot/initrd.img append="resume=/dev/hdb8 splash=silent sr0=ide-scsi" vga=788 read-only image=/mnt/mdk10-2/boot/vmlinuz-2.6.12-31mdk label="Mandy-31mdk" root=/dev/hdb2 initrd=/mnt/mdk10-2/boot/initrd.img append="resume=/dev/hdb8 splash=silent sr0=ide-scsi" vga=788 read-only I think what I need are those two files, and then edit lilo.conf uner 9.2 and re-run lilo. I need to change the initrd.img ( sym-link) file to point to initrd-2.6.12-31mdk.img Link to comment Share on other sites More sharing options...
ianw1974 Posted March 21, 2007 Report Share Posted March 21, 2007 Why are we running two posts on the same topic? https://mandrivausers.org/index.php?showtopic=40227&hl= I'm closing this one. Please continue in the other thread after trying what I suggested. Link to comment Share on other sites More sharing options...
Recommended Posts