Update the Ubuntu server 10.4 kernel and edit the kernel startup Item

Source: Internet
Author: User

Environment: Ubuntu server 10.04

 

UB 10.04 uses grub2

The configuration file is in

Root @ serveru3:/etc/default # Vim/etc/default/GRUB

 

Refer:

Http://ubuntuforums.org/showthread.php? T = 1302743 & Highlight = grub2 + common

Http://ubuntuforums.org/showthread.php? T = 1195275

 

 

If there is only one operating system, you must press and hold the shfit key,

 

For more information, see the previous two articles.

 

Unhide/hide the menu hide/show menu
File:/Etc/default/GRUB
Line to edit (5 ):

Quote:
Grub_hidden_timeout = 0

Example to unhide the menu:# Grub_hidden_timeout = 0AndDefault_timeout = x

Comment out #Grub_hidden_timeout = 0

Set the wait time to X ult_timeout = x

By default, if no other operating system is found on the system, grub 2 willNotDisplay the menu. The system will boot directly into the default entry.

Grub 2 does not display menus by default when there are no other operating systems. The system directly enters the default entry.

To display the menu:

  • Place a comment symbol (#) at the start of the "grub_hidden_timeout = x" line.
  • X = the number of seconds to stay
  • Make sure the "default_timeout = x" entry is a positive integer. X is the number of seconds the menu will be displayed. Quote:
    #Grub_hidden_timeout = 0
    Grub_hidden_timeout_quiet = true
    Grub_timeout ="10"

    Ode:

gksu gedit /etc/default/grub

Save the file, then update the menu:

Code:
sudo update-grub

In this case, the system searches

Searching for grub installation Director y... found:/boot/GRUB
Searching for default file... generatin g/boot/GRUB/default file and setting th e default boot entry to 0
Searching for grub installation Director y... found:/boot/GRUB
Testing for an existing GRUB menu. lst fi le...

Cocould not find/boot/GRUB/menu. LST file. wocould you like/boot/GRUB/menu. lst gene rated for you? (Y/n) y

No/boot/GRUB/menu. lst is found. Create a new one,
Searching for splash image... None found, skipping...
Found grub 2:/boot/GRUB/CORE. img
Found kernel:/memtest86 +. Bin
Found kernel:/vmlinuz-2.6.32-22-server
Found kernel:/vmlinuz-2.6.32-21-server
Found grub 2:/boot/GRUB/CORE. img
Found kernel:/memtest86 +. Bin
Updating/boot/GRUB/menu. lst... Done

Update complete.

Root @ serveru3:/etc/default #

/Boot/GRUB # Vim menu. lst

In this way, the kernel selection project is started.

To hide the menu on boot:
There shoshould be no # symbol at the start of the line:Grub_hidden_timeout = 0Line. "0" will boot the system without a timeout. A positive integer will leave a blank screen for that number of seconds, allowing the user time to press "ESC" or "shift" to display the menu. the splash screen will still display during the timeout.

 

 

CAT/etc/LSB-release

 

Input:

View the kernel version in sudo uname-R

Root @ serveru2 :~ # Uname-R
2.6.32-22-Server

 

/Lib/modules

/Lib/modules # ls
2.6.32-21-server 2.6.32-22-Server

 

 

Input: APT-cache search Linux image server

 

Apt-Get install linux-image-2.6.32-22-server

 

View

 

Root @ serveru2:/lib/modules # ls-la
Total 24
Drwxr-XR-x 4 Root 4096 2010-06-29 19: 44.
Drwxr-XR-x 13 Root 12288 2010-06-26 08:57 ..
Drwxr-XR-x 4 Root 4096 2010-06-25 20:47 2.6.32-21-Server
Drwxr-XR-x 4 Root 4096 2010-06-29 19: 45 2.6.32-22-Server

Check the current kernel, not changed,

Uname-R
2.6.32-21-Server

 

After reboot,

 

Root @ serveru2 :~ # Uname-R
2.6.32-22-Server
Root @ serveru2 :~ #

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.