Gordon,
Thanks for your input.  I should have previously mentioned that this
isn't me that's experiencing this problem, its a customer.  I normally
do use tar or dump to write to tapes, and have never used dd before. 
This customer is adamant that they can use dd, so I'm forced to either
prove it won't work (which is not the case, unfortunately), or find a
solution.
I'll pass along your suggestion, and let you know the result.

Thanks!
Lonni

--- Gordon McCrae <[EMAIL PROTECTED]> wrote:
> The problem is most likely that the file you are reading is not a
> multiple of the block size.
> 
> If for example, you create a temporary file with exact multiples of
> the block size, then you won't get an error.
> 
> e.g.
> 
> dd if=/etc/printcap of=/dev/st0 bs=512 count=4
> 
> Then you wont' see any errors, because you've got complete blocks to
> write.
> 
> dump, tar and cpio (and their ilk) will all pad the block out so that
> it fills the last block.
> 
> dd is not really a great utility for doing backups, apart from
> anything, you cannot backup multiple files with it, not unless you
> start doing non rewind tape device stuff and index list building,
> which isn't worth it.
> 
> Why don't you want to use tar or cpio?
> 
> Gordon
> 
> Net Llama wrote:
> 
> > Greetings,
> > I've got a very very odd & frustrating problem.  Basically, any
> attempt
> > to write to an Ecrix VXA-1 tape drive with the dd command fail.
> > The basic command that i'm issuing as root is:
> > dd if=whatever of=/dev/st0the output from the command is always:
> > 0+1 records in
> > 0+0 records out
> >
> > I have no problems reading or writing from the tape drive when using
> > dump and/or tar, so its not a hardware problem.
> >
> > Please let me know if you need more info.
> > Anyone with any input?



=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J. Friedman                          [EMAIL PROTECTED]

Linux FAQ & Step-by-step help:     http://netllama.ipfox.com

                                                 .

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to