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

Re: checking whether partition mounted as ext3



On Mon, Jan 19, 2004 at 06:54:20AM -0500, Paul Morgan wrote:
> On Mon, 19 Jan 2004 02:39:14 +0000, Faheem Mitha wrote:
> 
> > On Sun, 18 Jan 2004 18:00:51 -0500, Paul Morgan <paulswm@earthlink.net> wrote:
> 
> >>
> >> 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. 
> > 
> > BTW, I was under the impression that it was necessary to specify the
> > mounting of root (/) at boot time, in the grub menu or some such,
> > rather than /etc/fstab. I was just looking at stuff which suggested
> > this may not be necessary. Can anyone point me to a definitive
> > reference on this?
> > 
> 
> Like I said, running "mount" will tell you how the FS is mounted.  It does
> not "echo what is in /etc/fstab".  When it mounts an FS, it writes an
> entry in /etc/mtab describing the mount.  Of course it's going to look
> similar to the fstab entry because the fstab entry tells it how it should
> be mounted!

/proc/self/mounts might be useful, too?

-- 
Pigeon

Be kind to pigeons
Get my GPG key here: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x21C61F7F

Attachment: pgp2iXJt8hWg9.pgp
Description: PGP signature


Reply to: