delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/18/12:49:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 18 Oct 2012 18:48:45 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Using tar to run backups onto a tape device using cygwin
Message-ID: <20121018164845.GV25877@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1350571521697-93659 DOT post AT n5 DOT nabble DOT com> <20121018155723 DOT GR25877 AT calimero DOT vinschen DOT de> <1350577673773-93671 DOT post AT n5 DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <1350577673773-93671.post@n5.nabble.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Oct 18 09:27, srikant veeraraghavan wrote:
> Thanks Corinna,
> 
> I actually read similar posts from you here wherein you have mentioned to
> put the device names as st0 or nst0, depending on the type.
>  I tried even this:
> tar -cf /dev/tape1 /cygdrive/c/StratfordData/30GB_Dataset/

Don't try arbitrary file names, read the User's Guide instead.

> and also 
> tar -cf /dev/st0 /cygdrive/c/StratfordData/30GB_Dataset/
> 
> st0 is the first tape location. I assumed that if my symbolic Tape name
> under device manager shows tape5 my st number would be st5. Is that right?

Yes.

> Unlike in Linux where I could check using the sg_map command. 
> I took st0 fo Tape0, st1 for Tape1 and so on...
> 
> But still after running the command when I check no data is been written. My

So you wrote to /dev/st0? Or /dev/st5?  Whatever, existing tape
drives will also be visible as character devices under /dev.

How did you check if anything has been written?  Did the tape drive
show activity?  Did tar take a long time to write?  Did you mis-type
and create a file instead, perhaps?

Don't use tar in the first place.  Use the mt command and see if your
drive is recognized.  Play with mt commands and look if they work.
Cygwin's mt status command can show a bit more information than its
Linux counterpart if you use an additional number, as in:

  $ mt -f /dev/nstX status 1 

or

  $ mt -f /dev/nstX status 2


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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