LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2004, 05:22 PM   #1
tjt
LQ Newbie
 
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
I screwed up my /etc/rc.d/rc.local...How do I fix it?


I do an init 0 in rc.local (don't ask me why). So I shutdown before I can go in and remove that.

Basically I need to boot into a "safe mode" to fix it... How do I do this?

Incidentally, I still want to do a shutdown, but I want to pause for 30 seconds first. Can I just do:

pause 60

???

Thanks
 
Old 07-27-2004, 05:30 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
you will need a rescue disk.
boot the rescue disk, and use an editor (vi, nano, vim, emacs) to remove the bad init 0 call.

most distro cd's come with windows programs for creating Linux boot disks...
i assume you are using windows to post this thread ?
 
Old 07-27-2004, 05:50 PM   #3
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
What distro are you using? Nothing is under your name.

If you are using Grub type e when the grub choice screen comes up then highlight the kernel you use and at the end of the line that says kernel /boot/vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ rhgb quiet, just put this single. Then hit enter and then b, this will get you into a safe mode.

HTH
 
Old 07-27-2004, 10:36 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
does single mode not also run the rc.local script ?
 
Old 07-27-2004, 10:46 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by qwijibow
does single mode not also run the rc.local script ?
As a matter of fact, it doesn't. giving single as a parameter to
lilo will do the trick ...



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 06:04 AM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 10:02 AM
screwed up, wife will force windows on me if I don't fix this elsmack Linux - Newbie 6 03-18-2005 03:01 AM
KDE 3.2 Screwed Up My Sound, Can't Fix KungFuHamster Linux - Software 9 02-28-2004 03:17 AM
my dad screwed up mozilla, help fix it ShawnD Linux - Software 2 07-22-2002 01:55 AM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration