erw23312 发表于 2015-6-16 08:39:05

windows 7 和 centos 7双系统


先安装的windows 7,后安装的centos 7, 重启后直接进入centos7系统。启动项没有windows 7。

解决方法:


[*]yum install epel-release ntfs-3g -y


[*]打开windows 7 所在的磁盘分区


[*]df -h , 找到 windows 7对应的磁盘分区,如,sda2, 则为hd0,1 (表示第一个磁盘上的第二个分区)


[*] vim /etc/grub2.cfg
menuentry 'win7'{
      set root=(hd0,1)
      chainloader +1
}


[*]reboot


页: [1]
查看完整版本: windows 7 和 centos 7双系统