du: cannot access '/proc/4972/task/4972/fd/4': No such file or directory'
Today I noticed that my 28G / partition was 99% full. Yesterday it was at 9.5G. I tried using du and this is what I got:
Quote:
|
Moin,
/proc is a pseudo filesystem; it's a part of your RAM and contains information for every existing process. So, if a process does not exist anymore when du tries to count it, or if a process has closed a file descriptor (subdirectory fd or fdinfo) in the meantime, you get this message. You must keep in mind, that du will at first build a list of files and directories to count and later will count their sizes. Meanwhile there will be a lot of changes on your system - processes are finished, file descriptors are closed and so on. You should use the -x option of the du command to prevent it from searching mounted filesystems while examining the root partition. Jan |
thanks for the tip of using -x. i was looking for a way to do this. i also don't get the error messages this way. not sure why though.
|
Moin,
/proc is (like every other filesystem) mounted on / (directly or in a subdirectory) while your system is running. That's why it is not longer searched when you use the -x option. It makes sense to use this option every time you want to check the disk usage of a filesystem. Mounted filesystems never occupy even a byte in the filesystem you want to examine - it will give you the wrong amount if you include mounted filesystems in your calculation. Use df or mount to check, which filesystems are mounted and where they are mounted. You'll see: they are all accessible from /. Jan |
-x option of du is not working as expected
hi, Can someone help my why -x option is not working and still trying to access mounted files.
/# du -shx ./* 6.7M ./bin 18M ./boot 158G ./data 0 ./dev 6.1M ./etc 2.5G ./home 0 ./initrd.img 60K ./itunes 125M ./lib 4.0K ./lib64 16K ./lost+found 12K ./media 4.0K ./mnt 4.0K ./opt du: cannot access `./proc/15099/task/15099/fd/4': No such file or directory du: cannot access `./proc/15099/task/15099/fdinfo/4': No such file or directory du: cannot access `./proc/15099/fd/4': No such file or directory du: cannot access `./proc/15099/fdinfo/4': No such file or directory |
please do not hide all threads, open a new one. Also if you found this thread please read it especially the last line:
Quote:
|
Got all the filesystems mounted and locations. proc is on / and hence with -x option it didn't filtered. Thanks.
Got all the filesystems mounted and locations. proc is on / and hence with -x option it didn't filtered. Thanks.
Quote:
|
All times are GMT -5. The time now is 02:52 AM. |