X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-5.6 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
X-Received: by 10.49.108.9 with SMTP id hg9mr5959124qeb.34.1358428999218;        Thu, 17 Jan 2013 05:23:19 -0800 (PST)
Message-ID: <50F7FB43.9020601@gmail.com>
Date: Thu, 17 Jan 2013 14:23:15 +0100
From: marco atzeri <marco.atzeri@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: dd "permission denied"
References: <1358424134.72973.YahooMailClassic@web171906.mail.ir2.yahoo.com>
In-Reply-To: <1358424134.72973.YahooMailClassic@web171906.mail.ir2.yahoo.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
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

On 1/17/2013 1:02 PM, Marilo wrote:
> Connected an internal drive externally to USB.
>
> Partitioned it formatted it in Windows 7.
>
> tod@comp
> $ cygpath -w /dev/sdc1
> \\.\G:
>
>
> $ dd if=/cygdrive/c/img/image13gb.img of=/dev/sdc1
> dd: writing to `/dev/sdc1': Permission denied
> 17+0 records in
> 16+0 records out
> 8192 bytes (8.2 kB) copied, 0.0709889 s, 115 kB/s
>
> I've given permissions to all users and administrator, and added "Everyone" and given permission to Everyone, from within windows.   Still get the error. I've tried taking ownership such that the owner is "tod" instead of whatever it was "system" or administrator(s). Still same error.
>
> I tried running process explorer, find..find handle, looking for any file being used so locking it, searched for G:\. Nope, nothing.
>

try to unmount it, probably you have some service like Antivirus or file 
indexing that is locking the partition

Regards
Marco



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

