Linux CentOS 8 挂载硬盘[VM虚拟机]

1.连接

2.输入命令

mount /dev/cdrom /mnt


3.编辑/etc/yum.repos.d/CentOS-Linux-Media.repo 文件

# CentOS-Linux-Media.repo
#
# You can use this repo to install items directly off the installation media.
# Verify your mount point matches one of the below file:// paths.

[media-baseos]
name=CentOS Linux $releasever - Media - BaseOS
baseurl=file:///mnt/BaseOS
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[media-appstream]
name=CentOS Linux $releasever - Media - AppStream
baseurl=file:///mnt/AppStream
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

©版权声明
作者:fengfan
链接:http://bbs.fengidc.cn/index.php/linuxcentos8gzypvmxnh/
作者更多文章:http://bbs.fengidc.cn/index.php/author/fengfan/
来源:FENG-BBS
文章版权归作者所有,未经允许请勿转载。
THE END
分享
二维码
海报
Linux CentOS 8 挂载硬盘[VM虚拟机]
1.连接 2.输入命令 mount /dev/cdrom /mnt 3.编辑/etc/yum.repos.d/CentOS-Linux-Media.repo 文件 # CentOS-Linux-Media.repo # # You can use this repo ……
<<上一篇
下一篇>>