Ubuntu 10.10 and windows OS startup sequence modification

Source: Internet
Author: User
Ubuntu10.10 and windows dual-system startup sequence modification I think most of the children's shoes when installing ubuntu, windows on the hard disk will be retained, you can choose when starting the computer, if you want to enter windows, go to windows, if you want to enter ubuntu, enter ubuntu. However, after ubuntu is installed, it starts by default... ubuntu10.10 and windows dual-system startup sequence modification I think most of the children's shoes when installing ubuntu, windows on the hard disk will be retained, you can choose when starting the computer, if you want to enter windows, go to windows, if you want to enter ubuntu, enter ubuntu. However, after ubuntu is installed, it starts ubuntu by default, which is nothing for children's shoes that use ubuntu as the system, but for those who often need to enter windows, it is inconvenient to press the down arrow several times and press Enter. Is there a way to enable windows to be started by default when the computer is started? This is possible, and it does. When it comes to startup, GRUB is a well-known startup management tool in Linux (the LILO is no longer popular). of course it is GRUB2 now. the most important difference between GRUB2 and GRUB is that, the GRUB file that stores the system startup information is/boot/grub/menu. lst, while GRUB2 is/boot/grub. cfg. As ubuntu10.10 uses GRUB2, GRUB2 is used here. Enter gedit/boot/grub on the terminal. cfg: open the FILE. the comments for the first few lines are as follows: # do not edit this file # It is automatically generated by grub-mkconfig using templates # from/etc/grub. d and settings from/etc/default/grub # make it clear here: Do not edit this file. This file is based on/etc/grub. the template of d and the setting of/etc/default/grub are automatically generated. Therefore, it is incorrect to edit this file on the Internet to modify the startup sequence, at least not reasonable, this file is automatically generated once the kernel is updated, and the previous update will become invalid. Since this file cannot be modified, check/etc/grub. d and/etc/default/grub are good. The former is a folder, no matter for the time being. The latter is a file and its content is as follows (some comments that are not too helpful are deleted ): # If you change this file, run 'UPDATE-grub 'afterwards to update #/boot/grub. cfg. GRUB_DEFAULT = 0 primary = true GRUB_TIMEOUT = 10 GRUB_DISTRIBUTOR = 'lsb _ release-I-s 2>/dev/null | echo Debian 'Partition = "quiet splash" GRUB_CMDLINE_LINUX = "" GRUB_DEFAULT indicates the order of startup items, starting from 0 In turn, the following startup items are represented (this is on my computer, different ubuntu versions and windows systems may have some differences): Ubuntu, with Linux 2.6.35-28-generic Ubuntu, with Linux BRL. 35-28-generic (recovery mode) Memory test (memtest86 +) Memory test (memtest86 +, serial console 115200) Windows 7 (loader) (on/dev/sda1) windows ranks fourth (note that the order starts from 0). therefore, change the value of GRUB_DEFAULT to 4 and run the command: sudo update-grub. restart the computer, by default, the system is switched to windows. In addition, there is also a more advanced method that can be modified to windows as the default startup system, run: sudo mv/etc/grub. d/30_os-prober/etc/grub. d/06_os-prober sudo update-grub after the execution is complete, restart the computer and start windows by default.
Related Article

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.