The Ubuntu 10.10 was recently installed. Because there was a system such as Windows 7, there was a boot menu after Ubuntu was installed. By default, Ubuntu starts. I found a lot of ways to modify the startup options on the Internet. I have summarized them as follows: First, the best way to get online: install startupmanager—— graphical startup manager open terminal input: sudo apt-get install startupmanager installation startup management System —— system management —— boot manager, select the default boot operating system. Second, the most convenient method: adjust the default boot order of the Windows system (do not need to modify grub.cfg) The file name of the script file in the /etc/grub.d directory starts with a number, which determines the update-grub is executed. The order in which the contents of each file are executed. 1. Open the file browser with root privileges using the sudo nautilus command. Then find the 30_os-prober file, change the number 30 of the 30_os-prober file name to a number between 05 and 10 (not much optional 06, 07, 08, 09), for example, 08_os-prober, In this way, the menu items in grub.cfg are created, and the sorting of windows will be automatically before ubuntu; 2. Run the sudo update-grub command. As you can see, windows7 is already in the first position. Third, the most online method (modify grub.cfg) Use the sudo gedit /boot/grub/grub.cfg command to open the grub.cfg file, one way is to set the default in the file="0" 0 Change to the serial number of the operating system to be started by default (starting at 0). Then save; another method is to cut the corresponding section of the boot description of Windows to the front of the startup description section; use these two methods can start Windows by default, but modify the grub.cfg file to modify the default startup item should be Note: When using the update-grub command or system upgrade, grub upgrade, etc., the grub.cfg file will be restored. Need to be revised. If you are lazy to modify the grub.cfg file after each update-grub, you can do the following: Open the 00_header file with the sudo gedit /etc/grub.b/00_header command and find ser default ="${GRUB_DEFAULT} " One line, replace ${GRUB_DEFAULT} with the serial number of the operating system to be started by default (starting at 0), save, and then update-grub. This way grub.cfg generated after each update-grub will automatically change to what we want. Fourth, if you install a different system on the hard disk at the same time, or because Ubuntu update /install software and generate a number of startup items, in order to avoid the trouble of each boot, you can put some low version or not The required startup items are commented out, so the boot does not seem so messy. Specific practices: sudo gedit /boot/grub/grub.cfg and then find the menuentry ..., look at the system startup items to be removed, add "#" in front of the menuentry word and then save it. Note: At least one is required. It is recommended to keep the two ubuntu options, leaving the two versions of the highest version, and then re-checking the type is not one: one is normal (not indicated "recovery mode" or rdquo; or : recovery”), the other is recovery mode (specify “ recovery mode & rdquo; or: & ldquo; recovery & rdquo;). In addition, the item containing Window cannot be commented with “#”, otherwise you will not find the relevant system entry. There is also a memory test (menuentry "Memory test .....“), if you want to use this feature to leave an item, personally think that the entrance that leaves more options represents more functions, but the speed of memory testing will also Spend longer time. The following is the configuration of my machine boot item, windows is the last item, installed XP. -------------------------------------------------- -------------------------------------## DO NOT EDIT THIS FILE## It is automatically generated By grub-mkconfig using templates# from /etc/grub.d and settings from /etc/default/grub#### BEGIN /etc/grub.d/00_header ###if [ -s $prefix/grubenv ]; thenset Have_grubenv=trueload_envfiset default="2"if [ "${prev_saved_entry}" ]; thenset saved_entry="${prev_saved_entry}"save_env saved_entryset prev_saved_entry=save_env prev_saved_entryset boot_once=truefifunction savedefault {if [ -z "$ {boot_once}" ]; thensaved_entry="${chosen}"save_env saved_entryfi}function recordfail {set recordfail=1if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once }" ]; then save_env recordfail; fi; fi}function load_video {insmod vbeinsmod vga}insmod part_msdosinsmod ext2set root='(hd1,msdos8)'search --no-floppy --fs-uuid --set c825786c-e42c- 4fed-8cc2-fd2a610a183bif loadfont /usr/share/grub/unicode.pf 2 ; thenset gfxmode=1280x1024load_videoinsmod gfxtermfiterminal_output gfxterminsmod part_msdosinsmod ext2set root='(hd1,msdos8)'search --no-floppy --fs-uuid --set c825786c-e42c-4fed-8cc2-fd2a610a183bset locale_dir=($root)/boot /grub/localeset lang=zhinsmod gettextif [ "${recordfail}" = 1 ]; thenset timeout=-1elseset timeout=3fi### END /etc/grub.d/00_header ###### BEGIN /etc /grub.d/05_debian_theme ###set menu_color_normal=white/blackset menu_color_highlight=black/light-gray### END /etc/grub.d/05_debian_theme ###### BEGIN /etc/grub.d/10_linux # ###menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
With the advent of the Internet age, computers have become an indispensable device in peoples lives
Everyone is familiar with the operation of turning on and off, which is the most basic operation of
Everyone knows that there is a menu toolbar in win7 system, which has many functions tha
Windows system has built-in burning function since XP version. With the built-in burning function, w
Win7 computer desktop icon has a blue shadow how to remove
Win7 Ultimate system to adjust the volume of each application method
Win7 can not identify the solution of u disk
The easiest to ignore by veterans: Where is the entry for Windows 7
Win7 system taskbar pops up error prompt USB root hub how to do
How to solve the Dwwin.exe initialization failure when the Win7 system is shut down
Win 7 SP1 official version of the installation process graphic report
Win7 uses the registry to let the IE title bar display the method of personalized signature
Windows operating system common troubleshooting methods summary
Win7 can't add files to the Windows Media Player media library
Win8 Tip: Automatically switch input method for different application windows
Build 9369 includes support for the ReFS file system
How to view desktop icons in Win7
How to speed up OneDrive upload speed with Windows8.1 update
Win7 error 0x000006d18 two solutions
Win7 account password can not be modified solution
Win10 System Reset Group Policy Editor Method
How to get back the win8.1 experience index?
WIN7 enables/disables wireless network card through batch processing