windows 7 rhel 7 雙系統安裝

來源:互聯網
上載者:User

標籤:windows   雙系統   rhel   


安裝Windows 7

安裝RHEL 7


重新檢測本地硬碟上是否存在有作業系統,然後自動產生啟動菜單
grub2-mkconfig -o /boot/grub2/grub.cfg

  @進入LINUX系統,修改grub.cfg檔案。

#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
}

加入下面這些

menuentry ‘Windows7‘ {
   set root=‘hd0,msdos1‘
   chainloader +1
}

重啟,是不是看到你的 Windows 7了。


預設 Windows 7 啟動:


vim /boot/grub/grubenv

修改

saved_entry=Red Hat Enterprise Linux Linux, with Linux 3.10.0-123.el7.x86_64

saved_entry=Windows 7

本文出自 “消消” 部落格,請務必保留此出處http://zhangxiaohua.blog.51cto.com/2321741/1593541

windows 7 rhel 7 雙系統安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.