| 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:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| q=dns; s=default; b=cDqIrBPtPM0zl9u/2nYavHblvNu247NaD+LS4KwZT0e | |
| DSqlYcWwMnEsJ/7IBsCGsetf61Fa8c2Ek9sHs7lVq3iphQ//ZIRm+qRrEK2MXi5n | |
| Raf39zovhMnSHPsQKAVko+xJMsGoLZgCInmiOULkSIx09YD+jf0TYTC8Cy4WAlTk | |
| = | |
| 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:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| s=default; bh=pLaumBVwiPt9zNeBKFNJbVYob4E=; b=WZwu88s9nCqftdDqm | |
| uJIoFnPSiDTpsUtzOJMvREjNVTeeIWcC697a/sbypcErajoOq8ARS0Sf5Alwj0t0 | |
| sBeqOurWWESSX9CV1EzU8hLZi5nuzxcO/wZP/Xq758anh6v2TRK9KMsWxziCV8Mj | |
| ohDXjZHjFIOolEfrDuxhUpeuLE= | |
| 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=-3.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED autolearn=ham version=3.3.2 |
| Message-ID: | <521359A0.8030709@mailme.ath.cx> |
| Date: | Tue, 20 Aug 2013 13:57:20 +0200 |
| From: | bartels <bartels AT mailme DOT ath DOT cx> |
| User-Agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130704 Icedove/17.0.7 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: mt and tar fail on LTO-5 drives |
| 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> |
| In-Reply-To: | <20130820090536.GF31248@calimero.vinschen.de> |
On 08/20/2013 11:05 AM, Corinna Vinschen wrote:
> 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 under
>>>> 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.
>>> Here is the error:
>>>
>>> 15692 21364024 [main] tar 5700 mtinfo_drive::error: write: Win32 error 1100
>> ERROR_END_OF_MEDIA. The OS really thinks the medium is at its end...
>>
>> ...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 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.
>
>
Well, Corinna, you really saved the day. I missed the partition stuff completely.
$ 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)
Thanks, I think we can close this one!
- Bartels
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |