X-Recipient: archive-cygwin@delorie.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:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=s9SjMHg8t+jitTgs
	Vl8tyhook+a1tc+pTYrPUplIqsI001z0TlmafwQdyQ473XpI3WKBBNZt3ldYQfuj
	QrRyppNKPtSL8ihJwtwxy9jTFRRW4VaAiWzR/5khzf650/z+mV9FlbjI9IEdQhwh
	SLyMKyvnDw7LzjIdlfG4x7pkPX0=
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:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=aSDb17O0j9+Xj21Z15Hin1
	yhJGE=; b=j0LYwZ5CttW78xhxkmWEMIMdpqJ9ZqhyovRWoH/P/6uu5RKSIcYt0+
	VUjMMmzBChx01LZtTz+SmFLyYlImL9spLhLfmq0vcvWUinSKOvFLsqqsrRgy1BGV
	wb+iXJdEUkPeXYxWNMsoSEY1fzdFX5zZDJ2FFs4qif23a1q5taJD8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=card, hesitate
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss@cs.umass.edu
Subject: Re: Issue when trying to access files on a locked BitLocker volume
To: cygwin@cygwin.com
References: <CAFBd_9syterX=7PSFb2+Z_KWMxvdrH3o_Rq3oJ65AVOYDX2=ig@mail.gmail.com>
From: Eliot Moss <moss@cs.umass.edu>
Message-ID: <aece26f1-c443-2ce6-b5df-5f5eecffa902@cs.umass.edu>
Date: Thu, 19 Apr 2018 07:44:37 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <CAFBd_9syterX=7PSFb2+Z_KWMxvdrH3o_Rq3oJ65AVOYDX2=ig@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 4/19/2018 7:38 AM, Vincent Gheur wrote:
> Hi,
> 
> I'm using a Bitlocker encrypted SD card, which stays most of the time in my
> laptop, but is generally not unlocked. I'm unlocking it only when I need to
> access files on it.
> 
> I have also a script which is started at regular intervals, which copies
> some critical files on the SD card when it is unlocked. I was using till
> recently a *very* old version of cygwin (probably downloaded 10 years ago),
> in which I could check whether my SD card was unlocked or not by using *if
> [ -d <folder-on-SD-card> ]*. I have downloaded a new version of cygwin in
> January, as I migrated to Windows 10 and was encountering some issues with
> it. Since I upgraded, this test is not working anymore. When the SD card is
> unlocked, testing " -d <folder> " returns TRUE. It returns FALSE when I do
> the same test on a non Bitlocker volume for a non-existent folder (which is
> the expected behaviour).
> 
> I guess there are probably other issues related to accessing locked
> Bitlocker volumes.
> 
> 
> If someone is wanting to solve this, don't hesitate to contact me if you
> need more details or if you want me to make tests.

I agree that this outcome is strange, but here are some suggestions for
workarounds:

- Test some other property of the same or some other file
- Try some program, such as ls, on the file.  You can direct standard
   output and error to /dev/null and check the result code to see if the
   program failed.
- Try a program that requires write capability, such as touch, if ls does
   not do what you need.

Regards - Eliot Moss

--
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

