[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Get rid of /etc/mtab ?



On Fri, Jun 28, 2002 at 12:21:40PM +1000, Martijn van Oosterhout wrote:
> This comes up every now and then and deserves a FAQ entry (if it hasn't one
> already).

People could read the docs, mount(8) says:

The  programs  mount and umount maintain a list of currently mounted file systems in
the file /etc/mtab.  If no arguments 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 infor­
mation is lost that way, and in particular working with the loop device will be less
convenient.

-- 
Peter Mathiasson, peter at mathiasson dot nu, http://www.mathiasson.nu
GPG Fingerprint: A9A7 F8F6 9821 F415 B066 77F1 7FF5 C2E6 7BF2 F228

Attachment: pgpbgdqM00SpI.pgp
Description: PGP signature


Reply to: