[blfs-support] du on / produces errors from /proc

Richard Melville richard.melville69 at googlemail.com
Sat Dec 7 05:15:47 PST 2013


>
> > Date: Fri, 06 Dec 2013 11:35:35 +0100
> > From: Pierre Labastie <pierre.labastie at neuf.fr>
> > To: BLFS Support List <blfs-support at linuxfromscratch.org>
> > Subject: Re: [blfs-support] du on / produces errors from /proc
> >
> > Le 06/12/2013 10:56, Richard Melville a ?crit :
> > >
> > >     Le 05/12/2013 18:18, Richard Melville a ?crit :
> > >     > Does anybody know what causes the following:-
> > >     >
> > >     > du: cannot access '/proc/602/task/602/fd/4': No such file or
> > >     directory
> > >     > du: cannot access '/proc/602/task/602/fdinfo/4': No such file or
> > >     directory
> > >     > du: cannot access '/proc/602/fd/4': No such file or directory
> > >     > du: cannot access '/proc/602/fdinfo/4': No such file or directory
> > >     >
> > >     >
> > >     What were you doing? Building some package? What is the command
> which
> > >     generated that output?
> > >
> > >     Regards
> > >     Pierre
> > >
> > >
> > > I was just checking disk space with du -sh / as root.  That was the
> > > only output apart from the requested disk space.
> > >
> > > Richard
> > >
> > >
> > /proc/602 is a system directory associated to the process number 602. I
> > guess du first finds 602 inside proc when listing the directory /proc,
> > then tries to open it. If 602 is a transcient process (that is it runs
> > for a short time), it may happen that it has disappeared before the
> > second time it is accessed.
> >
> > You may add --exclude=/proc to the command linen but I think it is
> harmless.
> >
>
>
>  - and/or use the '-x' flag if it's really just the '/' partition that you
> want info for.
>
>
> If you're wanting info on the full filesys tree, then perhaps something
> like
> 'df [-a] -hP --total'; as for 'du', there are various command-line options
> to
> adjust the format to suit what you want.
>
>
>
> akh
>

Thanks for the help, and to Pierre for the (as always) knowledgeable and
detailed explanation.  What I love about this list is that there's no end
to the learning.

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-support/attachments/20131207/cbe047de/attachment.html>


More information about the blfs-support mailing list