Centos 7 安装和双系统配置

配置yum阿里源和EPEL源

EPEL (Extra Packages for Enterprise Linux)为“红帽系”的操作系统扩展支持软件包,适用于RHEL、CentOS和Scientific Linux.

 cd /etc/yum.repos.d
 mv CentOS-Base.repo CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all && yum makecache
yum update

Grub 自动更新双系统引导

需要先安装ntfs-3g(配置epel源后才能下载),使得linux 能自动识别windows分区和引导区

yum install ntfs-3g
grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-957.27.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.27.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-957.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-b8ddbdb81c3047be9202efde8d979a54
Found initrd image: /boot/initramfs-0-rescue-b8ddbdb81c3047be9202efde8d979a54.img
Found Windows 7 (loader) on /dev/sda1
done

你可能感兴趣的:(linux系统)