LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-23-2007, 12:34 PM   #1
kris.c
Member
 
Registered: May 2007
Posts: 30

Rep: Reputation: 15
kernel upgradation


I tried to update my SUSE-10.0 which came with kernel version number 2.6.13-15-default to the latest 2.6.21. I have copied the new bzImage and the System.map to the /boot directory. Now, I have to edit the "lilo.config" file. But the file doesnt exist in the /etc on my comp. When i tried to search for it, I got his outpout:

Code:
whereis lilo
lilo: /sbin/lilo /usr/share/man/man8/lilo.8
Ironically, there are many references to "/etc/lilo.config" in the file lilo.8.
I am a little concerned here, what should i do modify the boot loader. I hope someone replies soon. What can happen if i am forced to switch off my comp at this stage?

Last edited by kris.c; 05-23-2007 at 12:39 PM.
 
Old 05-23-2007, 12:59 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
If you replaced the old kernel, your system would probably fail to restart.

In any case, LILO's config should be at /etc/lilo.conf. Are there no files starting with 'lilo' in /etc?
 
Old 05-23-2007, 01:12 PM   #3
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for the reply.No, there seems to be no such file in /etc

Code:
linux:/etc # ls -la lilo.config
/bin/ls: lilo.config: No such file or directory
What can i do?
 
Old 05-23-2007, 01:25 PM   #4
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
If this helps in any way:

Code:
linux:/etc # ls *.conf
capi.conf         host.conf      ld.so.conf      mysqlaccess.conf  openct.conf   resolv.conf   smpppd-c.conf  xinetd.conf
dhcpd.conf        idmapd.conf    ldap.conf       named.conf        opensc.conf   rpasswd.conf  smpppd.conf
esd.conf          idn.conf       lftp.conf       nscd.conf         pnm2ppa.conf  rsyncd.conf   snmpd.conf
fam.conf          idnalias.conf  logrotate.conf  nss_mdns.conf     powerd.conf   scpm.conf     sysctl.conf
grub.conf         insserv.conf   modprobe.conf   nsswitch.conf     reader.conf   sensors.conf  uniconf.conf
gssapi_mech.conf  krb5.conf      mtools.conf     ntp.conf          resmgr.conf   slp.conf      wvdial.conf
 
Old 05-23-2007, 01:26 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
What does "ls -al /etc/lilo*" show?
 
Old 05-23-2007, 01:26 PM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
This may seem silly, but are you certain you are using Lilo? What distribution do you run?
 
Old 05-23-2007, 01:27 PM   #7
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Code:
linux:/etc # ls -al /etc/lilo*
/bin/ls: /etc/lilo*: No such file or directory
 
Old 05-23-2007, 01:29 PM   #8
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
I am using SUSE-10.0 About lilo, I dont really know. I have never tinkered around with this before. Is there any other file that can contain the equivalent information?
 
Old 05-23-2007, 03:47 PM   #9
sycamorex
Senior Member
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 4,397
Blog Entries: 1

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
I've never used either Suse or Lilo, however, possibly you're using GRUB (instead of Lilo)
In that case the file you are looking for might be /boot/grub/menu.lst
At least it is there on Debian-based systems.
 
Old 05-23-2007, 03:51 PM   #10
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
Yeah, Suse 10 would use grub. I would look and see if it has the update-grub script that will automatically update your grub config.
 
Old 05-23-2007, 11:04 PM   #11
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks a lot.. It worked!!!
 
Old 05-23-2007, 11:37 PM   #12
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
As another doubt, the menu.lst in /boot/grub on a Fedora-core 4 machine, has lines like :
Code:
  kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/
  initrd /initrd-2.6.11-1.1369_FC4.img
The initrd line was absent on my SUSE machine.
The equivalent initrd for the kernel that i am trying to upgrade to has not been created in the /boot directory.
How important is the initrd file?
Can I boot into the new kernel without including this line in the menu.lst file?
What should i set it to?
 
Old 05-24-2007, 12:04 AM   #13
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Ok, with a bit og googling, i realised, i need the initrd if my device has SCSI devices. And my device does have SCSI devices. So, i found out that i need to do something like:

Code:
[root@dx1 boot]# /sbin/mkinitrd /boot/initrd-2.6.21.img 2.6.21
Where 2.6.21 is the new kernel directory in /lib/modules.
But, this is the error message i got:
Code:
No module mptbase found for kernel 2.6.21, aborting.
How do i get around this issue?
 
Old 05-24-2007, 08:44 AM   #14
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Well, i got around that by commenting out all references to the mptbase and its now working.
Also, I had to compile the kernel on another machine so that I can conduct my TIPC experiments, I faced a new peoblem, though there was sufficient space in the hard disk of this machine, i got error messages saying something like - the images are too large and that some of the files have been truncated for both "make zImage" as well as "make bzImage". As a result of which the images have not been created in the /arch/i386/boot.
Is there a way out?
Out of curiosity, can i copy the bzImage that i created a few hours back on another machine into this machine's /arch/i386/boot directory and use it?. Both are of exactly the same architecture.
 
Old 05-24-2007, 11:43 PM   #15
kris.c
Member
 
Registered: May 2007
Posts: 30

Original Poster
Rep: Reputation: 15
To be precise, this is the error message that i got :

Code:
BFD: Warning: Writing section `.bss' to huge (ie negative) file offset 0xc0555000.
objcopy: arch/i386/boot/compressed/vmlinux.bin: File truncated
make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 1
make[1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel upgradation coss Linux - Distributions 1 09-15-2006 12:50 PM
kernel upgradation from 2.6.9-5.EL(RHEL 4) .. deepakkoni Linux - Kernel 1 06-25-2006 05:18 AM
Problem in kernel upgradation from 2.4.20 to 2.6 uma_mahesh_2005 Linux - Software 2 03-31-2006 05:07 AM
Upgradation from Evolution 2.2 to 4.4 neeludhiman Linux - Software 2 03-05-2006 11:11 PM
Upgradation from Evolution 2.2 to 4.4 neeludhiman Linux - Software 0 03-03-2006 08:21 AM


All times are GMT -5. The time now is 01:49 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration