Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set the default boot sequence of Ubuntu multi-system in dual system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to set the default startup sequence of Ubuntu multi-system in the dual system, I believe most people do not know much about it, so share this article for your reference. I hope you will get a lot after reading this article. Let's learn about it together.

Many people install Linux systems, such as Fedora or Ubuntu operating systems to play, generally retain a copy of the Windows operating system as the active system, but found that after installing the Linux system, the default boot menu becomes the Linux system, every time you restart the computer, you have to choose to enter the Windows system, which is a bit troublesome. Fortunately, the GRUB bootstrapper used by Linux allows you to modify the default startup entry, so let's take Ubuntu14 as an example to see how to modify the default startup operating system entry.

1. After installing Ubuntu Linux, the default startup item is set to "Ubuntu". If you forget to choose when you start, and the Windows upgrade is not there when you restart, you will automatically switch to Ubuntu. If you use the Windows operating system environment, there will be a lot of inconvenience.

2. To modify the boot sequence, we need to modify the GRUB configuration file of Ubuntu. Using common editing programs such as "gedit" can easily open and modify the file, but here because of the system permissions involved, it is recommended to use the terminal to open and edit the file. Click "Launcher" in the upper left corner of Ununtu to search for "Terminal" and you can open the terminal.

3, after opening, in order to open GRUB-related configuration file editing, you can select gedit, or you can use common vi commands to write directly, so the vim commands shown here can be replaced with your personal favorite commands at any time, such as gedit. In general, someone may modify the GRUB configuration file "/ boot/grub/grub.cfg" directly, but use "sudu vim / boot/grub/grub.cfg" to find that this file is automatically generated by the system. It is not recommended to edit it directly, but should go to "/ etc/grub.d" and "/ etc/default/grub" to modify it.

4, "/ etc/grub.d" is the operating system menu directory, generally generated by the system, we do not need to modify, the next is to modify the "/ etc/default/grub" file. Open the configuration file using the "sudo vim / etc/default/grub" command.

5. The "GRUB_DEFAULT=0" is the default startup item set. GRUB startup items are indexed by numbers according to the startup menu, starting with 0. Combined with the previous system boot menu, we can see that the startup entry for Windows8 is in item 5, so here we need to change it to 4 (because the first item starts with 0).

6. After the modification is completed, after saving and exiting, you also need to execute "sudo update-grub" to regenerate the GRUB startup configuration item.

7. At this point, you are done. Restart the computer to see the effect. The default startup item result has been switched to "Windows8". In the same way, if necessary, you can re-switch the default startup item to any desired startup menu item.

The above is all the contents of the article "how to set the default boot sequence of Ubuntu multi-systems in dual systems". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report