Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> config script hangs linux on startup
JoshS
post Jul 27 2006, 08:33 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 27-July 06
Member No.: 6,842



Hi everyone,

I'm running FC4 on daul boot winXP/Linux laptop. I recently added a shell script of my own making under:

/etc/profile.d/

The script is meant to initialize some environment variables and start a license server for an app I run often. Unfortunately I made a typo in the script and it craps out on startup. The boot process continues running a few more commands after some error messages related to this script then the screen goes blank and I can't do anything else. My setup was fine just before adding this new script so it seems that if I can somehow delete or edit this bad file all will be well again. Does anyone have any advice on getting to this file or booting in some way that might get me around this hang up long enough to correct the file?

Thanks,
-josh
Go to the top of the page
 
+Quote Post
markjr
post Jul 27 2006, 01:03 PM
Post #2


./configure
***

Group: Admin
Posts: 62
Joined: 9-February 06
Member No.: 6,054



QUOTE (JoshS @ Jul 27 2006, 09:33 AM) *
The script is meant to initialize some environment variables and start a license server for an app I run often. Unfortunately I made a typo in the script and it craps out on startup. The boot process continues running a few more commands after some error messages related to this script then the screen goes blank and I can't do anything else. My setup was fine just before adding this new script so it seems that if I can somehow delete or edit this bad file all will be well again. Does anyone have any advice on getting to this file or booting in some way that might get me around this hang up long enough to correct the file?


Try booting into single-user mode and start by taking the script out.
Go to the top of the page
 
+Quote Post
JoshS
post Jul 27 2006, 07:52 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 27-July 06
Member No.: 6,842



QUOTE (markjr @ Jul 27 2006, 02:03 PM) *
Try booting into single-user mode and start by taking the script out.


Thanks for the reply! I've got linux booted in single user mode. The boot sequence hangs on the bad commands from my incorrect script as it did before. It seems to be stuck at a shell prompt so I type exit and the boot continues. After the rest of the boot commands are completed, the system prompts me for my login. At this point I try typing my login password but the login prompt remains. I've tried typing my user name, root, my user password, and my root password but each only returns a new prompt for my login. I seem to be stuck again unable to access and edit / delete the broken script. Does anyone have any advice on what I might be missing or what I should try next?

Thanks
Go to the top of the page
 
+Quote Post
michaelk
post Jul 29 2006, 11:35 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



boot up to rescue mode using the 1st install CD. Your / partition will be mounted at /mnt/sysimage. This is going to be console mode only. You can use the vi text editor to fix your script.
Go to the top of the page
 
+Quote Post
JoshS
post Jul 29 2006, 05:35 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 3
Joined: 27-July 06
Member No.: 6,842



Thanks for the help everybody! This was the first time I've had to go into single user mode to fix a mistake before, so I was a little slow to pick up on the fact that the shell prompt that I mentioned exiting out of in my last post was in fact A SHELL!!! I am dense sometimes. Anyway, I just deleted the script from there and my system booted fine. After a bit of tinkering I got the script to play nice and I learned a few things along the way. Cheers!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2017 - 05:53 AM