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

Re: checking whether partition is mounted ext3



On Sun, 18 Jan 2004 23:34:17 +0100, David Baron wrote:

> cat /proc/mounts
> 
> mount command and /etc/mtab contents simply parrot what is in /etc/fstab.

The OP wanted to see also what ext3 journal option is in effect. You can't
see that in /proc/mounts, so the "mount" command would be the way to go.

# egrep 'lvvtmp|lvusr' /proc/mounts
/dev/vgtmp/lvvtmp /var/tmp ext3 rw 0 0
/dev/vgusr/lvusr /usr ext3 rw 0 0

# mount | egrep 'lvvtmp|lvusr'
/dev/vgtmp/lvvtmp on /var/tmp type ext3 (rw,data=writeback)
/dev/vgusr/lvusr on /usr type ext3 (rw,data=journal)

-- 
....................paul

It is important to realize that any lock can be picked with a big
enough hammer.
               -- Sun System & Network Admin manual




Reply to: