[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automounter
DMW said:
> Steven Pritchard wrote:
> > Are you trying to use the autofs (kernel) automount, or the one from
> > am-utils?
>
> Not quite sure how to tell.
I can think of two ways. First, run lsmod (or cat /proc/modules) and
see if "autofs" shows up in the list. If the use count is >0, then
you are probably trying to use autofs.
BTW, if you do have autofs installed, and this is a Red Hat box, just
"rpm -e am-utils". You don't need (or want) the userspace automounter
if you have autofs.
> What is mtab for, anyway?
The mount program uses it. From mount(8):
The programs mount and umount maintain a list of currently
mounted file systems in the file /etc/mtab. If no argu-
ments are given to mount, this list is printed. When the
proc filesystem is mounted (say at /proc), the files
/etc/mtab and /proc/mounts have very similar contents. The
former has somewhat more information, such as the mount
options used, but is not necessarily up-to-date (cf. the
-n option below). It is possible to replace /etc/mtab by a
symbolic link to /proc/mounts, but some information is
lost that way, and in particular working with the loop
device will be less convenient. Also, pathnames containing
spaces are handled correctly by /etc/mtab but not (yet) by
/proc/mounts.
I don't think I can explain it much better than that...
Steve
--
steve@silug.org | Linux Users of Central Illinois
(618)398-7320 | Meetings the 4th Tuesday of every month
Steven Pritchard | http://www.luci.org/ for more info
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.