X-Spam-Check-By: sourceware.org Date: Mon, 10 Jul 2006 12:18:42 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: "Beauchamp, Warren J (GE Comm Fin)" cc: cygwin AT cygwin DOT com Subject: RE: cygwin cpio with tape support? In-Reply-To: <0B325729120E424CA37C2D7832B3F0E201A95382@CINMLVEM20.e2k.ad.ge.com> Message-ID: References: <0B325729120E424CA37C2D7832B3F0E201A95382 AT CINMLVEM20 DOT e2k DOT ad DOT ge DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com . Thanks. Also, top-posting reformatted. On Mon, 10 Jul 2006, Beauchamp, Warren J (GE Comm Fin) wrote: > -----Original Message----- > From: Beauchamp, Warren J (GE Comm Fin) > Sent: Friday, July 07, 2006 9:57 AM > To: 'cygwin AT XXXXXX DOT XXX' > Subject: RE: cygwin cpio with tape support? > > > -----Original Message----- > > From: Igor Peshansky [mailto:pechtcha AT XX DOT XXX DOT XXX] > > Sent: Friday, July 07, 2006 9:34 AM > > To: Beauchamp, Warren J (GE Comm Fin) > > Cc: cygwin AT XXXXXX DOT XXX . Thanks. > > Subject: Re: cygwin cpio with tape support? > > > > > On Fri, 7 Jul 2006, Beauchamp, Warren J wrote: > > > > > > > Hi, > > > > > > > > I have poked around on the web trying to find this for a while and am > > > > out of luck. > > > > > > > > I have a DAT drive on a Win2000 server, have installed the latest > > > > build of cygwin(1.5.20), and am able to mount and access the DAT drive > > > > > > > with mt and tar but not with cpio. There's a cpio archive on the tape > > > > I need to read. I have seen references to cygwin builds of cpio that > > > > contain tape support. Can you point me in the right direction for the > > > > current binaries? > > > > > > Can you access the drive with dd? You should be able to use dd to write > > > the archive to stdout, and then pipe it to "cpio -i"... > > > HTH, > > > Igor > > > > Hi Igor, > > > > dd appears to access the drive , but I get "dd: reading '/dev/st0': > > cannot allocate memory" > > > > I tried: dd -if=/dev/st0 of=test123.bin > > And: dd -if=/dev/st0 | cpio -i > > > > Thanks again, > > > > -Warren. > > Hi Igor, > > Looks like I needed to add the block size. > > "dd bs=5120 if=/dev/st0 of=test1.bin" works fine > > I'll try piping it to cpio next. Does the following syntax look right? > > "dd bs=5120 if=/dev/st0 | cpio -i" That's what Corinna replied 3 days ago in . As for the syntax, I'm not a dd or cpio expert, so I would have to consult the manpages, which you can do just as easily. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/