Quote:
Originally Posted by joshnya
Hello --
I can successfully mount a tape and write to the tape using the tar -b 512 -xvf /dev/st1 <path> command however
|
Before going any further that command will not write to a tape, this will do it
tar -b 512 -cvf /dev/st1 <path>
I wondering if the block size is correct?.
To read these tapes, you must set the blocksize of the tape driver to match the blocksize used when the tape was written, or to variable if the drive supports it (# mt -f /dev/st1 setblk 0)
So before create an archive
To determine the block size:
#mt -f /dev/st1 status
If you want to change it:
#mt /dev/st1 setblk 2048 for example
Remember -b is the blocking factor. For example tar default is a blocking factor of 20 (-b 20) so with a default block size of 512 the record size is 10240 (512 x 20). If you use a factor or 2048 the record size is about 1 megabyte, so when you read the record number you know the number of MB used (mt -f /dev/nt1 tell)
Ciao
-=terry(Denver)=-