installing Windows 7
Installing Rhel 7
Re-detects if an operating system exists on the local hard disk, and then automatically generates a boot menu
Grub2-mkconfig-o/boot/grub2/grub.cfg
@ Enter the Linux system and modify the Grub.cfg file.
#vim/boot/grub2/grub.cfg
Menuentry ' Red Hat Enterprise Linux Server, with Linux 0-rescue-34786823d5874692b83de2451c506780 '--class Red--class gnu- Linux--class GNU--class os--unrestricted $menuentry _id_option ' Gnulinux-0-rescue-34786823d5874692b83de2451c506780-advanced-0ab9721b-0a35-47a0-894e-20a82df30ab2 ' {
Load_video
Insmod Gzio
Insmod Part_msdos
Insmod XFS
Set root= ' Hd0,msdos9 '
if [x$feature_platform_search_hint = xy]; Then
Search--no-floppy--fs-uuid--set=root--hint-bios=hd0,msdos9--hint-efi=hd0,msdos9--hint-baremetal=ahci0,msdos9-- Hint= ' Hd0,msdos9 ' 1cbbd1bc-1f5b-4fde-bc01-fc5a207ceab6
Else
Search--no-floppy--fs-uuid--set=root 1cbbd1bc-1f5b-4fde-bc01-fc5a207ceab6
Fi
linux16/vmlinuz-0-rescue-34786823d5874692b83de2451c506780 root=uuid=0ab9721b-0a35-47a0-894e-20a82df30ab2 RO Rd.lvm.lv=rhel/root crashkernel=auto rd.lvm.lv=rhel/swap Vconsole.font=latarcyrheb-sun16 vconsole.keymap=us RHGB Quiet
Initrd16/initramfs-0-rescue-34786823d5874692b83de2451c506780.img
}
Add the following
Menuentry ' Windows7 ' {
Set root= ' HD0,MSDOS1 '
Chainloader +1
}
Reboot, is not seeing your Windows 7 anymore.
Default Windows 7 Startup:
Vim/boot/grub/grubenv
Modify
saved_entry=red Hat Enterprise Linux Linux, with Linux 3.10.0-123.el7.x86_64
For
Saved_entry=windows 7
This article is from the "Elimination" blog, please be sure to keep this source http://zhangxiaohua.blog.51cto.com/2321741/1593541
Windows 7 Rhel 7 dual system installation