delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/23/09:52:57

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39A3D6FA.C6B1BA26@cygnus.com>
Date: Wed, 23 Aug 2000 15:51:54 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin <cygwin AT sources DOT redhat DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: dd under CygWin
References: <boj7qsk08178oh0es1l1vg36650us3l1fo AT dgp85 DOT invalid>

DGP85 wrote:
> 
> Hi,
> I have a old hard disk and I need to clean it totally.
> I need to use the linux command
> dd if=/dev/zero of=/dev/hdb
> but I can't start linux.
> How I can use dd in CygWin.

95/98: No chance since no raw device support.

NT/W2K:

Figure out which drive number the drive has (NT Disk Manager).
Let's presume it's 2:

$ mount -f -b //./physicaldrive2 /dev/xyz
$ dd if=/dev/zero of=/dev/xyz

Note that "xyz" is a placeholder. Name the drive as you want,
for example "/dev/hdb" or "/dev/garfield"

If you want to access a single partition as raw device, you only
have to know the drive letter, let's presume G:

$ mount -f -b //./G: /dev/earthquake

Note the "//./" prefix (slash slash dot slash) which is the common
prefix for devices in NT/W2K except for old DOS device names ("COMx",
"CON", "AUX", "PRN").

Hope, that helps,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin AT sources DOT redhat DOT com
Red Hat, Inc.
mailto:vinschen AT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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