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