执行mount挂载命令 报错:mount: you must specify the filesystem type

mount/dev/sr0 /mnt/cdrom 想挂载镜像到/mnt/cdrom,来用做yum源,挂载报错如下


mount:you must specify the filesystemtype报错翻译是说:因为没有指定文件系统

执行mount挂载命令 报错:mount: you must specify the filesystem type
使用df -T -h 查看文件系统格式
执行mount挂载命令 报错:mount: you must specify the filesystem type
文件系统为ext4格式,接下来我进行如下操作
mount -t ext4 /dev/cdrom/ /media,结果报错如下
mount: nomedium found
通过查询,是因为ISO镜像没有加载到光盘里面,然后我去看一下虚拟机,
执行mount挂载命令 报错:mount: you must specify the filesystem type
果然是未加载虚拟机,可以重新去选择虚拟机文件,点击确定,看标识符是否如上图那样已经加载上镜像。

这样再进行挂载就不会报错了

执行mount挂载命令 报错:mount: you must specify the filesystem type

重新执行挂载命令:成功

执行mount挂载命令 报错:mount: you must specify the filesystem type