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

Re: O_CREAT -> /etc/mtab?




Hi Mike,

> but I am also seeing writes to "/etc/mtab" and some weird variations
> of /etc/mtab such as "/etc/mtab~53" and "/etc/mtab~83".  What are
> these "files"?  They do not exist on the system and no other files in
> the boot cycle have the "^\d{2}" extension.

See mount(1) and search for mtab.

    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.

    -n    Mount without writing in /etc/mtab.  This is neces-
          sary  for  example when /etc is on a read-only file
          system.

    /etc/mtab table of mounted file systems
    /etc/mtab~ lock file
    /etc/mtab.tmp temporary file


Ralph.

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/