参考:http://blog.csdn.net/hsg77/article/details/50280085 centos7中yum安装ntfs-3g
恢复centos 7与windows系统引导
1. 先安装win7,再安装centos7.
2. 安装ntfs-3g
2-1 加源
[root@centos ~]# wget -O /etc/yum.repos.d/epel.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的启动项。
阅读(832) | 评论(0) | 转发(0) |