delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/08/03:51:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <39168012.33ACFD0C@vinschen.de>
Date: Mon, 08 May 2000 10:51:30 +0200
From: Corinna Vinschen <corinna AT vinschen DOT de>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Organization: Cygnus Solutions, a Red Hat Company
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: JUAN LUIS GARCIA BUENDIA <JLUISGAR AT santandersupernet DOT com>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: tape support
References: <000b01bfb876$473b8d00$df17ebc3 AT fermina>

Hi Juan,

first of all, please send plain text messages, no html. Thanks.

> JUAN LUIS GARCIA BUENDIA wrote:
> 
> Installing a copy of cigwin32 form latest directory does not create
> the special files (devices) under /dev directory that are needed to
> make
> tape backups.

That's ok. The /dev/foo devices are implemented internaly.
There is no need to explicitly create /dev or anything in
it.

What's really needed for the tape support are mount table
entries which map the POSIX tape device name to the windows
tape device name. The NT device names for tapes are 

	\\.\tapeX

with X is the ordinal number of the tape drive, beginning
with 0. So if you only have one tape drive, it's name is:

	\\.\tape0

The POSIX name is any device name you want which begins with
"/dev/". The same name beginning with character `n' is then
used for the no rewind device. What you have to do is, mount
your tape device:

	mount -f -b -s //./tape0 /dev/st0
	mount -f -b -s //./tape0 /dev/nst0

> i have also errors issueing mknod, wich does not work properly
> with the option -m. and without behaves wildly

mknod isn't implemented in cygwin. You have two types of
/dev devices. The raw devices and `all other'. All other are
eg. ttys or com ports. They already exist and you can use
them without having to care for creating the /dev entry.
Try "echo surprise > /dev/tty"

The raw devices have to be mounted. They are internally known
by their windows name and you can name them in the POSIX name
space via the mount table. For example you may want to use
the partition X: as raw device (caution!):

	mount -f -s -b //./X: /dev/hdc3

or the floppy:

	mount -f -s -b //./A: /dev/fd0

or the complete hard drive 1 (numbering scheme is visible in the
disk management tool of NT):

	mount -f -s -b //./physicaldrive1 /dev/hdb	

> the mt command that i have downloaded from Corinna's site, behaves
> randomly...

It needs the mount table entries shown above.

Hope, this helps,

Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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