home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / misc / 18301 < prev    next >
Encoding:
Text File  |  1992-07-30  |  2.1 KB  |  55 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!bradley.bradley.edu!guru
  3. From: guru@camelot.bradley.edu (Jerry Whelan)
  4. Subject: Re: DOS Drive is Slow!!!!!#%$@#&^#@$
  5. Message-ID: <1992Jul30.220316.27463@bradley.bradley.edu>
  6. Sender: news@bradley.bradley.edu
  7. Nntp-Posting-Host: stasi.bradley.edu
  8. Organization: The Smelly Ditch
  9. References: <1992Jul28.205204.482@glocke.hotb.sub.org> <1992Jul29.214918.11117@darkcube.radig.de>
  10. Date: Thu, 30 Jul 92 22:03:16 GMT
  11. Lines: 42
  12.  
  13. [A bunch of people complaining about how slow the DOS
  14. floppy access is under various unices.]
  15.  
  16. I don't use a NeXT and have never tried to do any DOS file
  17. manipulation with one.  I do use a 386 running SVR4.
  18. DOS access of the floppy drive is incredibly slow as well.
  19. However, I know why and perhaps can help anyone
  20. else trying to do the same on their machines.
  21.  
  22. Under SVR4, the various ``dosdir'',``doscp'', and
  23. other dos* utilities read and write the floppy in
  24. 512 byte chunks.  Each DOS sector is 512 bytes, so
  25. this would seem like a logical way to do it.  But
  26. it is very slow.  By using dd with large buffer sizes
  27. I've been able to get very fast floppy access.
  28.  
  29. For example:
  30.  
  31.     dd bs=1474560 if=/dev/rdsk/f0 of=/tmp/dos_disk
  32.  
  33. Copies the entire 1.44 floppy disk to a file in /tmp
  34. in less than a minute.  If the DOS utilities in NeXTOS
  35. can be told to treat a file as a DOS disk, then feeding
  36. them ``/tmp/dos_disk'' will make them much faster.
  37. Of course when you are done working with the disk, you'll
  38. need to put it physically back on the floppy disk with
  39. a command like:
  40.  
  41.     dd bs=1474560 if=/tmp/dos_disk of=/dev/rdsk/f0
  42.  
  43. Which will put it back on the floppy.
  44.  
  45. Now, I'm pretty sure that ``/dev/rdsk/f0'' does not correspond
  46. to the floppy disk on a NeXT.  I don't know what the proper
  47. device filename is, but with a little looking you should be able
  48. to figure it out yourself.
  49.  
  50. I also expect that this method will work on any unix machine
  51. that has slow DOS access.
  52.  
  53. -------------------------------------------------------------------------------
  54. ``written by a drunken insane pathological liar''        guru@stasi.bradley.edu
  55.