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: <3A56164F.532707B4@veritas.com> Date: Fri, 05 Jan 2001 10:45:35 -0800 From: Bob McGowan Organization: VERITAS Software X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Christopher Bray CC: cygwin AT cygwin DOT com Subject: Re: Problem Using dd? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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