[CLUE-Tech] Help w/SCSI tape problem?

Ed Hill ed at eh3.com
Fri May 9 12:53:30 MDT 2003


On Fri, 2003-05-09 at 12:37, Carl Gibbons wrote:
> I didn't get any results the first, time, so I'd like to try one more 
> time. Perhaps nobody reading this mailing list does any tape stuff with 
> Linux?
> 
> I tried it again with a text file (/etc/termcap), and it's the *end* of 
> the file that I'm missing when I try to read it back from the tape:
> 
> $ sudo dd bs=512 if=/etc/termcap of=/dev/nst0
> dd: writing `/dev/nst0': Invalid argument
> 1440+1 records in
> 1440+0 records out
> $ sudo mt -f /dev/nst0 rewind
> $ sudo dd bs=512 if=/dev/nst0 of=image
> 3397+0 records in
> 3397+0 records out
> $ diff /etc/termcap image
> Warning: missing newline at end of file termcap
> 17095,17104c17095
> < # The following sets edit modes for GNU EMACS.
> < # Local Variables:
> < # fill-prefix:"\t"
> < # fill-column:75
> < # comment-column:0
> < # comment-start-skip:"^#+"
> < # comment-start:"# "
> < # compile-command:"tic -c terminfo.master"
> < # End:
> < ######## SHANTIH!  SHANTIH!  SHANTIH!
> ---
> > # 
> 
> Insights appreciated!  -Carl


Hi Carl,

I've used SCSI-connected tape drives (mostly DAT and including DAT
six-tape jukeboxes) on Linux for some years and have had little or no
trouble.  But then I *don't* use dd.  I use tar.  Have you tried using
tar instead of dd?

The command would be something like:

  tar -cv /etc/termcap

or 

  tar -cvf /dev/nst0 /etc/termcap


hth,
Ed

-- 
Edward H. Hill III, PhD 
Post-Doctoral Researcher
Division of ESE, Colorado School of Mines, Golden, CO 80401
Email: ed at eh3.com  ehill at mines.edu
Phone: 303-273-3483
URLs:  http://cesep.mines.edu/people/hill.htm  http://eh3.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://cluedenver.org/pipermail/clue-tech/attachments/20030509/9cf81cac/attachment.bin


More information about the clue-tech mailing list