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=P7KwKoZcny0ci9z11K8OOMrogw3/SXo5Yg7RjRS0msTuoFsepmpOs | |
o/aXoQs7cjTcfNl3CkPGnvfofSsa9jBL2peCM9434HHWrwb71Wj//LKNIA5Kkkbd | |
gQgA9yhZhBSOUw/+qJARxcwdCOR15HeZBICRTx+gHjlrbn1m2XrWeM= | |
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=loXPQSoy4OuGFVLmgbkOkuxBg3M=; b=ttfkeSe9bgBttayb4Xi+2YwZDUYe | |
DJfztM/K05VYAQJyHiOPz43LYUi+oFPqlMsnxVLVH35rFjeBPzJYrFtj2rEpMMKs | |
O1BE/zEHO62R4qLbIa7MrseNe1dXJJ6GP1L5kD1qHM+WWBmSWELZdzKB4F1sZ1iQ | |
5N3JQjZ0Aw+3xEs= | |
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 15:32:51 +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: | <20130820133251.GI31248@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> <20130820090536 DOT GF31248 AT calimero DOT vinschen DOT de> <521359A0 DOT 8030709 AT mailme DOT ath DOT cx> |
MIME-Version: | 1.0 |
In-Reply-To: | <521359A0.8030709@mailme.ath.cx> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
X-Virus-Found: | No |
--Rn7IEEq3VEzCw+ji Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 20 13:57, bartels wrote: > On 08/20/2013 11:05 AM, Corinna Vinschen wrote: > >>...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? > >> > >>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. > >> > >>This also explains why you get a supposedly early ERROR_END_OF_MEDIA. > >>The partition is just not bigger. > >> > >>Try this: > >>[...] > > $ 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. > > > > > Well, Corinna, you really saved the day. I missed the partition stuff com= pletely. >=20 > $ mt -f /dev/nst0 status 2 > drive type : 56 (STK 9840) > tape capacity : 1419369472 KB remaining : 1324161024 KB > current file : -1 active partition : 1 > current block : -1 cur logical block: 195351 > General status bits on (1090000): > ONLINE IM_REP_EN HW_ECC > min block size : 2 max block size : 524288 > def block size : 131072 cur block size : 0 > density code : 58 (Ultrium LTO-5) >=20 >=20 > Thanks, I think we can close this one! Glad to read that. You could do me a favor, though. At the moment I have no tape drive on any Windows machine for testing. Can you please test the new `partseek' command in mt 2.4.0 which I announced a couple of minutes ago and see if it does what it advertises in `man mt'? Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Rn7IEEq3VEzCw+ji Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAEBAgAGBQJSE3ADAAoJEPU2Bp2uRE+gGcQP/0CTvlF2Ztj8qZkVTiWYzjeq jfGAfcwsN4WykvdQdXjIvq3LqklrYDrRs0uDm5Dn70VdBCS+5vdAIY5zfON3hot/ MDR7a5I+wrfzqGmNIphVzyGSO4lGd4S28/m58sXDryjK9Qe2KebKwNwhVzyOjXd/ mY8s8QOzzv1WW4R5KfPgxo5uWX5Sm7XI49UValUJyrGDMb/xewmjGSW3Hq5cp2cW dkbWSMgezlP3FER1X56yOezXu4IoP3W8IJnbtme513criqVwCTcXX8zELMMJqfU8 6qed0rzTsI0JzoIXncltLOXfFZY2nFohHVQWL1m2qb8UeailZSbo/1AaqFBQlQoU 43tJclH8sNZsRm2tfRdfIt3JszbEmdoZd4N+YImVlPG8+qYlqqvv9VzF/vD+IpAj 3fp1FsZs1pOTQfkA0klSY63fpiCxPWeAGZuLHsw/lWihUq8n31mm3CKwEUrYcDLF epOr7lB9zPJlMXGbOSVfrrTf8Nvc49M6MEYMShDDe0jLS6LlDEtvRIlkiV+v+uN2 sYe32MmHyE86kxQjnEFBRIa0jYXSoesu96/V47F0xFhbIb39lyrekFr7SQtaokfZ Hm5Da4MYAUwQ8Y3MtFF6K/a24mk3JIfu6CxiGoVKjhjZcruEGmZx3/78ZaOu6e/H gXK2FDN/LMgXKL0E+YrD =ZIvu -----END PGP SIGNATURE----- --Rn7IEEq3VEzCw+ji--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |