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?
>
> TIA,
> Lonni
>
> =====
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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
_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc
->http://linux.nf/mailman/listinfo/linux-users