Low-level disk i/o in DOS 
Author Message
 Low-level disk i/o in DOS

In an effort to make my DOS more Unix-like, I'm looking for a program
that will do raw i/o to and from a floppy disk.  The program should take
arguments somewhat like the following:

rawcp image.dat a:
   Would start with sector 0 of the floppy, and write the file image.dat
   sequentially until it either runs out of floppy sectors, or reaches the
   end of the image.dat.  This would be equivalent to the Unix command
   cp image.dat /dev/fd0.

rawcp a: image.dat
   Would start with sector 0 of the floppy and write into the file
   image.dat until the end of the floppy disk is reached.  This is
   equivalent to cp /dev/fd0 image.dat.

The program should expect a 3.5" 1.44 meg disk, with the standard
512 bytes/sector and 18 sectors/track.  If anyone has such a program
or is interested in writing one, I'd appreciate it.  If it's easier to
do in assembly, that'd be fine, but I'd rather have it in C so I could
learn from it.  

                                                Thanks,

                                                Matt Cavic

                                                314-851-0964 VM



Thu, 25 Mar 1999 03:00:00 GMT  
 Low-level disk i/o in DOS

: In an effort to make my DOS more Unix-like, I'm looking for a program
: that will do raw i/o to and from a floppy disk.  The program should take
   (snip)
  ---------------------------------------------

  You can do what you described by using standard PC BIOS commands.

  However, you cannot use somebody elses DOS (including MS-DOS) because
it uses a different method of building a disk structure. The disk will
not be compatible with another PC.



Fri, 26 Mar 1999 03:00:00 GMT  
 Low-level disk i/o in DOS

Hit the LINUX sites for the DOS utility RAWRITE.EXE ( RAWWRITE.EXE?? )

--
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
\\                                                            //        

\\                     http://www.sj-coop.net/~bsprajc             //        
//                                                            \\        
\\  VLE Research       Detailed PC & Perhipheral Diagnostics  //
//  408.244.7052       incorporating SQM(tm) Technology.      \\        
\\                                                            //
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\



Fri, 26 Mar 1999 03:00:00 GMT  
 Low-level disk i/o in DOS

Quote:

>In an effort to make my DOS more Unix-like, I'm looking for a program
>that will do raw i/o to and from a floppy disk.  The program should take
>arguments somewhat like the following:

>rawcp image.dat a:
>   Would start with sector 0 of the floppy, and write the file image.dat
>   sequentially until it either runs out of floppy sectors, or reaches the
>   end of the image.dat.  This would be equivalent to the Unix command
>   cp image.dat /dev/fd0.   [etc]

There's a disk image program, with source, in the FDFORMAT package.
Written in Pascal -- no accounting for taste -- but the basic ideas are
similar.  The only advice of my own I feel the need to add is this:  with
disk utility programs, Bigger Buffers are Better!




Sat, 27 Mar 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Access disk Low level ?!

2. Low level disk services - Usual newbie needs help type of message

3. Low-level disk read/write

4. Low-level disk control

5. Low level hard disk access

6. Low level hard disk programming

7. Code to Low-Level read/write to Floppy Disks

8. Low level disk access

9. Low level disk/file info from 32bit VC?

10. Floppy Disk Drive Low Level Programming Help!

11. Low level floppy disk stuff

12. Really Low Low Low Level Stuff.

 

 
Powered by phpBB® Forum Software