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

Re: df and strange filesystem synonimity



On Tue, 2004-06-15 at 13:31, Bluejack wrote:
> I've tried hunting google and various archives for some
> hint that someone has seen & solved this before, but I am
> apparently not using the right search terms:
> 
> I recently set up a linux box (older, 2.5 G HD, i386, PIII-233,
> the latest Woody dist) and I mounted /usr and /usr/local as
> separate filesystems, the former with 600 Meg of space, the
> latter with 1000 Meg. However, df reports them BOTH as having
> 600 Meg, and stranger, when I drop a file into one, it
> increases the used space for both filesystems, as though one
> were just a symlink to the other!
> 
> Both are primary partitions, if that makes a difference.
> 
> Has anyone seen this?
> 
> Having played around with it a fair bit, I am thinking about
> reinstalling, with one as a primary and one as a logical,
> but if there is a quicker, easier solution, I'd love to
> know it.

Show us your /etc/fstab

If you have /usr/local in order before /usr, /usr is making the
/usr/local filesystem unavailable.


IOW, if you have this order:

        /dev/hda6 /usr/local/ defaults 0 0
        /dev/hda5 /usr defaults 0 0
        
You will only see /usr filesystem amount, even though you have the other
filesystem mounted as well. They will bothe show as 600MB and eat each
others space up...

Now, if you were to change /etc/fstab to be like this:

        /dev/hda5 /usr defaults 0 0
        /dev/hda6 /usr/local/ defaults 0 0

You will then get them proper.

You need to remove any file in /usr/local/ when the REAL filesystem is
not mounted, as that would be space used on /usr and not be available or
usable since it is overlayed by another filesystem



-- 
greg@gregfolkert.net
REMEMBER ED CURRY! http://www.iwethey.org/ed_curry

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: