1 in the/etc/boot/gurb2/grub.cfg
# # # End/etc/grub.d/00_header after adding:
# # # Begin/etc/grub.d/30os_prober # #
Menuentry ' Windows ten (loader) (on/dev/sda1) ' {
Insmod Part_msdos
Insmod NTFS
Set root= ' HD0,MSDOS1 '
Chainloader +1
}
# # # End/etc/grub.d/30os_prober # #
In Linux view Win7 system is the partition is SDA several, if it is sda1 set root= ' hd0,msdos1 ' and so on.
2 Modifying the boot order
In
Terminal_output Console
if [x$feature_timeout_style = xy]; Then
Set Timeout_style=menu
Set timeout=5
After adding set Default=0 0 represents the first option in the boot menu if you want to choose a third, that's 3.
3 Removing redundant system boot entries
After the kernel is upgraded, Linux retains the boot entry for the previous kernel and deletes it if it is not needed.
Rpm-q kernel Show All current cores
RPM-E kernelxxxxx Delete the kernel you want to delete
The corresponding boot menu in grub.cfg is automatically deleted.
This article is from the Linux Learning Notes blog, so be sure to keep this source http://firestorm.blog.51cto.com/7388617/1758772
CentOS Add Windows/centos Dual system boot