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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-24-2004, 04:22 PM
|
#1
|
Member
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412
Rep:
|
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.
|
|
|
08-24-2004, 04:26 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
08-24-2004, 04:28 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
08-24-2004, 04:28 PM
|
#4
|
Member
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412
Original Poster
Rep:
|
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 04:30 PM.
|
|
|
08-24-2004, 04:30 PM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,343
|
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.
|
|
|
08-24-2004, 04:32 PM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,343
|
To answer you last question when the menu pops up press the Esc key.
|
|
|
08-24-2004, 04:35 PM
|
#7
|
Member
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412
Original Poster
Rep:
|
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 04:39 PM.
|
|
|
08-24-2004, 04:44 PM
|
#8
|
Member
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412
Original Poster
Rep:
|
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.
|
|
|
08-24-2004, 04:51 PM
|
#9
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
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.
|
|
|
08-24-2004, 04:53 PM
|
#10
|
Member
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412
Original Poster
Rep:
|
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?
|
|
|
08-24-2004, 04:56 PM
|
#11
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
08-24-2004, 05:07 PM
|
#12
|
Member
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412
Original Poster
Rep:
|
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 05:10 PM.
|
|
|
08-24-2004, 05:14 PM
|
#13
|
Member
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412
Original Poster
Rep:
|
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 05:19 PM.
|
|
|
08-24-2004, 05:17 PM
|
#14
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
08-24-2004, 05:22 PM
|
#15
|
Member
Registered: Jul 2004
Distribution: Linux 2.4.21-0.13mdk, W2K
Posts: 412
Original Poster
Rep:
|
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 05:24 PM.
|
|
|
All times are GMT -5. The time now is 02:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|