delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/05/13:47:33

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: <3A56164F.532707B4@veritas.com>
Date: Fri, 05 Jan 2001 10:45:35 -0800
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Christopher Bray <cjbray AT usa DOT net>
CC: cygwin AT cygwin DOT com
Subject: Re: Problem Using dd?
References: <Pine DOT WNT DOT 4 DOT 21 DOT 0101051044320 DOT -162705 AT pinky DOT jello-man DOT org>

Christopher Bray wrote:
> 
> Hi, folks.  I just want to say, Great Job!  As someone who went from being
> a Windows lover to a unix advocate, your software severly reduces the
> feeling of helplessnes I now get whenever I use Windows :>
> 
> I have a question, though - is it possible to use dd to read and write
> directly to a device such as a floppy drive?  Yesterday I reinstalled
> Windows & it nuked my MBR so I can't boot to Linux.  My first thought was
> to either (a) repair the MBR or (b) create a LILO (or other) boot disk,
> and dd would be ideal.  However, I can't figure out how to do this under
> cygwin.  I don't know if this is a limitation to the software (or Windows'
> device handling) or if I'm just too dumb to figure it out.

None of the above ;-)

mount -s -b -f //./drive /dev/drive

where the first 'drive' would be "physicaldrive0", etc.  For a floppy or CD, 'drive' would be the drive letter (including the colon).  Don't use disk drive letters since
they will give you the partition corresponding to the letter rather than the whole disk.  Also, the number in "physicaldrive#" corresponds to the number in "disk#" as seen
in 'Disk Administrator'.

The second 'drive' is replaced with some name you pick.  So a real example for Disk0 would be:

mount -s -b -f //./physicaldrive0 /dev/hd00

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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