openEuler Linux 光驱开启自动挂载
创建光驱挂载目录
mkdir -p /mnt/cdrom
手动挂载光驱
但是系统重启后挂载失效
mount /dev/cdrom /mnt/cdrom
取消光驱挂载
umount /mnt/cdrom
光驱开机自动挂载
临时挂载光驱
mount /dev/cdrom /mnt/cdrom
编写配置文件/etc/fstab
vi /etc/fstab
追加以下内容:
/dev/cdrom /mnt/cdrom iso9660 defaults 0 0
完整内容如下:
#
# /etc/fstab
# Created by anaconda on Wed Jul 5 01:41:57 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/openeuler_oracle-root / xfs defaults 0 0
UUID=90a8aff4-68c0-4f98-a253-2cf90b0c5d6a /boot ext4 defaults 1 2
UUID=A62B-A60E /boot/efi vfat umask=0077,shortname=winnt 0 2
/dev/mapper/openeuler_oracle-swap none swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 defaults 0 0
完整操作过程
重启系统后检查
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/188693.html