[comp.sys.ibm.pc] problem with disk copy

harris@ecsvax.uncecs.edu (Mark Harris) (02/05/89)

I've run into a slight problem with a disk copying program I wrote to 
speed up the process of making multiple copies of a single disk.  I use
BIOS interrupt 13h to copy all the sectors of a disk to a 360k file on 
my hard disk, then I reverse the process, repeatedly copying the file
to formatted blank disks.  I noticed that if I did a 'dir' on a blank disk,
then ran my copy program another 'dir' still showed the disk blank.  If I
simply open then close the drive door and do a dir I see the correct files.
I assume that the old FAT and directory are still buffered when int 13 bypasses
DOS.  Any recommendations on what I should do at the end of a disk copy to
'log in' the altered disk? 

-- 
     Mark Harris                            mail:harris@ecsvax(UUCP/BITNET)
     Department of Mathematical Sciences
     Appalachian State University
     Boone, NC 28608      (704) 262-3050 office, 264-6906 home

rtregn@immd3.informatik.uni-erlangen.de (Robert Regn) (02/14/89)

From article <6349@ecsvax.uncecs.edu>, by harris@ecsvax.uncecs.edu (Mark Harris):
 
- I've run into a slight problem with a disk copying program I wrote to 
- speed up the process of making multiple copies of a single disk.  I use
- BIOS interrupt 13h to copy all the sectors of a disk to a 360k file on 
- my hard disk, then I reverse the process, repeatedly copying the file
- to formatted blank disks.  I noticed that if I did a 'dir' on a blank disk,
- then ran my copy program another 'dir' still showed the disk blank.  If I
- simply open then close the drive door and do a dir I see the correct files.
- I assume that the old FAT and directory are still buffered when int 13 bypasses
- DOS.  Any recommendations on what I should do at the end of a disk copy to
- 'log in' the altered disk? 
 
Why you don't use int 25h ? It works a level higher and you nedd not worry
about sectors and heads.

Robert Regn
rtregn@faui32.uucp
rtregn@immd3.informatik.uni-erlangen.de