Ubuntu Dual system environment hides other boot items

Source: Internet
Author: User

System Environment: ubuntu16.04
Requirements: PC-mounted Dual System (UBUNTU+WIN10), in order to meet certain needs, the need to WIN10 system to the computer to disappear, so that you can not see and go into it.
Practice: Of course, it is not possible to really delete the WIN10 system, but can be removed from the system level of its startup items or skip the selection of its startup items, that is, the deletion of the start of the WIN10 link.
With:
There are two commands that need to be used:
# 1. Edit the key files-grub-a multi-os launcher from the GNU Project
$ sudo vim/etc/default/grub
# 2. Update it, automatically configure to/boot/grub/grub.cfg
$ sudo update-grub

For the statements in the grub file, check out the following:
# Set the default startup item, I'll install the win10 here first, after the Ubuntu, startup item Ubuntu is 0,win10 is 4. This list can also be seen in the boot menu of your dual system where your Ubuntu is selected in the list (the first one is 0).
Grub_default=0

# in a single system environment (only Ubuntu or other Linux systems), the Display boot menu will be skipped
Grub_hidden_timeout=0

# black screen, does not display the countdown in the Grub_hidden_timeout process
Grub_hidden_timeout_quiet=true

# Get the release name (e.g. Ubuntu, Debian)
Grub_distributor= ' lsb_release-i-s 2>/dev/null | | Echo Debian '

The ' Linux ' command line that will be imported into each startup item (including the recovery mode startup item) will only be added to the startup item in normal mode
grub_cmdline_linux_default= "Quiet Splash"

# the ' Linux ' command line will be imported to each startup item (including the recovery mode startup item)
Grub_cmdline_linux= ""

Well, we don't have to worry about it here, we just open the grub_hidden_timeout=0 comment and add grub_disable_os_prober=true at the end to ignore the other system startup items in a dual-system environment. Direct access to single system boot.

Ubuntu Dual system environment hides other boot items

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.