?
Solved

Excecuting CPIO in windows 2000 via DOS

Posted on 2003-03-06
4
Medium Priority
?
353 Views
Last Modified: 2010-04-21
I am currently trying to extract a cpio file from a Dos shell within windows 2000. This file is coming from a Unix environment.

The line I want to execute is
   cpio -icvBdmu < filename.cpio

I have downloaded an application called UnixDos which executes unix commands from within Windows 2000. However, this does not allow you to pass the switch B to the command CPIO. Therefore I could only use:

   cpio -icvdmu < filename.cpio

When executed the following erros message "Out of Phase -- reading next block" continuously repeats until I break out of it. The UnixDos does not seem to refer how you can set Block size to XXXX anywhere.

My question is does anyone know what is the best way to extract a cpio file in windows? Is it possible to pass the above switches?
0
Comment
Question by:CanMania
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
Gns earned 240 total points
ID: 8079415
Cygwin. Get it from http://www.cygwin.com
It includes, amongst many nifty features, cpio.
You will be able to use both -B and --block-size= syntax:-).

-- Glenn
0
 

Author Comment

by:CanMania
ID: 8079627
Thanks Glenn for that, will try it out and get back to you.
Canice
0
 

Author Comment

by:CanMania
ID: 8080966
Glenn,

I have installed this application and have it working.

The only problem I am having is that the file I am trying to extract is over 1GB and the CPU usage maxed out.

thanks
Canice
0
 
LVL 20

Expert Comment

by:Gns
ID: 8081057
I don't know if the "nice" utility have any effect under cygwin, but you could always try it:-).
r just live with it:-).

-- Glenn
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question