X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <50EC37EA.8000308@etr-usa.com>
Date: Tue, 08 Jan 2013 08:14:50 -0700
From: Warren Young <warren@etr-usa.com>
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: disk format question
References: <50EC265F.2010507@mailme.ath.cx>
In-Reply-To: <50EC265F.2010507@mailme.ath.cx>
Content-Type: text/plain; charset=ISO-8859-1; 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/8/2013 06:59, bartels wrote:
>
> The windows format.com

format.com hasn't existed since the DOS days.  That includes the 
DOS-based versions of Windows, up through Windows ME.  Under NT-derived 
versions of Windows, "format" is a built-in command in cmd.exe.

 > claims the fs is write protected, but I hope dd
> can help out.

It's worth a try, but if I had to take a blind bet on it, I'd say you're 
going to find that dd will give the same result.  Cygwin is essentially 
a user-level process.  If cmd.exe cannot do a thing, dd.exe probably 
can't, either.

It is *possible* that unmounting the filesystem with the taskbar button 
will let you write to the raw device.  But Windows being Windows, it's 
possible that will make it disappear from the system entirely, too.

> The mtab is not very helpful:

That's because Cygwin proper does not mount local filesystems.  The 
Cygwin mount table just shows you Cygwin-specific mappings that it has 
added on top of what the underlying NT kernel has done.

In this case...

>   D: /cygdrive/d udf binary,posix=0,user,noumount,auto 1 1

...it is showing you the /cygdrive/d alias Cygwin has provided for you.

> My question is this: which device in /dev do I use?

According to [this][1] it's probably /dev/sdb.  But please do read 
through what I pointed you to first, and check its applicability 
carefully before attempting this.

[1] 
http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-posixdevices

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

