win7和centos7双系统--转

转自http://blog.chinaunix.net/uid-30867756-id-5758575.html

参考:http://blog.csdn.net/hsg77/article/details/50280085          centos7中yum安装ntfs-3g
http://jingyan.baidu.com/article/c35dbcb0e87c4f8916fcbc8a.html     恢复centos 7与windows系统引导
1. 先安装win7,再安装centos7.
2. 安装ntfs-3g
   2-1 加源
   [root@centos ~]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
   2-2 更新
   [root@centos ~]# yum update
   2-3 安装
   [root@centos ~]# yum install ntfs-3g
3. 添加win7启动项
   [root@centos ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
系统自动找到windows7系统的引导项,并加入到了grub.cfg菜单中。这样就避免了手功改动文件的危险,并且所有系统都能正常启动。 
执行命令后显示:
[root@centos ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-514.2.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.2.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-55a7d7a46c3e4d7ca520fced4d8f1756
Found initrd image: /boot/initramfs-0-rescue-55a7d7a46c3e4d7ca520fced4d8f1756.img
Found Windows 7 (loader) on /dev/sda1
done
[root@centos ~]#
4. 重启后即可看到centos和win7的启动项。

转载于:https://www.cnblogs.com/seifguo/p/7592610.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值