Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Other discussions > Linux and software for Linux
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 12-11-2009, 06:42 AM
Stream Recorder
 
Posts: n/a
Default

How to edit grub entries in Ubuntu 9.10 (No file /boot/grub/menu.lst)


Grub entries in Ubuntu 9.10 can be found in the following file
Code:
/boot/grub/grub.cfg
compared to the following file used in previous versions:
Code:
/boot/grub/menu.lst
grub.cfg contains the Grub menu instructions. Unlike menu.lst, grub.cfg is NOT MEANT TO BE EDITED!!! grub.cfg is automatically generated or updated whenever "update-grub" is executed. The command must be run as root.


Code:
grub (/etc/default/grub)
This file contains information previously found in the upper section of /boot/grub/menu.lst. It contains settings primarily affecting Grub's menu display. This file can be edited by root to make changes to these settings; they will be imported into grub.cfg when "update-grub" is executed.

Code:
/etc/grub.d/ (folder)
The files in this folder are read during execution of '"update-grub"'command. The scripts in these files export the information they gather into /boot/grub/grub.cfg


More about editing Grub2 entries
Reply With Quote
  #2  
Old 12-11-2009, 07:02 AM
Stream Recorder
 
Posts: n/a
Default

Re: How to edit grub entries in Ubuntu 9.10 (No file /boot/grub/menu.lst)


If you want to remove entries with old kernels from your Grub menu, remove the kernel and the Grub entry will be removed as well.

How to remove old kernels
  1. Go to Terminal and paste the following command: uname -r
    It will print the version of the Linux kernel you are running, this is the one you want to keep. It should look something like this: 2.6.31-16-generic.
  2. Go to System -> Administration -> Synaptic Package Manager
  3. Paste "linux-image-" (without quotes) into the search box of Synaptic Package Manager. The results should show every available and installed kernel. A green box on the left indicates that the package is installed.
  4. Once you have located an old kernel, right-click on it and select "Mark For Complete Removal". Repeat for every kernel that you want to remove (make sure to leave the current kernel!!!) and click the Apply.

Please note that you need to be very careful with what you remove. Do NOT remove your current kernel, or anything that is not a linux-image. It is possible to break Ubuntu otherwise!

Your computer and Grub menu should now be free of old kernels.
Reply With Quote
  #3  
Old 06-06-2011, 05:08 AM
mikellis mikellis is offline
Junior Member
 
Join Date: Jun 2011
Posts: 1
mikellis is on a distinguished road
Smile

Re: How to edit grub entries in Ubuntu 9.10 (No file /boot/grub/menu.lst)


Thank you so much for this brilliant description of how to edit the Grub 2 file. Other web sites suggested messing about with a linux config files and all sorts of horrors.! Your simple explanation worked perfectly first time. Thank you.
Reply With Quote
Reply Post New Thread
Tags: , , , , ,



Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:17 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons