It Works! It Works!

I tried experimenting with a short file and found that dd couldn't read 
what it wrote.  The file was definitely there in some fashion because 
'mt eom' followed by 'mt status' said the tape was at block 9, which is 
about right (the default phys block is 512 bytes and the file was 4010 
bytes).  However, neither dd or cp could read anything back at all (with 
bs=32k).

You'll recall that although I'm on Debian 2.2 I was using the 2.4.0  
kernel which contains ide-tape version 1.16f.  I backed off to the  
2.2.17 kernel with ide-tape 1.13 and problem solved.

Thanks for  pointing me in the right direction.

-Mack

John R. Jackson wrote:

>> #mt rewind
>> #dd if=/dev/tape bs=32k count=1 > /tmp/f0.b0
>> 0+1 records in
>> 0+1 records out
>> #ll /tmp/f0.b0
>> -rw-r--r--    1    root    root    26624 Jan 25 09:04 /tmp/f0.b0
>> #strings /tmp/f0.b0
>> AMANDA: TAPESTART DATE 20010123 TAPE Optivel-01
> 
> 
> That's got to be something like:
> 
>   * A hardware problem.
> 
>   * A drive settings problem.
> 
>   * A hardware block size mismatch problem (see my other post today).
> 
> I'd stick a scratch tape in the drive and start playing with short files
> with 32 KByte blocks and make sure I could get them back.  I'd also
> check the hardware block size and drive settings.
> 
>> ...  Many people have said amrecover doesn't rewind, but the 
>> tape drive sure sounds like it does.
> 
> 
> I can guarantee you amrecover/amrestore do **not** rewind.  Many people,
> including myself, use that feature to position the tape by hand because
> it's faster on some devices than scanning through file by file.
> 
> If the drive is rewinding, you may have the wrong device, although your
> other mail seems to indicate that's OK.  I'd guess you're just hearing
> the drive wind up for I/O, not actually doing a rewind.
> 
>> Mack Earnhardt
> 
> 
> John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
> 
> 
> 
> 

-- 
**********************************
Mack Earnhardt
Optivel, Inc.
E-mail: [EMAIL PROTECTED]
Voice:  317.507.6274
Fax:    800.832.5615
Web:    http://www.optivel.com
**********************************

Reply via email to