Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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