delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/20/13:34:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Rob Brown" <rob AT mp3 DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: df --local
Date: Fri, 20 Sep 2002 10:34:04 -0700
Message-ID: <LMEBLOLOHAGKJEEBFGPKMEGECHAA.rob@mp3.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
In-Reply-To: <Pine.GSO.4.44.0209201327400.15469-100000@slinky.cs.nyu.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

OK, that will *mostly* work except for the cdrom drive issue.

-----Original Message-----
From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu]
Sent: Friday, September 20, 2002 10:29 AM
To: Rob Brown
Cc: cygwin AT cygwin DOT com
Subject: RE: df --local


Well, as I said before, unless you have invalid local mounts (i.e.,
without the drive name), all your local mounts will have a ":" as part of
the name.
	Igor

On Fri, 20 Sep 2002, Rob Brown wrote:

> Yea, except that I wanted this script to run on a bunch of machines, all
> with different drive letters and configurations.
> Is there no other way for cygwin to know whether a drive is local or not?
>
> -----Original Message-----
> From: Marcos Lorenzo de Santiago [mailto:marcos AT it DOT uc3m DOT es]
> Sent: Friday, September 20, 2002 12:53 AM
> To: Rob Brown
> Cc: cygwin AT cygwin DOT com
> Subject: Re: df --local
>
>
>      > I am trying to write a script that checks the % free of local
drives using
>      > df.
>      >
>      > $ df -a
>      > Filesystem           1k-blocks      Used Available Use% Mounted on
>      > C:\cygwin\bin         19936633   5750854  14185779  29% /usr/bin
>      > c:\cygwin\lib         19936633   5750854  14185779  29% /usr/lib
>      > \\server1\rob         961282048 850460672 110821376  89% /rob
>      > c:\cygwin             19936633   5750854  14185779  29% /
>      > c:                    19936633   5750854  14185779  29% /cygdrive/c
>      > d:                      544324    544324         0 100% /cygdrive/d
>      > u:                   961282048 850460672 110821376  89% /cygdrive/u
>      >
>      > The problem is that when I run df --local, I only see remotely
mounted
>      > filesystem:
>      > $ df --local
>      > Filesystem           1k-blocks      Used Available Use% Mounted on
>      > \\server1\rob         961282048 850460672 110821376  89% /rob
>      >
>      > Is this a bug? It seems to be opposite of what you would expect.
>      >
>      > Also, is there a way to exclude the CDrom drive from the script,
since it
>      > will always show 100%?
>
> Well you can always do a df | grep -v "/cygdrive/d"
>
> m4c.

--
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02,
p.51



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019