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