红联Linux门户
Linux帮助

关于autofs的问题……

发布时间:2011-09-24 23:24:01来源:红联作者:gogo11
系统centos6.0
引用:
[root@localhost gogo11]# cat /etc/auto.master
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
[root@localhost gogo11]#


其中有作用的有3行,如下:
/misc /etc/auto.misc说的安装点为/misc,但光盘挂载的时候是在/media下边,怎么没有在/misc下边?
/net -hosts 是什么时候用,请帮忙举个例子!
+auto.master是什么意思?

引用:
[root@localhost gogo11]# cat /etc/auto.misc
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
[root@localhost gogo11]#

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom说是把光盘挂到auto.master里边指定的/misc下边的cd目录,也就是/misc/cd。但我的为什么是在/media里边建立一个一个以光盘卷标做目录的结构。例如:
文章评论

共有 2 条评论

  1. 于 2012-05-31 18:17:47发表:

    我今天碰到一模一样的问题

  2. luodeke 于 2011-09-25 07:09:23发表:

    具体我都忘了,但是好像要进入/misc目录过后要cd cd这个目录才能挂载。这是我学习CE的时候自己做的一个和autofs有关的实验,你可以看看:http://276660374.wp5.dvbbs.net/forum.php?mod=viewthread&tid=336&extra=page%3D1