LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 991|回复: 6

autofs 的一个奇怪问题,提示没有这个文件或目录

[复制链接]
发表于 2006-8-12 23:01:56 | 显示全部楼层 |阅读模式
大家好:
  我在使用autofs的时候,有一个问题。
auto.master:
加入 /mnt         /etc/auto.misc
auto.misc:
加入 data       -fstype=ext2   :/dev/hdc5
/sbin/service autofs start
cd /mnt/data 的时候,提示 :
bash: cd :/mnt/data: No such file or directory
不知道是哪里错了?请各位指教。谢谢啦。
 楼主| 发表于 2006-8-12 23:13:40 | 显示全部楼层

autofs 的一个奇怪问题,提示没有这个文件或目录

autofs 的一个奇怪问题,提示没有这个文件或目录
大家好:
我在使用autofs的时候,有一个问题。
auto.master:
加入 /mnt /etc/auto.misc
auto.misc:
加入 data -fstype=ext2 :/dev/hdc5
/sbin/service autofs start
cd /mnt/data 的时候,提示 :
bash: cd :/mnt/data: No such file or directory
不知道是哪里错了?请各位指教。谢谢啦。
回复 支持 反对

使用道具 举报

发表于 2006-8-12 23:36:26 | 显示全部楼层
火红青春???荷荷~
回复 支持 反对

使用道具 举报

发表于 2006-8-12 23:39:31 | 显示全部楼层
#ls -ld /mnt
#mount
结果贴出来看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-13 08:08:10 | 显示全部楼层
我把//var/log/messages 中的内容贴出来
Aug 13 08:11:02 localhost autofs: automount startup succeeded
Aug 13 08:11:05 localhost dbus: Can't send to audit system: USER_AVC pid=2594 uid=81 loginuid=-1 message=avc:  denied  { send_msg } for  scontext=user_u:system_r:unconfined_t tcontext=user_u:system_r:initrc_t tclass=dbus
Aug 13 08:11:40 localhost last message repeated 7 times
Aug 13 08:11:45 localhost dbus: Can't send to audit system: USER_AVC pid=2594 ui:


Aug 13 08:11:52 localhost automount[5448]: >> mount: special device /dev/hdc5  does not exist
Aug 13 08:11:52 localhost automount[5448]: mount(generic): failed to mount /dev/hdc5  (type vfat) on /mnt/data
Aug 13 08:11:52 localhost automount[5448]: failed to mount /mnt/data
Aug 13 08:11:52 localhost automount[5450]: >> mount: special device /dev/hdc5  does not exist
Aug 13 08:11:52 localhost automount[5450]: mount(generic): failed to mount /dev/hdc5  (type vfat) on /mnt/data
Aug 13 08:11:52 localhost automount[5450]: failed to mount /mnt/data
Aug 13 08:11:52 localhost automount[5452]: >> mount: special device /dev/hdc5  does not exist
Aug 13 08:11:52 localhost automount[5452]: mount(generic): failed to mount /dev/hdc5  (type vfat) on /mnt/data
Aug 13 08:11:52 localhost automount[5452]: failed to mount /mnt/data
Aug 13 08:11:55 localhost dbus: Can't send to audit system: USER_AVC pid=2594 uid=81 loginuid=-1 message=avc:  denied  { send_msg } for  scontext=user_u:system_r:unconfined_t tcontext=user_u:system_r:initrc_t tclass=dbus


#ls -ld /mnt
[root@localhost ~]# ls -ld /mnt
drwxr-xr-x  2 root root 0  8月 13 08:11 /mnt
[root@localhost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid5433) on /mnt type autofs (rw,fd=5,pgrp=5433,minproto=2,maxproto=4)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-13 08:09:46 | 显示全部楼层
手工mount  -t vfat /dev/hdc5 /mnt/data 是正常的.太奇怪了.
回复 支持 反对

使用道具 举报

发表于 2006-8-13 09:39:34 | 显示全部楼层
autofs不是这么玩儿的

你加到了misc,那么默认就应该:
ls /misc/hda5
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表