Win7 installing Ubuntu, how to set Win7 as the default startup item

Source: Internet
Author: User
First method: Run sudo gedit/etc/default/grub  enter password
Change grub_default=0 to Grub_default=4 (if no other settings have been made, Win7 is the 5th item at startup. Can be changed according to their own circumstances)
Then run sudo update-grub

Second method: sudo chmod +w/boot/grub/grub.cfg (give the file Write permission)
sudo gedit/boot/grub/grub.cfg changes the set default= "0" to set default= "4" (the first to run Sudo update-grub is also to modify the file, but will revert to the default when modifying the upgrade).
It is best to run sudo chmod-w/boot/grub/grub.cfg (cancel the file Write permission)

Third method: sudo mv/etc/grub.d/30_os-prober/etc/grub.d/06_os-prober (can be changed to 06~09 any value, loading the files in/ETC/GRUB.D in numerical order)
Then run sudo update-grub (this starts when Win7 is in the first item, if multiple cores are installed or the default Win7, the first two are changed if multiple cores are installed Win7 location)

Note: Transfer from http://blog.csdn.net/wang02011/article/details/6293204

Win7 installing Ubuntu, how to set Win7 as the default startup item

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.