Ubuntu11.10 boot menu delete excess kernel (old version) adjust the startup sequence of different operating systems

Source: Internet
Author: User
Many users generally choose Windows + Ubuntu dual-system. After a long time, the boot menu will become increasingly bloated as the Ubuntu kernel continues to upgrade. The following is a brief introduction of how to delete the excess kernel (old version) from the boot menu, and how to adjust different operations...
Many users generally choose Windows + Ubuntu dual-system. After a long time, the boot menu will become increasingly bloated as the Ubuntu kernel continues to upgrade. The following describes how to delete unnecessary kernels (earlier versions) from the boot menu and how to adjust the startup sequence of different operating systems. Ubuntu is started with grub boot. After Ubuntu is upgraded to a new version, grub automatically adjusts the boot menu order, puts the new kernel at the start of the boot menu, and does not delete the long kernel version. In this way, the startup menu will become very bloated when Ubuntu is upgraded more frequently. In addition, earlier versions of the kernel will not be used, so it is better to delete them. Solution: 1. find the kernel version that has been installed in the system, enter the command dpkg -- get-selections | grep linux-image in the terminal, and then the installed kernel in the system will be displayed, for example: linux-image-2.6.35-22-generic installlinux-image-2.6.38-10-generic installlinux-image-2.6.38-11-generic installlinux-image-2.6.38-8-generic installlinux-image-3.0.0-12-generic installlinux-image-generic install 2. uninstall the old kernel version, enter the command in the terminal: sudo apt-get remove linux-image-2.6.35-22-generic linux-image-2.6.38-8-generic linux-image-2.6.38-10-generic above the command and meaning: dpkg -- get-selections [ <表达式> ...] Print the list of selected software packages to the standard output; search for grep linux-image; view the installed linux kernel version by uname-. In this way, the old kernel version is deleted. However, if you modify the boot menu of grub, the latest Ubuntu is automatically placed first and Windows is placed last. We often want to adjust Windows to the front position, and may modify the default startup item and wait time. Solution: 1. find the grub configuration, open the configuration document, and enter the command "sudo gedit/boot/grub" at www.2cto.com. cfg 2. modify grub configuration set default = "0": indicates the default startup item, "0" indicates the first one, and so on. Set timeout = 10: indicates the default wait time, in seconds. Find the windows startup item and cut it before copying it to all the Ubuntu startup items, for example, ### BEGIN/etc/grub. d/30_os-prober ### menuentry "Windows 7 (loader) (on/dev/sda1)" -- class windows -- class OS {insmod part_msdos insmod ntfs set root = '(hd0, msdos1) 'search -- no-floppy -- fs-uuid -- set = root A046A21446A1EAEC chainloader + 1 }## END/etc/grub. d/30_os-prober ### 3. save and exit. Finally, restart the machine as you wish. Author: X-Dragon mouse

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.