LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2010, 01:52 PM   #1
islay04
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
howto delete extra kernel lists at boot of Mandriva 2010


After upgrade from MDV 2009.1 to MDV 2010 a bunch of available kernels that can be selected are listed at boot. I think that these are still installed but I really don't need them listed. I would like to get rid of the list of extras.

I've had a look at /boot/grub but I can't figure out what. if anything, to do there.

Best regards.

Bob
 
Old 02-04-2010, 02:07 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
There are several files included with each kernel. To see what is there, go to the /boot directory.

The best, and safe way to remove both the files, and the entires in grub is to use URPMI, and un-install each unused kernel. That will free disk space, and remove the entries in grub.

The brute force method, I don't recommend this unless you are confident in what you are doing, as root, edit /boot/grub and delete the lines for each kernel you are not going to boot to. The name of the kernel is on the 'Title' line. For example, here is one kernel in my /boot/grub/menu.lst file;

Quote:
title desktop 2.6.31.5-1mnb
kernel (hd0,0)/boot/vmlinuz-2.6.31.5-desktop-1mnb BOOT_IMAGE=desktop_2.6.31.5-1mnb root=UUID=cc9bc7ff-c5ee-4cf8-adff-2cab298fd0e3 resume=UUID=8f1ede04-99be-4980-b6ca-8d94c1946fc4 splash=silent vga=788
initrd (hd0,0)/boot/initrd-2.6.31.5-desktop-1mnb.img
Removing only these lines will remove the option from the grub menu. To remove the file, go to /boot and delete the files with 2.6.31.5 in the names.

If you go the brute force method, make a backup of /boot/grub/menu.lst first, just in case you mess up the file.
Also know how to boot from a live cd, just in case...
 
Old 02-06-2010, 10:30 PM   #3
islay04
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Cliff:
I tried the easy way but urpmi didn't seem to support delete so I tried urpme but it just returned a blurb that NVidea had something installed in this kernel and didn't delete anything.

I then went to the brute force method and had trouble trying to delete the entries in boot/grub/menu.lst. Finally got brave and went to Konsole after saving a copy of the edited menu.lst (deleted the unwanted lines) then used "cp" to replace /boot/grub/menu.lst and all is well :-).

Thanks again for pointing me in the right direction and.

Best regards.

Bob
 
Old 02-07-2010, 06:53 AM   #4
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
I'm glad I could help. BTW, you should have been able to accomplish the task running URPMI from the GUI.

You can go to MCC--> Install Remove Software, and in the Find search field, type 'kernel' ( with the quotes ) and enter. It should list every package with the word kernel in it. Know which kernel is installed, the command 'uname -a' will tell you. Installed packages have a check mark in the left column. For the kernels you want to remove, hilight them, and click apply. You will get a notification about all the related packages for that kernel, and be asked if you want to remove them also. Click Yes, and apply. URPMI will do its magic.

This is how I remove old kernels. It is safe, and it cleans up the disk.
 
1 members found this post helpful.
Old 02-08-2010, 12:18 PM   #5
islay04
LQ Newbie
 
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks again Cliff. Worked like a charm.

Best regards.

Bob
 
Old 02-08-2010, 01:12 PM   #6
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
You are welcome.
 
Old 05-14-2010, 12:44 PM   #7
jaymz69
LQ Newbie
 
Registered: Jun 2007
Posts: 18

Rep: Reputation: 1
Id like to ask if removin old kernels may have effect on boot time?

I recently had a problem with one comp in a comp lab and it had a clean install of mandriva 2010 -- its boot time was considerably shorter than that of the other comps in the lab [they all have the same processors hds and graphic cards]... but the other comps still have all the previous kernel versions as they were kept up-to-date -- the one which broke had just one update and it really loads the system faster

so is it connected with previous kernels slowin down the boot time or is there another reason?
 
Old 05-14-2010, 01:09 PM   #8
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Id like to ask if removin old kernels may have effect on boot time?
Absolutely no, removing them will have no effect. What ever time differences you were seeing on these other machines, could be traced to other things causing the delay. Old kernels are not accessed when booting.
 
Old 05-14-2010, 02:15 PM   #9
jaymz69
LQ Newbie
 
Registered: Jun 2007
Posts: 18

Rep: Reputation: 1
so what could it be? the difference is really visible so Id like other machines to boot as quickly -- is clean install the only solution or may I do sth else?
how can I find out whats the delay caused by?
 
Old 05-15-2010, 06:41 AM   #10
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
so what could it be?
Lots of things can cause the problem. A lot depends on what you have configured. If you have remote share mounts, and the other systems are not on, or not accessible, timeouts occur.

I would suggest you have a look at the 'dmesg' output. It is a long list of messages your system creates during a boot, it may give you a clew.

Try going to verbose mode ( hit the ESC key ) during a boot, and watch the messages go by. Errors show up there.

These are just tow of the places to look. There are also the logs to look into.
 
Old 05-15-2010, 10:21 AM   #11
jaymz69
LQ Newbie
 
Registered: Jun 2007
Posts: 18

Rep: Reputation: 1
I already found out whats causin the problem and created a thread asking for help here

http://www.linuxquestions.org/questi...appear-807974/

got one tip but it didnt work -- maybe U can help?
 
Old 05-15-2010, 10:55 AM   #12
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by jaymz69 View Post
so what could it be? the difference is really visible so Id like other machines to boot as quickly -- is clean install the only solution or may I do sth else?
how can I find out whats the delay caused by?
Try to interrupt while ur machine boots and check which service is taking much time to start ..
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandriva 2010 cannot boot after installation on Raid 1 zhuqing8027 Mandriva 3 11-17-2009 02:54 PM
Mandriva 2010 cannot boot after installation on Raid 1 zhuqing8027 Linux - Newbie 1 11-15-2009 01:07 AM
Mandriva Linux 2010 Alpha 1: A Faster Boot Time downloadtube Linux - News 0 06-22-2009 11:13 AM
Howto: Diskless client Linux-machine with extra old AMD <300Mhz, without PXE&USB boot frenchn00b Linux - General 1 11-13-2007 05:34 PM
howto delete LilO via dual boot SPo2 Linux - General 4 05-11-2007 09:36 AM


All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration