This is the mail archive of the
mailing list for the Cygwin project.
Max Block Size in mt
- From: Jeffry T Ross <jtr at mitre dot org>
- To: cygwin at cygwin dot com
- Date: Tue, 3 Oct 2006 19:33:26 -0400 (EDT)
- Subject: Max Block Size in mt
I'm trying to read data from a Sony AIT-e260 SCSI drive under Cygwin.
I know that the tape is good, because I can read from it (using the same
drive) under Redhat.
The first file on the tape is 96 bytes so I do the following:
>> export TAPE=/dev/nst0
>> mt setblk 0
>> dd if=$TAPE of=header.txt
This works fine.
The second file on the tape is 1GB and is written with a block size on
When I do the following:
>> mt setblk 204800
>> dd if=$TAPE of=segment.0
I get the following error:
mt: /dev/nst0: Invalid argument
I've found that the maximum block size in mt can only be 64kB.
Am I missing something or is there a limitation to mt under Cygwin?
If I leave the block size set to variable, I get the following:
>> mt setblk 0
>> dd if=$TAPE bs=204800 of=segment.0
dd: reading `/dev/nst0': Cannot allocate memory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.078 seconds, 0.0 kB/s
Just for kicks, the tape drive status before any dd is:
drive type = 8mm Sony AIT1 tape
drive status = 838860800
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 0 bytes. Density code 32 (ALRF-2 (SLR 7)).
General status bits on (87030000):
EOF WR_PROT ONLINE IM_REP_EN
Jeffry T Ross
The MITRE Corporation
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html