Windows 7 Rhel 7 dual system installation

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.