Nonrewinding device must has minor number 1,3,5 etc. Check it.
BTW, if you want to write more then 1 file you must use
mt -f /dev/ntibm1 eof 1
after each one.
WBR, Sergey
Royce Wolf
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
ton.va.us> cc:
Sent by: Linux Subject: SuSE Kernel 2.4.7 Tape Driver
(ntibm0)
on 390 Port
<[EMAIL PROTECTED]
RIST.EDU>
10.07.2002 20:22
Please respond
to Linux on 390
Port
SuSE L/390 SLES7 (31 bit) running under VM 2.4.0.
It appears to me that the non-rewinding tape device (ntibm0) is doing a
rewind when it should be leaving the tape in place.
As a basic test I'm doing the following operation:
mt -f /dev/ntibm0 rewind (position the tape
at beginning)
dd if=/test/test.1 of=/dev/ntibm0 (write out the file
test.1 which contains the line 'test file 1' )
dd if=/test/test.2 of=/dev/ntibm0 (write out the file
test.2 which contains the line 'test file 2')
dd if=/dev/ntibm0 (read in the
contents of the tape)
test file 2 (the tape
contents)
0+1 records in
0+1 records out
If I do a rewind of the tape after writing the second file, and then do a
read of the tape I should see the contents of test.1, but rather see the
contents of test.2 (at the beginning of the tape.)
Is this a valid test for tape positioning?
Is there a problem with the tape390 driver?
TIA...Royce