[Wlug] writing to tape

Michael Frysinger vapier@WPI.EDU
Wed, 17 Jul 2002 21:03:27 -0400


try to get rid of the O_TRUNC to see if it might help
<from `man dd`>
Often a tape drive will not accept arbitrarily sized blocks,
and dd would get an I/O error for the last fragment of data
that does not fill an entire block. Use `dd if=myfile of=/dev/mytape
conv=sync' to get everything on  tape.  Of  course, reading it back
will now produce a slightly larger file, with nulls added at the end.
</from `man dd`>
-mike

----- Original Message ----- 
From: "Chuck Homic" <chuck@vvisions.com>
To: <wlug@mail.wlug.org>
Sent: Wednesday, July 17, 2002 8:46 PM
Subject: Re: [Wlug] writing to tape


> On Wed, Jul 17, 2002 at 08:36:16PM -0400, Brad Noyes wrote:
> > This program will work with a file, and a floppy device, but not a tape
> > device.
> > 
> > can anyone give me some pointers? what do i have to do differently to
> > write to tape?
> 
> I've never used tape before, but I know tape is not quite as ambidextrous
> as a file or floppy device.
> 
> So, instead of O_RDWR | O_CREAT | O_TRUNC, I'd try a simple O_WRONLY.  Or
> other things.  Maybe.
> 
>  -Chuck
> _______________________________________________
> Wlug mailing list
> Wlug@mail.wlug.org
> http://mail.wlug.org/mailman/listinfo/wlug
>