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