Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to make chroot command work on alpha
@ 1994-12-23  1:09 Lincoln Stein
  1994-12-28 11:35 ` Gerhard Kircher
  0 siblings, 1 reply; 4+ messages in thread
From: Lincoln Stein @ 1994-12-23  1:09 UTC (permalink / raw)


I'm running an alpha with OSF1 v1.3, and having a heck of a time
getting the chroot(8) command to work from the shell.  I've set up my
directory thusly:

/usr/local/newroot/bin/.
                       sh*
	               ls*
	               pwd*
                   usr/bin/
                   etc/

When I try this command, it fails:

# chroot /usr/local/newroot/bin/ /bin/sh

The error message is:
chroot: /bin/sh not found

What am I doing wrong?  The same setup works fine under SunOS 4.3.1.

Thanks for your help.

Lincoln
-- 
========================================================================
Lincoln D. Stein                Whitehead Institute/MIT Genome Center
lstein@genome.wi.mit.edu	Cambridge, MA 02142
========================================================================


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make chroot command work on alpha
  1994-12-23  1:09 How to make chroot command work on alpha Lincoln Stein
@ 1994-12-28 11:35 ` Gerhard Kircher
  1994-12-28 17:53   ` Lincoln Stein
  0 siblings, 1 reply; 4+ messages in thread
From: Gerhard Kircher @ 1994-12-28 11:35 UTC (permalink / raw)


Lincoln Stein (lstein@genome.wi.mit.edu) wrote:
: I'm running an alpha with OSF1 v1.3, and having a heck of a time
: getting the chroot(8) command to work from the shell.  I've set up my
: directory thusly:

: /usr/local/newroot/bin/.
:                        sh*
: 	               ls*
: 	               pwd*
:                    usr/bin/
:                    etc/

: When I try this command, it fails:

: # chroot /usr/local/newroot/bin/ /bin/sh

: The error message is:
: chroot: /bin/sh not found

: What am I doing wrong?  The same setup works fine under SunOS 4.3.1.

: Thanks for your help.

: Lincoln
: -- 
: ========================================================================
: Lincoln D. Stein                Whitehead Institute/MIT Genome Center
: lstein@genome.wi.mit.edu	Cambridge, MA 02142
: ========================================================================

Hi,

I think you mean

  chroot /usr/local/newroot /bin/sh

but anyway it will not work unless you have

  /etc/sia/matrix.conf
  /etc/sia/siainitgood

under  your  /usr/local/newroot. Besides that you should use
the statically linked binaries from /sbin  unless  you  also
have

  /usr/shlib/libc.so
  /sbin/loader .

Regards,
 -gerhard

--
 Gerhard Kircher                   kircher@edvz.tuwien.ac.at
 Vienna University of Technology   phone: +43 1 588 01 5599
 Computing Services                fax  : +43 1 587 42 11
 Wiedner Hauptstrasse 8-10, A-1040 Vienna, Austria


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make chroot command work on alpha
  1994-12-28 11:35 ` Gerhard Kircher
@ 1994-12-28 17:53   ` Lincoln Stein
  0 siblings, 0 replies; 4+ messages in thread
From: Lincoln Stein @ 1994-12-28 17:53 UTC (permalink / raw)


Thanks to everyone who responded to my posting.  In the end, it turned
out that Gerhard Kircher had found the problem: I was trying to chroot
using the shared-library version of sh. and didn't have libc.so
present in my new root.

Lincoln

In article <3drii3$jsl@news.tuwien.ac.at>,
Gerhard Kircher <gk@gkws.edvz.tuwien.ac.at> wrote:
>Lincoln Stein (lstein@genome.wi.mit.edu) wrote:
>: # chroot /usr/local/newroot/bin/ /bin/sh
>
>: The error message is:
>: chroot: /bin/sh not found

>I think you mean
>
>  chroot /usr/local/newroot /bin/sh
>
>but anyway it will not work unless you have
>
>  /etc/sia/matrix.conf
>  /etc/sia/siainitgood
>
>under  your  /usr/local/newroot. Besides that you should use
>the statically linked binaries from /sbin  unless  you  also
>have
>
>  /usr/shlib/libc.so
>  /sbin/loader .



-- 
========================================================================
Lincoln D. Stein                Whitehead Institute/MIT Genome Center
lstein@genome.wi.mit.edu	Cambridge, MA 02142
========================================================================


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to make chroot command work on alpha
@ 1994-12-29 17:47 Terry Carruthers
  0 siblings, 0 replies; 4+ messages in thread
From: Terry Carruthers @ 1994-12-29 17:47 UTC (permalink / raw)


My reading of the manpage for chroot leads me to believe that
your setup is incorrect.  If you want to execute the 
chroot command as posted you need to create a secondary
bin dir under /usr/local/newroot/bin and move sh to that
location.

Or you can leave your setup as is, and change your command to:

    # chroot /usr/local/newroot /bin/sh


	Terry L. Carruthers			Digital Equipment Corp.
	DECwest Engineering			14475 NE 24th Street
	tlc@zso.dec.com				Bellevue, WA 98007
						206.865.8869 / dtn 548.8869
                                           	fax 206.865.8890




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1994-12-29 17:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-12-23  1:09 How to make chroot command work on alpha Lincoln Stein
1994-12-28 11:35 ` Gerhard Kircher
1994-12-28 17:53   ` Lincoln Stein
  -- strict thread matches above, loose matches on Subject: below --
1994-12-29 17:47 Terry Carruthers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox