delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Fri, 07 Jul 2006 10:37:57 -0400 |
From: | Will Beldman <webmaster AT bethel-crc DOT ca> |
Subject: | Re: Using du.exe to calculate disk usage on a Microsoft cluster server |
To: | cygwin AT cygwin DOT com |
Message-id: | <44AE71C5.4020609@bethel-crc.ca> |
MIME-version: | 1.0 |
User-Agent: | Thunderbird 1.5.0.4 (Windows/20060516) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
The problem is still here. As a refresher, here's the original problem: =========================== I need to determine disk usage for each directory on a Microsoft cluster server. As a linux junkie, du is *the* tool for automating this kind of stuff so I installed cygwin, mapped some drives and tried to schedule the utility to run at night. However, I get a lot of errors thrown back such as: 1. "No such file or directory" - Which tends to appear on weird filenames (like with spaces or ' or some other character) or when I don't have permission to access the drive (but that's something I can fix) 2. "File name too long" - Which it is, but I'd hope there is some way to get around this 3. "du: fts_read failed: Permission denied" - That's the last error message I get. The program seems to crash at this point. I've seen no such issue in Linux and Google responses to the third error are rare and unhelpful. My question to the list is: 1. Is there a way to eliminate the errors above (especially the third so it can at least complete) 2. Has anyone else found a solution which will properly report the amount of disk space a particular directory is occupying? Something that is free and can be scheduled to run at night. ========================= I actually do not think the problem is escaping characters or spaces. There are other files and directories which can use spaces no problem. It must be actual permission problems which I can fix. The command I am running is: du -sh /cygdrive/s/* This is because I want to know the size of the first level directories under the S drive. I will try du -sh /cygdrive/s to see if I get the same errors, but that will not fulfill my requirements. Can anyone tell me under what circumstance the message du: fts_read failed: Permission denied would come up. I should be able to troubleshoot things from there if only I knew what that error message is really complaining about. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |