delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/08/10:36:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-Id: <50EC3CEA.2000602@saic.com>
Date: Tue, 08 Jan 2013 10:36:10 -0500
From: "Roger K. Wells" <ROGER DOT K DOT WELLS AT saic DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: disk format question
References: <50EC265F DOT 2010507 AT mailme DOT ath DOT cx> <50EC37EA DOT 8000308 AT etr-usa DOT com>
In-Reply-To: <50EC37EA.8000308@etr-usa.com>
X-IsSubscribed: yes
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

On 01/08/2013 10:14 AM, Warren Young wrote:
> 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.
FWIW in Windows 7:

objdump -p c:/Windows/System32/format.com

c:/Windows/System32/format.com:     file format pei-i386

Characteristics 0x102
         executable
         32 bit words

Time/Date               Tue Jul 14 00:15:15 2009
Magic                   010b    (PE32)

I don't know if that changes anything here though.

Roger Wells
>
> > 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 
> task/c/Windows/System32/format.combar 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
>
>


-- 
Roger Wells, P.E.
SAIC
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger DOT k DOT wells AT saic DOT com


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