09-29-2009
Messed up my boot environment or root profile
Ok, a couple weeks ago I was fixing a cron report about perl not happy with 'locale' info (LANG and LC not set). As a result, I was experimenting with setting the correct 'locale' in several areas (like /etc/sysconfig/i18n and who knows where). Somehow after a reboot, as soon as the OS starts loading (first at populating /dev), I get the following error:
'Cannot execute binary file'.
At first I thought there was a problem with /sbin/start_udev however if I get into single user mode and then init to level 3, all scripts return the same error 'Cannot execute bianry file'. It is clear to me that I somehow messed up the root or boot environment so it doesn't know what to do with startup scripts. Can someone give me some point form instructions as to what I should systematically look at in order to fix this? I've spent two weeks reading forums/google and I'm at a loss.
Thanks a million for any/all help.
Gary.
OS: StrongBolt on Sun Cobalt Cube 3 Pro running Centos 4
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i messed up while installing freebsd into a dual os wannabe system.
Now, how do i del it( so i wouldn't get prompted to choose freebsd during boot?)so that i could try installing a different flavour of linux?
cheers:eek: (1 Reply)
Discussion started by: coffeecoolers
1 Replies
2. UNIX for Dummies Questions & Answers
All,
I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies
3. Solaris
Hi,
I'm using solaris 8 and I need to know where I can add the following variable to have it applied to all my user Ids.
I tried to add this to /etc/profile but not working when i check with "env" command :
export PW_MATRIX=/usr/local/ccms/security/dat/.PASSWORD_MATRIX
export... (2 Replies)
Discussion started by: unclefab
2 Replies
4. Solaris
Hi friends,
On a Solaris system is the .profile executed for the user root also as it is for any normal user ?
if i have to change the PATH variable can i add it to the .profile?
and by default ther .profile is not found in the / directory. i can see it in /etc as /etc/profile.
Should i... (1 Reply)
Discussion started by: sveera
1 Replies
5. Shell Programming and Scripting
:(
1.) How is .profile and environment variable linked.?
2.) What happens when we execute a script.? (3 Replies)
Discussion started by: guhas
3 Replies
6. Solaris
I don't know where the environment config file for root user is in the Bourne shell on Solaris 10?
Can you help me, or am I helpless???? (2 Replies)
Discussion started by: Joncamp
2 Replies
7. AIX
Hello
This is the format of present profile which we use for a AIX user
export DMRUNuser ; DMRUNuser="owbrunuser_10"
export DMRUNpasswd ; DMRUNpasswd="ods$12345"
DMRUNuser&DMRUNpasswd were the environmental users which store the user id and password of a... (1 Reply)
Discussion started by: kalpana.anuga
1 Replies
8. Shell Programming and Scripting
Hello ,
i am on sles 11, and i can't figure out how can i locate my profile file,
the one that is use for setting the environment when i log in.
oracle@r200:~> cd
oracle@r200:~> pwd
/opt/oracle
oracle@r200:~> echo $SHELL
/bin/bash
oracle@r200:~>
oracle@r200:~> cat .profile
cat: .profile:... (4 Replies)
Discussion started by: tonijel
4 Replies
9. AIX
Hello.
I restore an mksysb image (AIX 5.3 TL 11) from one model to another model of Power (power 5 to power 7). Everything seems good, but I lost environment variables of at least one of a user profile. The result of the "env" command show me great differences between two servers, first of them... (2 Replies)
Discussion started by: stephnane
2 Replies
10. UNIX for Advanced & Expert Users
Hi All,
I have my own .profile file and environment file.
To execute some commands I always need to load some module using module command and change my environment files to project environment file (. /some/project/some/path/init.environ).Without changing my environment file to project file,... (2 Replies)
Discussion started by: saps19
2 Replies
LEARN ABOUT SUSE
ifservices
IFSERVICES(5) Network configuration IFSERVICES(5)
NAME
ifservices-* - control network services with ifup/down
SYNOPSIS
/etc/sysconfig/network/ifservices-<configuration_name>/
DESCRIPTION
The directory /etc/sysconfig/network/ifservices-<configuration_name>/ is read by the script /etc/sysconfig/network/scripts/ifup-services
which starts and stops system services when an interface is set up/down. ifup-services is used by /sbin/ifup, which is the command line
user interface for setting up network interfaces.
This is useful if you don't have a permanent network connection. If you sometimes boot without network and plug in the network cable later
you can add links to system services in this directory. These services will then be started with ifup and stopped with ifdown.
The configuration name used for ifservices-* should match exactly the configuration name of the ifcfg-* file for the interface.
For the usage with NetworkManager (where you don't necessarily need a ifcfg-* file) you can also use /etc/sysconfig/network/ifser-
vices-<interface>-<essid>/ (for wlan interfaces) or if that does not exist /etc/sysconfig/network/ifservices-<interface>/. As a final
fallback /etc/sysconfig/network/ifservices/ is checked as well. If NetworkManager is active services will be stopped after the interface is
down.
The links in this directory are equal to the links in the runlevel directories /etc/init.d/rc*.d/ They have to point to service start
scripts which are usually in /etc/init.d/. Links starting with 'S' are start links, which are called in alphabetical order after ifup has
set up the interface. Links starting with 'K' are kill links which are called before ifdown takes down the interface. See also section
Sequencing Directories in boot (7).
EXAMPLE
In this example we use an interface with MAC address 00:de:ad:be:af:00. This interface is not always physically connected. As soon as you
plug in the cable ypbind and autofs should be started. When you pull the cable they should be stopped. This can be reached with:
in file /etc/sysconfig/network/ifcfg-eth-id-00:de:ad:be:af:00
...
STARTMODE=ifplugd
...
in dir /etc/sysconfig/network/ifservices-eth-id-00:de:ad:be:af:00/
S10portmap -> /etc/init.d/portmap
S20ypbind -> /etc/init.d/ypbind
S30autofs -> /etc/init.d/autofs
S20autofs -> /etc/init.d/autofs
K30ypbind -> /etc/init.d/ypbind
Now you have to disable the start of this services at boot time
chkconfig ypbind off
chkconfig autofs off
Notes:
You may call scripts/create-ifservices-directory [<interface_name>] to create a directory with the links from this example. This will cre-
ate the directory ifservices-<interface_name> or if no interface name was given ifservices-template.
Maybe you have to add also variable IFPLUGD_PRIORITY. For details about startmode ifplugd read ifup (8).
The service portmap had to be added because ypbind needs it. This service is still started at boot time because it does not need an active
network connection. But ypbind may now be started earlier as usual. Therefore we make sure that portmap is started before. Starting an
already running service again does not affect the service.
SEE ALSO
ifup(8), ifcfg(5).
AUTHOR
Christian Zoz <zoz@suse.de>
sysconfig February 2005 IFSERVICES(5)