delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/22/08:34:10

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=Vcr
97dAFoNRXrEFWLC+wwW73TJGsyz21Pzeg76X8twof8ni3igj7Gc73GmB81NsYTKL
msgPYTbg1V8xpaXUtgdhMi1wskbLS7R+sf9xR1TIz9lEaQ6phkvQdirw2YomB1LM
mRbW6TzO8jJsvpc9VAPqQ02A+FOxYnzMTJvPLcyM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=iPNQoSNpV
dmKCUUkWYWrpuMnK5c=; b=AO98fR9VW0BRZIVMfPA8T9P3Cv5r76D0/NKmX24ok
/dgQr7hboy5ARwhW6PRHkAexcOcyNH3gxCpEfC2Iqex+6IJykVhussN92DGbgvOB
mBDai0iPj5lP3Bsjk5hZa61Hb7idHBO98Td68QdswAqMyHPxaVKh3B+2SoWAOrS8
mY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=density, rewind, ONLINE, H*u:38.0
X-HELO: mout.kundenserver.de
To: cygwin AT cygwin DOT com
From: Timo Maier <tam AT diotec DOT com>
Subject: mt LTO 6 Unknown type of tape device AND online status not correct
Message-ID: <5B2CECB2.3080101@diotec.com>
Date: Fri, 22 Jun 2018 14:33:54 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
X-IsSubscribed: yes

Hello,

the following is done with: mt V2.5.2, Corinna Vinschen, Aug 26 2013

I have a Quantum LTO 6 Tape Drive (QUANTUM_ULTRIUM-HH6) which works in general with the latest cygwin64. I can use mt to rewind or eject and tar can write and read the tape.

Before starting to write I want to check if the tape is ready with "status", but no matter if the tape is in or not, status always says ONLINE.

Can anyone help, please? Thanks in advance.

***************

C:\Tools\cygwin64\bin>mt -f /dev/nst0 status 3

drive type       :       01 (Unknown type of tape device)
tape capacity    : 2328305664 KB          remaining        : 1651876953 KB
current file     :        0             active partition :        0
current block    :        0             cur logical block:        0
General status bits on (410b0000):
  BOT ONLINE IM_REP_EN HW_ECC HW_COMP
min block size   :        1             max block size   :  1048576
def block size   :    65536             cur block size   :        0
density code     :       00 (default)

Drive(r) Capabilities:
----------------------
fixed length blocks        : yes        var length blocks          : yes
set block size             : yes        fixed partitioning         : yes
select partitioning        : yes        initiator partitioning     : yes
get logical blockno        : yes        logical block spacing      : yes
get absolute blockno       : no         absolute block spacing     : no
logical block immediate    : yes        absolute block immediate   : no
relative block spacing     : yes        backward spacing           : yes
immediate rewind           : yes        fast EOM spacing           : yes
immediate spacing          : no         write marks immediate      : yes
filemark spacing           : yes        write filemarks            : yes
write long filemarks       : no         write short filemarks      : no
report setmarks            : no         setmark spacing            : no
write setmarks             : no         set report setmarks        : no
sequential filemarks       : no         sequential setmarks        : no
load and unload            : yes        un/load immediate          : yes
lock and unlock            : yes        un/lock immediate          : no
tape retension             : no         retension immediate        : no
erase on bop only          : no         erase immediately          : yes
long erase                 : yes        short erase                : yes
sw ejects media            : yes        report write protection    : yes
report EOT warn size       : no         set EOT warn size          : no
data padding               : no         set data padding           : no
returns capacity           : yes        returns remaining          : yes
hw error correction        : yes        set hw error correction    : no
hw compression             : yes        set compression            : yes
set comp. on bop only      : no         report cleaning request    : yes

C:\Tools\cygwin64\bin>mt -f /dev/nst0 status

Unknown type of tape device tape drive:
File number=0, block number=0, partition=0
Tape block size 0 bytes. Density code 0x00 (default).
Soft error count since last status=0
General status bits on (410b0000):
  BOT ONLINE IM_REP_EN

C:\Tools\cygwin64\bin>mt -f /dev/nst0 rewoffl

(Tape rewinds and is being ejected)

C:\Tools\cygwin64\bin>mt -f /dev/nst0 status

Unknown type of tape device tape drive:
File number=-1, block number=-1, partition=0
Tape block size 0 bytes. Density code 0x00 (default).
Soft error count since last status=0
General status bits on (10b0000):
  ONLINE IM_REP_EN


-- 
Timo


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019