Sponsored Content
Full Discussion: chroot Issues on Solaris
Operating Systems Solaris chroot Issues on Solaris Post 302585108 by sudharma on Tuesday 27th of December 2011 12:07:23 PM
Old 12-27-2011
chroot Issues on Solaris

Hello Friends,

I am trying the chroot command on a Solaris box (SunOS sx07 5.10 Generic_144489-12 i86pc i386 i86pc) but i am getting an error message

chroot: exec failed: Exec format error

Did any of you folks got this error before .. and how did you guys fix it .. please help me out....Smilie

Wish you all a very Happy Holidays and a Very Happy New Year!!!!


Thank you All!!

Best Regards
Sudharma.

Last edited by jim mcnamara; 12-27-2011 at 03:02 PM.. Reason: remove font settings - back to default
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Solaris boot issues

i'm having 2 problems. 1. the system will always look to boot from the net. i've changed the prom settings so that it boots from the disk, by entering "setenv boot-device disk0:3", but the system still seems to want to boot from the net. 2. i replaced my creator3d with an elitem6 and i did... (6 Replies)
Discussion started by: xyyz
6 Replies

2. Solaris

Samba 3.0.14 on Solaris 10 issues

Hello All, I am facing a wierd problem with the Samba 3.0.14a on Solaris 10 and CUPS (1.1.12) printing. First of all am not sure if this combination works well. If someone could throw some light, it would be of great help. Samba is setup with security=server, and it is currently a member of... (0 Replies)
Discussion started by: Sapna
0 Replies

3. Solaris

Solaris 9 Patch Issues

I have never had problems getting patch clusters from sunsolve and running them before. I've extracted the 9_Recommended.zip file ran ./install_cluster all the normal stuff i do to patch etc......But this time all my patches are returning codes 5,8,17 the 5's and 8's don't really matter but my... (1 Reply)
Discussion started by: kingdbag
1 Replies

4. Solaris

Jumpstart Issues Solaris 10

I'm trying to jumpstart my remote server. My /etc/hosts and /etc/ethers files have the correct data. Keep getting the following message at the ok prompt after running a boot net - install Link hasn't comeup yet Ran a test-net and got the following message. Link is -- down When... (7 Replies)
Discussion started by: soupbone38
7 Replies

5. Solaris

issues with wu-ftpd 2.6.2 on solaris 9

Hihi, Anyone have encountered any issues with wu-ftpd on solaris 9. There are intermitten error msg 425 can't build data connection with doing ls or get or put files. I have did a sniff and from the sniffer logs I found that the FTP traffic is not using the standard protocol to... (0 Replies)
Discussion started by: ahkimkia
0 Replies

6. Solaris

solaris 10 liveupgrade issues

I got this output from a system running solaris 10 : # lustatus BE_name Complete Active ActiveOnReboot CopyStatus -------------------------------------------------------------------------------- oldvol yes yes yes - newvol no no no - bigvol no no no - # How do i remove (or... (1 Reply)
Discussion started by: ibroxy
1 Replies

7. Solaris

Solaris zone issues

Hi, Configuring a new zone in Solaris 10, even though used svcadm to enable the service telnet, it give the following state always enabled uninitialized svc:/network/telnet:default Also noticed the same is happening while enabling other services too. Any ideas. Thanks for your help. (5 Replies)
Discussion started by: uxadmin007
5 Replies

8. Solaris

Solaris 10 Patching Issues

Hello folks! I appear to be having troubles installing the recommended cluster patch for the Solaris 10 OS! I am absolutely clueless on where to start with this. I know it's an error with pkgadd and patchadd. # ./installcluster --s10cluster Setup . Solaris 10 SPARC Recommended... (5 Replies)
Discussion started by: adelsin
5 Replies

9. Solaris

Solaris 10 - DNS / Issues / Help

Hi all Long time no speak, I hope you are all well. Im looking at a DNS issue here and reckon Igot a AD / DNS server issue elsewhere but need to rule out the configuration of my two server's first. IVe got the nameserver enteries in /etc/resolv.conf and dns in the /etc/nsswitch.conf ... (2 Replies)
Discussion started by: sbk1972
2 Replies

10. Solaris

Solaris 8 vs Solaris 10 compatibility issues !

Hello, I recently upgraded our system from Solaris 8 to 10. It seems couple of binaries crashed in the new server Solaris 10. Before digging too much on it , from theory it sounds like any binary that is built on Solaris 8 (using gmake) is supposed to be compatible with Solaris 10 , right ? ... (1 Reply)
Discussion started by: sudsa
1 Replies
PIVOT_ROOT(8)						       Maintenance Commands						     PIVOT_ROOT(8)

NAME
pivot_root - change the root file system SYNOPSIS
pivot_root new_root put_old DESCRIPTION
pivot_root moves the root file system of the current process to the directory put_old and makes new_root the new root file system. Since pivot_root(8) simply calls pivot_root(2), we refer to the man page of the latter for further details. Note that, depending on the implementation of pivot_root, root and cwd of the caller may or may not change. The following is a sequence for invoking pivot_root that works in either case, assuming that pivot_root and chroot are in the current PATH: cd new_root pivot_root . put_old exec chroot . command Note that chroot must be available under the old root and under the new root, because pivot_root may or may not have implicitly changed the root directory of the shell. Note that exec chroot changes the running executable, which is necessary if the old root directory should be unmounted afterwards. Also note that standard input, output, and error may still point to a device on the old root file system, keeping it busy. They can easily be changed when invoking chroot (see below; note the absence of leading slashes to make it work whether pivot_root has changed the shell's root or not). EXAMPLES
Change the root file system to /dev/hda1 from an interactive shell: mount /dev/hda1 /new-root cd /new-root pivot_root . old-root exec chroot . sh <dev/console >dev/console 2>&1 umount /old-root Mount the new root file system over NFS from 10.0.0.1:/my_root and run init: ifconfig lo 127.0.0.1 up # for portmap # configure Ethernet or such portmap # for lockd (implicitly started by mount) mount -o ro 10.0.0.1:/my_root /mnt killall portmap # portmap keeps old root busy cd /mnt pivot_root . old_root exec chroot . sh -c 'umount /old_root; exec /sbin/init' <dev/console >dev/console 2>&1 SEE ALSO
chroot(1), mount(8), pivot_root(2), umount(8) AVAILABILITY
The pivot_root command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. Linux Feb 23, 2000 PIVOT_ROOT(8)
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy