Dual system (linux+window) Modify startup preferences

1) Open a Terminal window (CTRL+ALT+T)

2) Find the startup sequence number of the Windows operating system.

Type the command: cat /boot/grub/grub.cfg | grep menuentry



In the screenshot below, you will see that "Windows 7..." is the fifth entry, but since entry numbers are counted from 0, Then the real entry number should be 4.

3) Edit /etc/default/grub and

type the command: sudo vim /etc/default/grub

Change GRUB_DEFAULT to 4, then save the file and exit.



4) Update the boot loader with the modification just now.

Type the command: sudo update-grub


Ok, you can start the system to see. Comments are welcome if you have any questions.

Appendix: Original address: http://howto.cnet.com/8301-11310_39-20111987-285/how-to-change-the-boot-order-of-a-dual-boot-linux-pc/

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326778714&siteId=291194637