Messed up my boot environment or root profile


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Messed up my boot environment or root profile
# 1  
Old 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
# 2  
Old 10-01-2009
Any help please!!!! I'm dead here! Thanks.
# 3  
Old 10-01-2009
You could boot from a rescue CD and see if you can undo any changes made to the environment.. Gentoo's install-x86-minimal livecd's can be pretty useful, they boot you to a minimal, standalone Linux shell environment, from which you can mount disks and do what you need to do. I suggest booting the 'gentoo-nofb' kernel to avoid it trying to use pretty framebuffer frippery.

Last edited by Corona688; 10-01-2009 at 02:05 PM..
# 4  
Old 10-01-2009
Thanks but I have no problem login in in single user mode. I've tried for a week to undo what I thought I did but no luck. That's why I need help to systematically look at what's needed in order for root to load up with a sound profile.

Gary.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Issue Regarding environment/.profile file

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

2. AIX

Profile environment variables lost after mksysb restore

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

3. Shell Programming and Scripting

User profile, environment

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

4. AIX

Environment variable values encrption in profile

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

5. Solaris

Where's the .profile environment config for root under Bourne shell?

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

6. Shell Programming and Scripting

How is .profile and environment variable linked..

:( 1.) How is .profile and environment variable linked.? 2.) What happens when we execute a script.? (3 Replies)
Discussion started by: guhas
3 Replies

7. Solaris

.profile for root ?

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

8. Solaris

Profile and environment variable

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

9. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

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

10. UNIX for Dummies Questions & Answers

how do u remove a messed up freebsd boot installation?

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
Login or Register to Ask a Question