delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=bBK7Lw9NDiC8KRdtd0yWIiZgrPJxYWdoIHxKMl88rwGxCJ4bY7u17 | |
K40djrQfdu89jfHBYFzhUSmEao45xa6or6cDyxpfvfDuKDiHWIY9ItlXqSJMCZM0 | |
CJtW9vfhk020O/Q7Q0FHZcsfH3Yh+l98LsELqOYIIF0UXVaQ2zA53E= | |
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:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=+0Jxm8rZvDDcfYAeq8563BZ3fk4=; b=lWEiod0vF7k+JSeYW9xrnv77CcI7 | |
sMN0Mbsg4ubr9wjSn1/jSdTd+2jhAVMTYhnEOHWQvScBTDPKGQ1rONUMrBebmhnU | |
ouGWqP/uWN2at6+TUQBiROOM8lD2ZD/pEN6CJJEs4iqzw+Dgz11ly4uoDTdoR765 | |
wFNqj/oVCr4XYE4= | |
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 |
X-Spam-SWARE-Status: | No, score=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED autolearn=ham version=3.3.2 |
Date: | Tue, 20 Aug 2013 11:05:36 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: mt and tar fail on LTO-5 drives |
Message-ID: | <20130820090536.GF31248@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <520FC274 DOT 3040001 AT mailme DOT ath DOT cx> <20130819101917 DOT GC18757 AT calimero DOT vinschen DOT de> <52124601 DOT 5000409 AT mailme DOT ath DOT cx> <20130819171203 DOT GC31248 AT calimero DOT vinschen DOT de> <52126DBF DOT 7040904 AT mailme DOT ath DOT cx> <20130820082905 DOT GE31248 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20130820082905.GE31248@calimero.vinschen.de> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
X-Virus-Found: | No |
--Pgaa2uWPnPrfixyx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 20 10:29, Corinna Vinschen wrote: > On Aug 19 21:10, bartels wrote: > > On 08/19/2013 07:12 PM, Corinna Vinschen wrote: > > > > > >It would be interesting to see the OS error codes. If you run tar und= er > > >strace, the trace output should contain a line like > > > > > > [...] write: Win32 error XXXX > > > > > >or > > > > > > [...] close: Win32 error XXXX > > > > > >The value of XXXX is what I'm curious about. > >=20 > > Here is the error: > >=20 > > 15692 21364024 [main] tar 5700 mtinfo_drive::error: write: Win32 error= 1100 >=20 > ERROR_END_OF_MEDIA. The OS really thinks the medium is at its end... >=20 > ...or the *partition* is at its end. Something occured to me this > morning. Are you using used tapes, rather than fresh ones? Are the > tapes you're using partitioned, by any chance, maybe because LTFS > partitions the tape in two partitions, one for the files and one for > metadata? >=20 > This would explain the low capacity you see in mt status output. If the > tape is partitioned, the capacity returned by GetTapeParameters is not > the size of the entire tape, but the size of the current partition(*). > And partition 0 is probably the metadata partition. >=20 > This also explains why you get a supposedly early ERROR_END_OF_MEDIA. > The partition is just not bigger. >=20 > Try this: >=20 > $ mt -f /dev/nst0 setpartition 0 > $ mt -f /dev/nst0 status 2 > $ mt -f /dev/nst0 setpartition 1 > $ mt -f /dev/nst0 status 2 Make that $ mt -f /dev/nst0 setpart 0 $ mt -f /dev/nst0 status 2 $ mt -f /dev/nst0 setpart 1 $ mt -f /dev/nst0 status 2 I wrote the setpart and mkpart commands before mt on Linux had them and naturally they are now using different strings. I'll have another look into mt to make it more compatible with mt on Linux. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Pgaa2uWPnPrfixyx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAEBAgAGBQJSEzFgAAoJEPU2Bp2uRE+g/vMQAKaYGk3hU/XXXC5q0yVjdTNU kjhctTHQW196o7pf1UgrhnB4e59BTT7PZpMHthOx3udjkQ2UrCMwYnc0Htgb0pon nK4ZozlFaR1ZB1R1wQr3xpNVUDxwLtPHv2UPQ1fRp7bofirSkaAwhPap6o+c3zuQ MXBjxpEqdc5GEVhsI8TKy3fQ1n6ILQtvJkT86X/I5lZk3/dKnOjUc6xXnr1HyGeH otTay2fl/L1zKggKrfsIcyZUakbncJx9EkyWdunqJuQC6Llzf/SJRToYw1HNwdX9 BFZX8P3p5vShiBX1bf5CibwWDBCEIiGatmznHC2U+TmIjQnw4a5/AOuFQzCQE6lF ySgjbiwnKJPq0gTPWQD/EUMgIusYWvwdMoyV2sA1i1XBck6dL41UHe+WCkMHxfGi /AETDCFGfFL8eaUwg3jgYRv45RcHztJj9VlnygdfW3NuxEWlwS9m5dTsBxG2A+oG QzxcPBfGN265m6wOyZPIAt+5jGCWrqnV31WPXd/pehzvZ+vC4rG3TREUJTtNZVo+ ZRXcKGXAINiF47qVqiVmnW1/IRZWGP6Y2/ikO/LEwYc57WDXqDgtMHFQmjod0kWW 7cJPwC0c1oNS1okWQsjvqLJt9JL/dCUMrSZwGa9IwWvnNBRai+ZmpQDoa1jz7niI zK1Vq0fqSslt7ptt/VLm =pncU -----END PGP SIGNATURE----- --Pgaa2uWPnPrfixyx--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |