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

Re: checking whether partition mounted as ext3



* Faheem Mitha <faheem@email.unc.edu> [2004:01:19:02:39:14+0000] scribed:
> On Sun, 18 Jan 2004 18:00:51 -0500, Paul Morgan <paulswm@earthlink.net> wrote:
> > On Sun, 18 Jan 2004 13:51:28 -0700, Doug Holland wrote:
> >
> >> Run mount at the command line, with no arguments, and it'll tell you which 
> >> filesystems are mounted with which fs types.
> >> 
> >> I'm not sure how to tell which mode an ext3 partition is using, though I think 
> >> running fsck may tell you.
> >
> > Running "mount", as you suggest, will tell you with which options the FS
> > was mounted, including the journaling mode.
> 
> It just seems to echo what is in /etc/fstab. I wanted something which
> actually went and checked the partitions. 
<snip />

If you want to know what the running OS is using, look to /proc :

   cat /proc/self/mounts

If that still tells you `ext3/ext2', then I suspect that the kernel and
the filesystem have some kind of (code) agreement to dynamically
negotiate -- but, that is only a guess ;>

hth

-- 
Best Regards,

mds
mds resource
877.596.8237
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know.  The more I know, the more I know I don't know . . .
--

Attachment: signature.asc
Description: Digital signature


Reply to: