OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: "gzip: /dev/stdin: Inappropriate ioctl for device" on installation CDs

From: Moritz Jodeit (moritzjodeit.org)
Date: Wed Feb 23 2005 - 16:21:44 CST


On Wed, Feb 23, 2005 at 09:57:57AM -0500, Daniel W Barowy wrote:
> Hello,
>
> I've googled high and low for a solution for this problem, so if
> there's something obvious that I've missed kindly point me in that
> direction.
>
> When I boot from the OpenBSD 3.5 or 3.6 CDs, and I try to use gzip,
> in any invocation, I get something like the following error:
>
> gzip: /dev/stdin: Inappropriate ioctl for device
>
> Which suggested to me that gzip is rejecting input from a terminal--
> I got the above error trying to give gzip something on stdin, but I get
> an error no matter what I put gzip to work on. For example, a simple
> 'gzip foo.txt' gives me:
>
> gzip: foo.txt: Inappropriate ioctl for device
>
> Anyhow, I'm stumped. gzip works as I would expect when I boot from a
> full install. Maybe the boot CD's version of gzip isn't expected to be
> fully functional? What I'd like to do here is boot from a separate
> volume so that I can do a bare-metal backup of my filesystem to an
> external drive (pipe dd to gzip), that way we'll have a quick starting
> point for emergency restores. Any suggestions?

gzip on the install media does not support compression due to
space constraints.

Moritz