delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/05/12:37:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Mark Himsley <mark AT mdsh DOT com>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: /dev/nst0: Permission denied
Date: Wed, 05 Sep 2001 17:37:31 +0100
Message-ID: <t7kcpt0bjvv8eaovcofj4i5ncgrles7gds@4ax.com>
References: <4s3cpt4g1vvlqvodqfrhmqkp5p1spelu80 AT 4ax DOT com> <20010905141409 DOT H30380 AT cygbert DOT vinschen DOT de>
In-Reply-To: <20010905141409.H30380@cygbert.vinschen.de>
X-Mailer: Forte Agent 1.8/32.548
MIME-Version: 1.0

Hi Corinna,

Sorry to have taken so long to come back to you, I was trying to get some
work done...

On Wed, 5 Sep 2001 14:14:09 +0200 you wrote:

>> $ cat /dev/nst0
>> cat: /dev/nst0: Permission denied
>> 
>> Why is this, and how can I read the DAT tape.
>
>Wrong blocksize. Call `mt -f /dev/nst0 status 2' with tape in
>drive.  It will show you the blocksize currently set in the
>NT tape device driver (often 512), e.g.:

Interesting thought. I was sure that I *had* done 'mt -f /dev/nst0 setblk
0' before I started, which was what I did just before I wrote the DAT in
Linux, but obviously I hadn't. You have solved that problem :-)

One other point. I have managed to completely lock-up Cygwin, requiring a
reboot to free up the DAT drive, by trying to `cat` a DAT tape which was
actually a `tar`. On Linux I get the error:

linux # cat /dev/nst0
cat: /dev/nst0: Cannot allocate memory

but on Cygwin `cat` hangs for ever and Cygwin has to be killed.
If I restart Cygwin and try to do anything with the DAT drive before
rebooting I get errors like:

Win2K $ mt -f /dev/nst0 status
TapeStatus: 6: The handle is invalid.

mt: Error reporting Tape status


Thanks for your help :-)

--
Mark Himsley
In Acton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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