First, the installation sequence Shun
1. Install the Windows operating system first
2. Re-install the RHEL 7 system
Ii. in grub, add Windows boot information
Because after installing RHEL7, only the boot information of Linux, but not the information of Windows system, need to be added manually.
1. Modify the Grub custom profile (in this case Windows Server 2008 is installed on drive C, and Windows automatically establishes a hidden partition when installed)
[Email protected] ~]# Cat/etc/grub.d/40_custom
#!/bin/sh
EXEC tail-n +3 $
# This file provides a easy to add custom menu entries. Simply Type the
# menu entries want to add after this comment. Be careful not to change
# the ' EXEC tail ' line above.
Menuentry ' Windows Server 2008 ' {
Insmod Part_msdos
Insmod NTFS
Insmod NTLDR
Set root= (hd0,1)
Chainloader +1
Boot
}
2. Recompile the Build boot menu
[Email protected] ~]# Grub2-mkconfig-o/boot/grub2/grub.cfg
3. Reboot to see the Windows boot entry.
Iii. GRUB2 Change the boot order
GRUB2 is determined by the sequence of files in the/etc/grub.d/directory, so change the order of these files.
1. Modify the order of the files
[Email protected] ~]# cd/etc/grub.d/
[[email protected] grub.d]# ls
00_header 10_linux 20_linux_xen 20_ppc_terminfo 30_os-prober 40_custom 41_custom README
[email protected] grub.d]# CP 40_custom 02_windows
[[email protected] grub.d]# ls
00_header 02_windows 10_linux 20_linux_xen 20_ppc_terminfo 30_os-prober 40_custom 41_custom README
2. Recompile the Build boot menu
[Email protected] ~]# Grub2-mkconfig-o/boot/grub2/grub.cfg
Iv. grub2 Modify Menu display time
1. Modify the configuration file
[Email protected] ~]# Vi/etc/default/grub
grub_timeout=10
Grub_distributor= "$ (SED ' s, release. *$,,g '/etc/system-release)"
Grub_default=saved
Grub_disable_submenu=true
grub_terminal_output= "Console"
grub_cmdline_linux= "Vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet"
Grub_disable_recovery= "true"
2. Recompile the Build boot menu
[Email protected] ~]# Grub2-mkconfig-o/boot/grub2/grub.cfg
This article is from the "Nails" blog, please be sure to keep this source http://nails.blog.51cto.com/640492/1548714
RHEL 7 and Windows dual system installation