delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/10/24/05:20:28

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 49O9KSXm3996569
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=w7jCFpMS
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 813553858C50
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1729761627;
bh=fq6LealFqI+tk+nMgl+QT+k61JI8sIXS6p4fJdl19hQ=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=w7jCFpMSD04F5UV3tnaNUaOi8tuNH6ISw5g9usd3LZ1WKoN5qSbG25T8dCK5egWjV
68VYVtX5DNr+ymGWKnyR/8Knw7289A2JYQWAYcT0vSvZT1PggduVnTzUUTS89hb0wn
C/01Tx58K5mfAcQXars3cxL3n7MqCo8MfC4FQ+8s=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A6883858D21
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6A6883858D21
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729761606; cv=none;
b=f4+P5uNGxdgPPP/XHSn4vFxILJ6wBruopxRkVkx5k2J0pE51lbpQK/0dTeG9o3lhhU9XtDMXo0MvUiRIYY3+IMt0OHcPsTfntA87DkFuSPSx5Fm+vfuIYpFe0TSisp2jWPLyyvhQJTtHvomo/U7Or+52MN3RPEumoP4J9XlKP34=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1729761606; c=relaxed/simple;
bh=qccyZ2HGMq8nfTsLytK9ohaqAeF/FXFZ3QnkRp2cVBM=;
h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
b=gVa03O3lIxFNFAbT0kT9JYllEM5e2V3ScXPo5ubf9B00wKqY6Etu4iidBEc5eMVXDMTFf+m9CJJn8mbtAeb6WPLHy1QAxSvSXIQowJgafjauSwDt43S1RF4ryh5cTfAoiv9qwPqKXZzlp/EwFmvrI5cFeio4DRNtm6wQXkHiq9E=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Yandex-Fwd: 1
Date: Thu, 24 Oct 2024 12:09:12 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1421149894.20241024120912@yandex.ru>
To: Ilya Basin <basinilya AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Writing to '\\.\X:' that has no backing PhysicalDrive?
In-Reply-To: <a6a5b28d-9d57-4b5d-82b2-b4090e55e1fd@gmail.com>
References: <a6a5b28d-9d57-4b5d-82b2-b4090e55e1fd AT gmail DOT com>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
NICE_REPLY_A, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings, Ilya Basin!

> Hi.
> I was trying to write an .img file to a VeraCrypt drive.
> VeraCrypt doesn't create a virtual PhysicalDrive so tools like Rufus don't see it.
> I hoped that with cygwin I would be able to do that, but Cygwin only
> creates /dev/sd?? nodes for PhysicalDrive partitions.
> I tried `dd` with '\\.\X:', but it can't open for writing because it treats it as a directory (reading succeeds).

> $ dd count=1 if='\\.\E:' | xxd
> 1+0 records in
> 1+0 records out
> 512 bytes copied, 0.0213007 s, 24.0 kB/s
> 00000000: eb52 904e 5446 5320 2020 2000 0208 0000  .R.NTFS    .....
> ...

> $ dd if=/dev/null count=0 of='\\.\E:'
> dd: failed to open '\\.\E:': Is a directory

> Same error in MSYS2.

> Does cygwin provide some (hidden) /dev/ nodes for drive letters or volumes
> like "\\?\Volume{GUID}"? Can I create one with mknod?

Drive letters are not necessarily backed by physical drives.
F.e. subst drives.

> My current workaround is a PowerShell/.NET script that calls
> CreateFile/WriteFile with proper flags.
> Rufus doesn't show any hard drives, Win32DiskImager crashes on launch.
> Surprisingly, I couldn't find a decent GUI program for this task.



-- 
With best regards,
Andrey Repin
Thursday, October 24, 2024 12:08:30

Sorry for my terrible english...


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

- Raw text -


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