After installing Ubuntu 13.04 under Win7, in Grub, Win7 startup is the last one, and you need to change the grub settings to set the Win7 as the default startup item. Google for a long time, found that the change/etc/default/grub is invalid, open the/boot/grub/grub.cfg, which says "Do not EDIT this FILE", and I found that even if you changed the set_ Once the default is executed, the boot order is update-grub. Then continue the search and find that two methods are effective.
Method one uses the startup manager
1. Install Startup Manager
sudo apt-get install Startupmanager
2, open the System--> System Management--> Boot Manager, in the default operating system drop-down menu select Win7, Close can.
Method Two change the file name under the/ETC/GRUB.D directory is feasible
By default Win7 corresponds to the filename is 30_os-prober, the first Linux system corresponds to 10-linux,00 is header,05 is debian-theme, visible 10 is the first startup item, only need to change the Win7 file name ( 06-09 can be) can change the starting order, after my test, successfully modified the boot sequence.
Specific practices:
sudo mv/etc/grub.d/30_os-prober/etc/grub.d/08_os-prober
sudo update-grub (this command regenerates/boot/grub/grub.cfg)