02_ windows and Linux dual boot

Source: Internet
Author: User

1. Grub2 Boot window.

---------------------Step 1---------------------------------

Vim/etc/grub.d/40_custom

----------------------Step 2-----------------------------------

Press I to enter edit mode and add the following:

Menuentry "Window8.1" {

Insmod NTFS

Set root= (HD0,MSDOS1)

Chainloader +1

}

Press ESC to exit edit mode, enter: Wq Save to exit vim

---------------------Step 3--------------------------------------

Vim/etc/default/grub

Modify grub_default=2 =>2 as the default startup as the 3rd startup item

---------------------Step 4--------------------------------------

Update Grub.cfg

Grub2-mkconfig–o/boot/grub2/grub.cfg

--------------------Step 5--------------------------------------

Last reboot

Reboot

2.Window Boot Linux

If you want to boot with window without the window option, you can use the following method to enter window first

--------------------Step 1--------------------------------------

Start the computer, press C to enter grub when the boot option appears

--------------------Step 2--------------------------------------

Use the Ls–l command to see where the window is installed. The general situation is: MSDOS1

--------------------Step 3--------------------------------------

Set root= (HD0,MSDOS1)

Chainloader +1

Boot

--------------------Step 4--------------------------------------

After entering window, open EASYBCD 2.2 software

    1. Add a new entry →linux/bsd→ type select GRUB2 and click Add Entry
    2. BCD deployment →MBR configuration options → re-create/restore boot file, point to execute action
    3. Win+r input msconfig, select Boot tab, modify timeout: 10, also on when Startup tab countdown 10 seconds
    4. Restarting the machine

02_ windows and Linux dual boot

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.