Message-Id: <200008111723.NAA06657@delorie.com> Date: Fri, 11 Aug 2000 20:26:40 +0200 To: thomas-st AT gmx DOT de X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b From: "Eli Zaretskii" CC: djgpp AT delorie DOT com In-reply-to: <3993B940.1C14FF87@gmx.de> (message from Thomas Strathmann on Fri, 11 Aug 2000 10:28:48 +0200) Subject: Re: A question on dd under DOS References: <3993B940 DOT 1C14FF87 AT gmx DOT de> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Fri, 11 Aug 2000 10:28:48 +0200 > From: Thomas Strathmann > > I would like to use dd just as I would do in Linux or another UNIX > to raw-copy disks. But in DOS there is not a single device file. > What can I do? You need to access such floppies on the BIOS level, since they lack the DOS filesystem (the FAT, the root directory, etc.). An example of such an access can be found in the sources of the DJTAR utility (in djlsr203.zip), since DJTAR can read tar archives written on floppieson Unix systems. I wrote once a bunch of functions that used the DJGPP Filesystem Extension feature to redirect normal DOS file I/O to BIOS functions, and built a version of `dd' with those functions. If you are interested, I can dust off that code and send it to you.