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

Re: ext3 and df don't agree ?



This was a thread earlier on the list (at least one version of it started
by me ^_^) Go back to the mailing list archives and check out
starting at August 27th, and check the thread entitled 'df not
showing ext3 partition' for the discussion you missed.

'df' has no idea what to make of the 'auto' fstype... when mount (any
version, latest that does this being 2.11h) creates the /etc/mtab file, it
reads straight from /etc/fstab and makes the appropriate entries to match
the mounts (since / gets mounted at startup, this happens, and since /
never gets unmounted, it never changes), mount writes type 'auto' into
/etc/mtab. df goes ballistic cause it doesn't know what type 'auto' is,
and doesn't display the mount information.

Changing the /etc/mtab entry to
say 'ext3' (which is what gets put there if you don't use 'auto' in your
/etc/fstab), makes df work. I'm not sure why, that's a question best
directed at the maintainer of GNU fileutils.

I had tried patching mount to change it's /etc/mtab writing behaviour but
discovered that this was a chore that my programming skills weren't up to.

It's most definately not a (direct) problem with the ext3 system, it's in
mount's way of handling 'auto' and df's inability to cope with it.

HTH.

-- 
Curtis Hogg [buckminst inconnu isu edu]
----------------------------------------------

... ich bin in einem dusenjet ins jahr 53 vor chr ... ich lande im
antiken Rom ...  einige gladiatoren spielen scrabble ... ich rieche
PIZZA ...
----------------------------------------------
Email 1 - buckminst inconnu isu edu
Email 2 - buckminst hotmail com
WWW - [in transit]

On Mon, 3 Sep 2001, Philip Nelson (DBA) wrote:

> Followup to the original note.
>
> Changed my fstab entry from auto to ext3 and df now works.
>
> So is there a problem with auto and ext3 (the docs indicate that auto
> should try ext3 then ext2 in turn).
>
> Phil
>
> On Mon, 3 Sep 2001, Sean Hunter wrote:
>
> > sean henry:~$ df -k
> > Filesystem           1k-blocks      Used Available Use% Mounted on
> > /dev/sdb6              3897800    125240   3574564   4% /
> > /dev/sda1                38859     11093     25760  31% /boot
> > /dev/sdc6              3897684   1203036   2496656  33% /home
> > /dev/sda8              7400228    791264   6233048  12% /usr
> > /dev/sda5              1035660    100808    882244  11% /var
> > sean henry:~$ mount
> > /dev/sdb6 on / type ext3 (rw)
> > none on /proc type proc (rw)
> > /dev/sda1 on /boot type ext2 (ro,nosuid,nodev)
> > /dev/sdc6 on /home type ext3 (rw,nosuid,nodev,data=ordered)
> > /dev/sda8 on /usr type ext3 (rw,nodev)
> > /dev/sda5 on /var type ext3 (rw,nosuid,nodev,sync,data=journal)
> > none on /dev/pts type devpts (rw,gid=5,mode=620)
> >
> >
> >
> > On Mon, Sep 03, 2001 at 02:59:49PM +0100, Philip Nelson (DBA) wrote:
> > >
> > > I've taken my RH7.1 system, rebuild kernel (2.4.9 with ext3 patches) and
> > > followed the ext3 instructions to install.
> > >
> > > Everything seems to work OK but -
> > >
> > > df -k
> > >
> > > doesn't list the ext3 partition (my root partition).
> > >
> > > Is this a known problem ?
> > >
> > > If not, how best can I gather diagnostics to identify the source of the
> > > problem ?
> > >
> > > Thanks
> > >
> > > --
> > > Philip Nelson
> > > (teamdba bojnice com)
> > >
> > > http://www.bojnice.com
> > >
> > >
> > >
> > > _______________________________________________
> > > Ext3-users mailing list
> > > Ext3-users redhat com
> > > https://listman.redhat.com/mailman/listinfo/ext3-users
> >
>
>







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