LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-16-2004, 02:16 PM   #1
Daunted
LQ Newbie
 
Registered: Sep 2004
Distribution: Mandrake 10
Posts: 21

Rep: Reputation: 15
lilo.conf editing


Hi
I am trying to edit lilo.conf through a rescue console using vi. lilo seems to be looking in the wrong hda for resuming. I've found how to edit the parts i need to change but how do i save the file? Doesn't seem clear at all

Many thanks
 
Old 10-16-2004, 02:19 PM   #2
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
man vi will give you the commands.

Generally you use the : key to enter a command.

: followed by w will write
: followed by q will quit

If you want to quit without saving use

: followed by q!

cheers!
 
Old 10-16-2004, 02:22 PM   #3
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Rep: Reputation: 15
Try using command 'chroot'.

--
peyotl
 
Old 10-16-2004, 02:50 PM   #4
Daunted
LQ Newbie
 
Registered: Sep 2004
Distribution: Mandrake 10
Posts: 21

Original Poster
Rep: Reputation: 15
Sorry guys, a : followed by w that will save the file right? Where do i type that in, i've tried at the end on a new line but that don't seem to work! man doesn't seem to work also.
If someone could spell it out and dumb it down (even more) i'd be greatful

thanks
 
Old 10-16-2004, 02:55 PM   #5
peyotl
LQ Newbie
 
Registered: Nov 2003
Location: poland
Distribution: Slackware-9.0
Posts: 22

Rep: Reputation: 15
Use <Esc> key to switch from Insert to normal mode of Vi,
then :w will save the file.
'I' will drop you to the insert mode again.

good luck
 
Old 10-16-2004, 05:51 PM   #6
Zolan
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian
Posts: 21

Rep: Reputation: 15
first press esc then
:wq
w saves your file and q quitts the editing program vi and you return to console.
 
Old 10-16-2004, 10:13 PM   #7
viniosity
Member
 
Registered: Oct 2001
Location: Washington, DC
Distribution: Debian, Archlinux, Ubuntu, Sidux
Posts: 244

Rep: Reputation: 30
Else, try an easier text editor like pico or nano
 
  


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
Editing Lilo.conf? Mandrake 10 won't boot midk Linux - Newbie 6 07-29-2004 11:08 PM
Editing lilo.conf alex101 Mandriva 2 10-15-2003 05:17 AM
No new kernel-option in LILO after editing lilo.conf corwax Debian 3 08-26-2003 08:55 PM
Editing lilo.conf & fstab moebush Linux - General 2 07-04-2003 04:49 PM
editing lilo.conf... SOMEONE PLEASE RESPOND! I AM DESPERATE!!!!! Colonel Panic Linux - Newbie 13 07-26-2001 02:20 PM

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

All times are GMT -5. The time now is 07:39 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