delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/25/12:53:35

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=qEJ0rR5xZc6BcLs0
kM794aUbHIn9DpTYtRt8Y7efV7xBjWyjl33G/OX1Lah06rmhd86RjILMjr36bF7I
IE9Y1oZLF7tbvL74dOB9p5iSKjjdyfLhtFWM4yZMotn+53S7ywvkMuJ3rGqH/CJY
JEzKZp/R48sAFBDPcYcUIrjajBM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=2UvDqFPGuuqYXKEP2ygSWG
nBt4M=; b=cmavkskkakYU4Fzs/5tY87M3ssjLfH79uOPVAFdS1UZxJ5XZ8T947t
dbxmxUp4PhCeovhfTIGIbmt9sCK7rWGeeTkPXuhlY1GV7Ca4ToYUa0awhiCUl++Y
bZcVdc1hfJ+TaRBp47u8SbwWpTatGXtxQ19UGtXJrmeyI+pbO5mes=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173025pub.verizon.net
Message-id: <5331B470.1070503@cygwin.com>
Date: Tue, 25 Mar 2014 12:53:04 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: directory troubles
References: <alpine DOT LFD DOT 2 DOT 03 DOT 1403250853390 DOT 14168 AT KarmannGhia DOT org>
In-reply-to: <alpine.LFD.2.03.1403250853390.14168@KarmannGhia.org>

On 3/25/2014 12:49 PM, Richard wrote:
>
> Hi Folks,
>
> ...I have for more than ten years used links in specific directories as a
> strategy of managing disk space, distinguishing between remote (NFS / Samba)
> from local, and I've applied the same strategy to help in keeping my linux
> and Cygwin installations as similar as possible. Now, something has gone
> wrong on one system and I'm perplexed - I'm pretty darned sure it was
> working "last time I checked!"
>
> Consider /d for local disk mounts, /nfs for remote disk mounts and /l for
> "local use" which links into trees wherever. In this case, /d and /l were
> broken, but the nfs directory and its mounts seem to be unaffected.
>
> This morning I went to /opt which ordinarily translates to /l/opt (which
> itself translates to /d/c/opt or /d/b/opt), but Cygwin's Bash shell wouldn't
> go there. I got:
>
> -bash: cd: /opt: No such file or directory
>
> Investigating, ls showed the directories /d and /l, but I couldn't cd into
> them. ls -l showed simply:
>
> ls: cannot access d: No such file or directory
> ls: cannot access l: No such file or directory
> d??????????  ? ?       ?                   ?            ? d
> d??????????  ? ?       ?                   ?            ? l
>
> Since these directories only contain links, I decided to remove them and
> make them anew. Oops! That didn't work! When Cygwin decided it wasn't going
> to delete them, I first tried a cmd window, but it complained the
> directories weren't empty. When I "got inside" them, I found only . and ..
> as subdirectories - again, as reported by cmd. There was no removing those,
> either. So, I used an Explorer window. It permitted me to see the link names
> - all looked good - and it worked at deleting them - at least, they no
> longer show up from either Windows or Cygwin tools.
>
> But when I try and recreate them, I get:
>
> mkdir: cannot create directory `d': No such file or directory
> mkdir: cannot create directory `l': No such file or directory
>
> -frown- Not sure what to do next, I tried creating them from the same
> Windows explorer window I used to delete them, but it says, "Unable to
> create the folder 'New Folder' Access is denied."
>
> This is on "corporate edition XP 64 bit" - I am the administrator but there
> is a different "Administrator" account for which I don't know the password
> (never remember even setting the administrator password from the first
> installation)! On this version there isn't a "run as administrator", only a
> "run as", and since I don't know the password, I can't use the administrator
> account directly unless I figure out how to deal with the password. I also
> have tried (of course) unchecking the box about limiting privileges, but
> that didn't help either.
>
> Normally I'd just ignore this and work around it somehow, but these
> directories are pretty critical to the whole file system management
> strategy, so it'd be nice to not have to reinstall everything - reinstalling
> cygwin is among the most painful processes I can imagine as it virtually
> never works right the first time out and is possibly a multi-day process.
> Beyond that, any and all insights on where I went wrong, etc, etc, are very
> much appreciated.

I'd recommend first rebooting and, if that doesn't solve it, do a chkdsk.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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