要光盘自动mount

    技术2022-05-11  61

    要光盘自动mount

    本站  linuxman 〖 返回〗〖转发〗

    要光盘自动mount  1.运行ntsysv,选中后台程序autofs; 2.修改两个配置文件在/etc/auto.misc 和 /etc/auto.master; /etc/auto.misc配置文件: cdrom -fstype=iso9660,ro :/dev/cdrom auto.master: /misc /etc/auto.misc --timeout 60 3.启动autofs; /etc/rc.d/init.d/autofs start 4. 放入一片光盘进入光驱后,不需任何动作,直接进入目录/misc/cdrom,autofs 将自动先为你mount光驱, 超过一分钟未使用它们,且当前目录不是自动mount 目录/misc/cdrom,,系统将自动umount它们。 linuxman@263.net 


    最新回复(0)