home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13106 < prev    next >
Encoding:
Text File  |  1992-08-31  |  2.0 KB  |  47 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!sun-barr!ames!nsisrv!climate!merritt
  3. From: merritt@climate.NoSubdomain.NoDomain (John H. Merritt)
  4. Subject: Re: 8mm and dd (a suggestion)
  5. Message-ID: <1992Aug31.212011.852@nsisrv.gsfc.nasa.gov>
  6. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  7. Nntp-Posting-Host: climate.gsfc.nasa.gov
  8. Organization: Climate and Radiation Branch
  9. References:  <715275893@anthrax.cs.duke.edu> <1992Aug31.192332.26751@nsisrv.gsfc.nasa.gov>
  10. Date: Mon, 31 Aug 1992 21:20:11 GMT
  11. Lines: 34
  12.  
  13. In article <1992Aug31.192332.26751@nsisrv.gsfc.nasa.gov>, merritt@climate.NoSubdomain.NoDomain (John H. Merritt) writes:
  14. |> In article <715275893@anthrax.cs.duke.edu>, jwt@duke.cs.duke.edu (Jeffrey W. Tannehill) writes:
  15. [...]
  16. |> |> with the BSD dump and restore commands.  However, whenever I try the dd
  17. |> |> command to write I get:
  18. |> |> 
  19. |> |> > dd if=/etc/motd of=/dev/tape
  20. [...]
  21.  
  22. |> I have noticed that if the input file has an odd number of bytes and
  23. |> you output to the variable block device,  that the entire file will
  24. [...]
  25.  
  26. So what!  What I meant to include was my suggestion for doing I/O to
  27. the 8mm.  Pipe 'tar' into 'dd' for output and visa-versa for input.
  28.  
  29. tar cBf - whatever | dd of=/dev/nr8mm bs=10k     --- for output
  30.  
  31. dd if=/dev/nr8mm bs=10k | tar xvBf -             --- for input
  32.  
  33. This works because tar fills the buffer (10k sized) by padding when
  34. there is not enough data in the file and so 'dd' always writes complete
  35. blocks.  Your backups are working this way.
  36.  
  37. You should use tar or another program that pads to fill buffers.
  38. -- 
  39.         \___   \______   \__  \__  \___   \__
  40.         \___  \________  \__  \__  \____  \__
  41.         \___  \__   \__  \__  \__  \_____ \__
  42.         \___  \__   \__  \_______  \__ \__\__   merritt@climate.gsfc.nasa.gov
  43. \___    \___  \__   \__  \_______  \__  \____   
  44. \___    \___  \__   \__  \__  \__  \__   \___   "Yesterday I knew nothing,
  45.  \_________   \_______   \__  \__  \__    \__    Today I know that."
  46.   \______      \_____    \__  \__  \__     \_
  47.