On Fri, 31 Mar 2000, David Marshall wrote:

> Peter Pilgrim wrote:
> 
> > Hi
> >
> > I need some information about linux distributions and where
> > they have the system mount table.
> >
> > For SuSE Linux this file is ``/etc/mtab''
> >
> > I need to know what it is for Red Hat Linux, Debian, Slackware, TurboLinux
> > and Linux Mandrake. THis is for a Java Linux portable JNI project
> 
> For Redhat it's "/etc/fstab"

Ummm, no, that's where you specify what you want mounted, not what is
currently mounted.  /etc/mtab should exist on all recent Linux distributions,
because it is created by mount itself.  From the mount(8) man page:

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.

So, I'd say that both /etc/mtab and /proc/mounts are reasonably
cross-distribution ways to look for the currently mounted filesystems.

Scott


-- 
=============================================================================
Scott Murray                                        email: [EMAIL PROTECTED]
http://www.interlog.com/~scottm                       ICQ: 10602428
-----------------------------------------------------------------------------
     "Good, bad ... I'm the guy with the gun." - Ash, "Army of Darkness"


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to