LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 08-24-2004, 03:22 PM   #1
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Rep: Reputation: 30
How could I go into Rescue Mode???


I need to get into Rescue mode in Mandrake 9.1. and delete something in the 'rc.local' file.

But I need to know how to go there . When the GRUB windows shows up what do I need to do from there to go into rescue mode and edit the rc.local directory?

Please explain step by step.
 
Old 08-24-2004, 03:26 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
On the grub prompt, select the name of the kernel
you wish to load, and add "single" or "init 1" as
a parameter...


Cheers,
Tink
 
Old 08-24-2004, 03:28 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
de ja vu...

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
Old 08-24-2004, 03:28 PM   #4
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
I still do not understand.

Im lost.

When the GRUB windows opens, Ok,

I see options:
linux
failsafe
windows
and some other stuff.

Now, I have 3 seconds to load whichever. linux is set to default. Im the only one using the computer. What do mean by single or init 1??

I am totally lost.

Last edited by unixfreak; 08-24-2004 at 03:30 PM.
 
Old 08-24-2004, 03:30 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,697

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Boot the 1st install CD. When it boots to the prompt where it says press enter to continue or <f1> for other options etc etc.. Type in rescue and the press the enter key.

Bare with me since the rest is from memory. There should be a menu that you can mount the partitions. Navigate to your / partiton /mnt/<something>/etc directory and use vi text editor.

vi rc.local

vi is a little cryptic. Press the Insert key to enter insert mode. Esc key to exit
Press :w to write file
Press :q to quit, :!q to quit without saving.
 
Old 08-24-2004, 03:32 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,697

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
To answer you last question when the menu pops up press the Esc key.
 
Old 08-24-2004, 03:35 PM   #7
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
WOW. Im still confused.

I just was in VI, and I was lost.

The directory is called

/etc/rc.d/rc.local

And I want to delete some entry there that I just put.

When the VI sceen pops up what do I do then, whats the first thing that I do?

And can I do this without the rescue mode?

When do I have to press ESC?? in where? and when? I just WANT TO DELETE an entry in or VI. How could I delete the entry in once Im on VI??

Is there an easier way to do this.

Last edited by unixfreak; 08-24-2004 at 03:39 PM.
 
Old 08-24-2004, 03:44 PM   #8
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
I need answers quick. I have a business to run and being down for this amount of time idoes not look good.

So, when I am in VI how could I DELETE the entry in rc.local???

I need some steps like 1 through 10 or something.
 
Old 08-24-2004, 03:51 PM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
http://www.linuxquestions.org/questi...24#post1130124 - when you see grub come up on your screen, press the key marked "Esc" or "E" (that's "e" with the shift key depressed). You will then be able to type. Type "1" without the quotes and hit enter. If you have pico or nano or emacs installed, type in "nano /etc/rc.d/rc.local" do your editing and then save the file. Reboot.

Jeebers - I hope you don't get this panicky/flustered/rude in your business life.
 
Old 08-24-2004, 03:53 PM   #10
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
NEED HELP PLEASE PLEASE.

PLEASE EXPLAIN ON WHAT TODO.

Im in VI without rescue mode what do I have to do delete an entry in rc.local?
 
Old 08-24-2004, 03:56 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
unixfreak, i've already warned you once this hour about being rude to the members of this site, please understand that if you take the instructions that are already written on this page you *WILL* fix your problem, no doubt about it. simply regularly ignoring all previous advice and demanding a brand new solution yet again will get you nowhere. do exactly what michaelk says inside vi. you will be ok.
 
Old 08-24-2004, 04:07 PM   #12
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
On GRUB Boot-up screen I hit E.

The screen froze or paused. Then I hit I dont know.........

It then giave me two choices:

kernel (hda0,7) /boot/vmlinuz root=/dev/ hda8 quiet devfs=mount hdd=ide>

then the next one:

initrd (hd0,7) /boot/initrd something

What should I select?

What should do next wheh I see this screen???


In the VI editor i want to delete the entry in rc.local

The instructions are confusing

Last edited by unixfreak; 08-24-2004 at 04:10 PM.
 
Old 08-24-2004, 04:14 PM   #13
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
I am confused. Im sorry.

Suppose Im in VI.

When VI opens, what should I type or do? I know I should hit Insert Key and then from there how do I delete the entry in rc.local.

vi rc.local

vi is a little cryptic. Press the Insert key to enter insert mode. Esc key to exit
Press :w to write file
Press :q to quit, :!q to quit without saving.

It does not say anything about a Delete entry command. above

Last edited by unixfreak; 08-24-2004 at 04:19 PM.
 
Old 08-24-2004, 04:17 PM   #14
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You don't need to hit the insert key. When you're in vi, use the arrow keys to go to the line you want to delete and then type "dd" (i.e. press the "d" key twice in close succession. Then save and quit by typing ":wq" (colon w q). You are now done.
 
Old 08-24-2004, 04:22 PM   #15
unixfreak
Member
 
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412

Original Poster
Rep: Reputation: 30
BTMiller wrote:
You don't need to hit the insert key. When you're in vi, use the arrow keys to go to the line you want to delete and then type "dd" (i.e. press the "d" key twice in close succession. Then save and quit by typing ":wq" (colon w q). You are now done.

Ok I got it. But one thing. How could I locate the rc.local and delete an entry???

And what line are you takling about??? Please explain.


Last edited by unixfreak; 08-24-2004 at 04:24 PM.
 
  


Closed Thread



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
rescue mode question kscott121 DamnSmallLinux 0 09-08-2005 05:42 PM
Debian rescue mode adityavpratap Debian 1 06-24-2005 04:00 AM
rescue mode hansi umayangan Linux - General 1 03-16-2005 11:43 PM
about rescue mode morrisset Linux - Newbie 3 07-10-2004 11:11 AM
Rescue Mode Help dsiguy Linux - General 9 09-24-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 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
Open Source Consulting | Domain Registration